Create a face from a closed edge loop.
Takes the ordered vertices from a valid edge loop and creates triangular faces to fill the polygon. Uses ear clipping for triangulation of polygons with more than 3 vertices.
The original BufferGeometry
Ordered vertex indices forming the closed loop
Vertex data for position lookup
Result containing the new geometry and new face index
Create a face from a closed edge loop.
Takes the ordered vertices from a valid edge loop and creates triangular faces to fill the polygon. Uses ear clipping for triangulation of polygons with more than 3 vertices.