AutoMovie API
    Preparing search index...

    Function canonicalRegion

    • Validate one planar region and lay its rings out canonically, without cutting triangles.

      Every point is copied; the outer ring is wound counter-clockwise and each hole clockwise by reversing a ring when its signed area disagrees, and the rings are concatenated outer first, then holes in declared order. sourceIndices records each canonical point's index in the flattened input. The input rings are only read.

      label names the region in the thrown diagnostic, so triangulateRegion says polygon while a loft names the failing section, and the author learns which of several sections holds the bad ring. Triangles are left to trianglesOf because a loft validates and lays out every section but triangulates only its two end caps.

      Parameters

      Returns Omit<IAutoMovieRegionTriangulation, "triangles">

      The canonical layout and its enclosed area.