Bridges a SectionPlane to the TransformControls adapter contract — {getMatrix, setMatrix}. The gizmo manipulates a 4×4 world matrix; we synthesise that matrix from the plane's pos + dir on read, and decompose it back into pos + dir on write.

Matrix convention: the plane's local +Z axis equals its dir (the side fragments are discarded in). The other two axes (X, Y) span the plane's surface — they're arbitrary (any orthonormal basis on the plane works), so we pick one deterministically by Gram-Schmidt-ing against a fixed world-up vector.

In this frame the useful operations are:

  • Translate Z — slide the plane along its normal.
  • Rotate X / Y — tilt the plane (re-orient dir).

Matrix writes are collapsed back to the plane equation. Tangent translations and twists about the normal do not move the finite proxy away from the actual clipping plane.

Constructors

Properties

Methods

Constructors

Properties

Methods