@wendylabsinc/react-three-mesh-editor - v0.0.1
    Preparing search index...

    Function createFaceFromEdgeLoop

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

      Parameters

      • geometry: BufferGeometry

        The original BufferGeometry

      • orderedVertices: number[]

        Ordered vertex indices forming the closed loop

      • vertices: VertexData[]

        Vertex data for position lookup

      Returns CreateFaceResult

      Result containing the new geometry and new face index