Mock diffractometer — simple mockup (v2)

Stripped back to basics: thin circles + rotation-direction arrows on a bare kinematic chain, no mechanical styling yet — a starting point to iterate on. Drag to orbit, scroll to zoom. Axes use the SwissFEL/Bernina convention: X horizontal transverse, Y vertical, Z beam direction (right-handed). The mechanism itself is computed directly on diffcalc's own axes (X vertical, Y beam, Z transverse there) — only these on-screen labels/arrows are remapped. Detector order is currently gamma (outer) → delta (inner) per direct feedback; note this doesn't exactly match diffcalc's own composition order (delta-then-gamma) unless axis assignments are also adjusted — flagged for follow-up once the mockup itself is settled.

Sample circles

Detector circles

Detector distance

Size is used for the detector cut of the Ewald sphere.

Display

The cell around Q or a target reflection has the reflection at its corner, a*, b*, c* leaving from there. "All cells the detector sees" span hkl ± ½ around every reflection whose surroundings (diffuse scattering, truncation rods, satellites) end up somewhere on the detector image. A Brillouin zone (dashed around Q and the targets) is the region closer to its reflection than to any other one the lattice centring allows.
Reciprocal lengths follow diffcalc's own 2π convention (|k| = 2π/λ, |Q| = 2π/d, |a*| = 2π/a), so the tip of Q sits on a node of the reciprocal cell. The slider sets how many cm of the direct-space scene represent 1 Å−1 (5 cm by default).