AutoMovie API
    Preparing search index...

    Interface IAutoMovieSweepOrientation

    A sweep's section planes compiled into buffers that a pose can rewrite, from orientAutoMovieSweep.

    The caller writes each station's plane rotation and whether it gives one, calls update after the spine's transport is current, then reads frames into its own arrays without allocation.

    interface IAutoMovieSweepOrientation {
        given: Uint8Array;
        rotations: Float64Array;
        frame(u: number, out: Float64Array, at: number): void;
        update(): void;
    }
    Index
    given: Uint8Array

    1 for a station that gives a rotation, 0 for one whose plane is the carried frame.

    rotations: Float64Array

    Each station's plane rotation [x, y, z, w] in the model frame, four numbers per station, read where given is 1.

    • Write the section plane at u: origin, first axis, second axis and normal, twelve numbers.

      Parameters

      • u: number

        Chord-length parameter, clamped to [0, 1]

      • out: Float64Array

        Receives twelve numbers

      • at: number

        Offset into out

      Returns void