AutoMovie API
    Preparing search index...

    Variable pushFlatTriangleConst

    pushFlatTriangle: (
        target: IAutoMovieMeshTarget,
        corners: readonly [
            readonly [IAutoMovieVector3, number, number],
            readonly [IAutoMovieVector3, number, number],
            readonly [IAutoMovieVector3, number, number],
        ],
    ) => void = ...

    Append one triangle that owns its three corners and its own plane normal.

    A lofted quad is only planar when its two sections match, so the two halves of a changing section's quad genuinely face different ways. Giving each triangle its own corners is what lets each carry the normal its own plane has, instead of one averaged direction that neither half points in.

    The normal is (b - a) x (c - a) normalized, so corners in counter-clockwise order seen from outside give an outward normal. A zero-area triangle has no plane and receives the zero vector as its normal.

    Type Declaration