Expand description
2-D ear-clipping triangulation of a simple polygon with holes.
Used to rasterize trimmed faces (faces with more than one edge_loop): such faces are
planar/affine in this codebase, so triangulating the (u, v)
outer-loop-minus-holes polygon and mapping each triangle through
surface.eval_at gives an exact 3-D triangulation.
Functionsยง
- polygon_
signed_ area - Signed area of
poly(positive for CCW, negative for CW). - triangulate_
with_ holes - Triangulate
outer(a simple polygon) minusholes(simple polygons strictly insideouterand disjoint from each other), returning triangles as(a, b, c)vertex triples.