AutoMovie API
    Preparing search index...

    Interface IAutoMovieSubdivisionTopology

    Connectivity of one subdivision level: polygons, edges with sharpness, and the ordered fan of edges and faces around every vertex.

    Faces are stored as compressed rows: face f owns corners faceOffsets[f] to faceOffsets[f + 1] - 1, and corner c is vertex faceVertices[c]. A corner's out-edge runs from its vertex to the next corner's. Every edge is the out-edge of one corner per adjacent face: the first in corner order, then the opposite one, or -1 on a boundary.

    A vertex's fan lists its faces counter-clockwise about the outward side, as corners, and its edges between them: edge i is the out-edge of fan corner i, and fan corner i lies between edges i and i + 1. An interior fan is cyclic with as many edges as corners and starts at the vertex's lowest-numbered corner; a boundary fan starts at the boundary edge leaving the vertex and ends at the boundary edge entering it, one edge more than corners.

    interface IAutoMovieSubdivisionTopology {
        cornerEdges: number[];
        cornerFaces: number[];
        edgeCorners: number[];
        edgeSharpness: number[];
        edgeVertices: number[];
        faceOffsets: number[];
        faceVertices: number[];
        fanCornerOffsets: number[];
        fanCorners: number[];
        fanEdgeOffsets: number[];
        fanEdges: number[];
        vertexCount: number;
    }
    Index
    cornerEdges: number[]

    Out-edge of every corner.

    cornerFaces: number[]

    Face of every corner.

    edgeCorners: number[]

    Two corners per edge whose out-edge it is; the second is -1 on a boundary.

    edgeSharpness: number[]

    Sharpness per edge from 0 to 10; boundary edges are 10.

    edgeVertices: number[]

    Two end vertices per edge, in the direction of its first corner.

    faceOffsets: number[]

    Row starts of the faces, one more entry than faces.

    faceVertices: number[]

    Vertex of every corner.

    fanCornerOffsets: number[]

    Row starts of each vertex's fan corners, one more entry than vertices.

    fanCorners: number[]

    Fan corners of every vertex in counter-clockwise order.

    fanEdgeOffsets: number[]

    Row starts of each vertex's fan edges, one more entry than vertices.

    fanEdges: number[]

    Fan edges of every vertex in counter-clockwise order.

    vertexCount: number

    Number of vertices.