AutoMovie API
    Preparing search index...

    Interface IAutoMovieSubdivisionCage

    The control polygon mesh that subdivideAutoMovieSurface refines.

    A cage is quad-dominant but may carry any polygon of three or more corners. It must be a manifold with consistent winding: every edge belongs to one face (a boundary) or two faces that traverse it in opposite directions, every vertex belongs to at least one face, and the faces around each vertex form one fan. Faces wind counter-clockwise seen from the side the normals point to.

    UVs are face-varying, as in OpenSubdiv: each face corner names a UV value, so a seam is an edge whose two faces name different values at either end. Every UV value belongs to the corners of exactly one vertex.

    interface IAutoMovieSubdivisionCage {
        creases?: readonly IAutoMovieSubdivisionCrease[];
        faces: readonly (readonly number[])[];
        positions: readonly number[];
        uvFaces?: readonly (readonly number[])[];
        uvs?: readonly number[];
    }
    Index
    creases?: readonly IAutoMovieSubdivisionCrease[]

    Sharp or semi-sharp edges; omitted means every interior edge is smooth.

    faces: readonly (readonly number[])[]

    Polygons as vertex indices, at least three distinct corners each, wound counter-clockwise about their outward side.

    positions: readonly number[]

    Packed vertex positions [x, y, z, ...] in metres, finite.

    uvFaces?: readonly (readonly number[])[]

    UV value indices per face corner, the same shape as faces: corner k of face f takes UV uvFaces[f][k].

    uvs?: readonly number[]

    Packed face-varying UV values [u, v, ...], finite; omitted means the surface carries no UVs, and then uvFaces is omitted too.