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.
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.