AutoMovie API
    Preparing search index...

    Compile the volume-settled joint-scale update of a sealed sweep rig.

    Section moments and the authored sweep's rest-volume target are computed once. Each pose updates the shared orientation first, then this writer settles the joint factor and writes every registered scale slot. The network's separate girth multipliers apply after that settlement, matching the rig's existing ordering; the target is the authored sweep's volume before girth correction.

    type IProps = {
        girth: Float64Array;
        joints: readonly boolean[];
        orientation: IAutoMovieSweepOrientation;
        scales: Float64Array;
        scaleU: readonly number[];
        surface: IAutoMovieSweepSurface;
        writeFrame: (
            frame: IAutoMovieSweepFrame,
            out: Float64Array,
            at: number,
        ) => void;
    }
    Index
    girth: Float64Array

    Live positive dimensionless radial factors, one per scaleU slot, borrowed from the owning rig. Applied after volume settlement, so girth correction can change the final volume.

    joints: readonly boolean[]

    One flag per authored station: true marks a two-bone joint whose scale receives the common settlement factor. Read during compilation; the owning sweep rig calls this helper only when some joint is present.

    Shared current-pose section orientation. The caller updates it before each returned writer invocation; its frames supply the posed flux integral. Retained throughout the writer's lifetime.

    scales: Float64Array

    Shared writable dimensionless scale output, one per scaleU slot. A pose stages and checks every positive finite product before publishing with set; failures leave this buffer unchanged.

    scaleU: readonly number[]

    Sealed normalized-u scale registrations in slot order, retained and read on every pose. Length and slot identities must remain unchanged after compilation.

    Immutable authored rest sweep in model metres. Compilation integrates its unscaled section moments and scaled rest frames to establish a cubic-metre target before girth correction.

    writeFrame: (frame: IAutoMovieSweepFrame, out: Float64Array, at: number) => void

    Synchronous serializer used only during compilation: write twelve scalars at scalar offset at, ordered origin XYZ then x, y and normal axes. Origins use model metres, axes are dimensionless; the destination is borrowed for the call and errors propagate.