Visualisation of cluster geometries

Optional Makie integration

Install a backend with Pkg.add("CairoMakie"), Pkg.add("GLMakie"), or Pkg.add("WGLMakie"). Loading that backend activates the package extension; no plotting backend is loaded by using CoupledDipole alone.

CoupledDipole.visualise_makie — Function
 visualise_makie(cl; colour=:gold)

Static 3D visual of a cluster

Examples

cl = cluster_helix(8, 20, 20, 40, 100, 300, π/4, 0, "right")
visualise_makie(cl, colour = :silver)

Requires a Makie backend (e.g. using CairoMakie/GLMakie/WGLMakie) to be loaded; implemented in the CoupledDipoleMakieExt package extension.

source
using CoupledDipole
using CairoMakie

cl = cluster_helix(8, 20, 20, 40, 100, 300, π / 4, 0, "right")
visualise_makie(cl; colour=:gold)
Example block output

The wrapper preserves the particle semi-axes and converts the package's passive rotations to the active rotations used by Makie. Use Makie's save to export the resulting figure.

Standalone HTML

The legacy three.js exporter writes a separate HTML file. It is not embedded in this website and is not a Pluto plotting backend.

CoupledDipole.visualise_threejs — Function
 visualise_threejs(cl; colour=:gold)

Standalone interactive 3D visual of a cluster

Examples

cl = cluster_helix(8, 20, 20, 40, 100, 300, π/4, 0, "right")
visualise_threejs(cl)
# open cluster.html in browser
source