AutoMovie API
    Preparing search index...

    Interface IAutoMovieRegionTriangulation

    A free-form planar region resolved into counter-clockwise triangles, as triangulateAutoMovieRegion returns it.

    Canonical coordinates and topology are accompanied by their original input identities, so callers can retain attached data without a coordinate lookup. The triangulator returns newly owned arrays and copies every input point. Ear clipping keeps every canonical point; a hole bridge repeats two indices in triangles but adds no point.

    interface IAutoMovieRegionTriangulation {
        area: number;
        points: IAutoMovieProfilePoint[];
        rings: IAutoMovieRegionRing[];
        sourceIndices: number[];
        triangles: number[];
    }
    Index
    area: number

    Enclosed area in square metres: the outer ring less every hole, always positive for an admitted region.

    Every ring's points in one list, canonically wound: the outer ring counter-clockwise first, then each hole clockwise in declared order.

    Where each ring sits in points; rings[0] is the outer ring.

    sourceIndices: number[]

    Original input index for each canonical point. Flatten the authored outer ring followed by holes in their supplied order, keeping each original ring order. sourceIndices[k] addresses that flattened input for points[k]. This is an integer permutation, not a distance or a triangle index. No vertex is added or merged by winding normalization. It permits attachment IDs, exact coordinates in another unit and other attributes to follow the same permutation without reconstructing identity from floating-point XY.

    triangles: number[]

    Corner indices into points, three per counter-clockwise triangle, so the region faces +Z.