AutoMovie API
    Preparing search index...

    Function buildSubdivisionTopology

    • Build the edges and vertex fans of polygon rows, refusing anything that is not an oriented manifold.

      Edges are numbered by first appearance walking faces in order and corners in order. Each fan is walked from its start by stepping to the opposite corner of the current corner's in-edge, which is the counter-clockwise neighbour when the two faces traverse the edge in opposite directions. Refused, by cage vertex and face indices: an edge used by more than two faces, an edge two faces traverse in the same direction, a vertex in no face, and a vertex whose faces form more than one fan. Rows must already hold valid, distinct vertex indices per face; subdivideAutoMovieSurface checks that before calling.

      Parameters

      • vertexCount: number

        Number of vertices the rows index.

      • faceOffsets: number[]

        Row starts, one more entry than faces.

      • faceVertices: number[]

        Vertex of every corner.

      • sharpnessOf: (a: number, b: number) => number

        Sharpness of the interior edge between two vertices.

      Returns IAutoMovieSubdivisionTopology

      The level's connectivity, with boundary edges at sharpness 10.