AutoMovie API
    Preparing search index...

    Interface IAutoMovieSubdivisionSurface

    A Catmull-Clark surface refined to a chosen level, with its limit positions and normals.

    Every face is a quad wound like its cage face. Vertex order is deterministic: first one vertex per cage vertex in cage order, so cage vertex i keeps index i at every level, then one per edge, then one per face, applied level by level. Edges are numbered by first appearance walking faces in order and corners in order. Faces descend from their parent face in order, one per parent corner, starting at that corner.

    Normals and UVs are face-varying: normalFaces and uvFaces give, per face corner, an index into normals and uvs. A smooth vertex has one normal; a vertex on an infinitely sharp crease, boundary corner or sharp corner has one per sector of faces between its sharp edges. To render, split vertices where a corner's position, normal and UV indices differ, and write limitPositions and normals instead of recomputing normals from triangles, which would split shading at UV seams.

    interface IAutoMovieSubdivisionSurface {
        faces: number[];
        limitPositions: number[];
        normalFaces: number[];
        normals: number[];
        parameters: IAutoMovieSubdivisionParameter[];
        positions: number[];
        uvFaces: number[] | null;
        uvs: number[] | null;
    }
    Index
    faces: number[]

    Quads as four vertex indices each, in face order.

    limitPositions: number[]

    Packed limit-surface positions in metres, one per vertex, where infinite refinement would carry each vertex.

    normalFaces: number[]

    Four indices into normals per quad, aligned with faces.

    normals: number[]

    Packed unit limit normals [x, y, z, ...].

    Cage face and local coordinates of each vertex, in vertex order.

    positions: number[]

    Packed refined control positions [x, y, z, ...] in metres.

    uvFaces: number[] | null

    Four indices into uvs per quad, or null when the cage has no UVs.

    uvs: number[] | null

    Packed refined UV values [u, v, ...], or null when the cage has none.