Documentation
    Preparing search index...

    Interface PolygonTessellator

    §52's replaceable-implementation seam: everything a tessellator has to be able to do for the rest of the package.

    polygonGeometry2D and extrudeGeometry are written against triangulatePolygon directly today, but the interface is what makes "implementations can be replaced without changing the scene API" a checkable claim rather than a hope — a monotone-decomposition or compute-based tessellator satisfies this type and nothing else in the repository has to know.

    interface PolygonTessellator {
        name: string;
        triangulate(
            outline: readonly Point2D[],
            holes?: readonly (readonly Point2D[])[],
        ): GeometryIndexArray;
    }
    Index
    name: string

    Stable identifier for diagnostics and capability reporting.