Taos API Reference
    Preparing search index...

    Function earClip

    • Ear-clipping triangulation of a simple polygon (no holes), returning index triplets into the input ring. Orientation-agnostic: the ring is normalized to CCW first, and the result is used with double-sided rendering, so world winding doesn't matter.

      Parameters

      • ring: [number, number][]

      Returns number[]