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

    Function extrudeFace

    • Extrude a face from a BufferGeometry.

      Creates a new geometry with the face extruded by the specified distance. The original face vertices are duplicated and moved along the face normal, and new side faces are created to connect the original and extruded faces.

      Parameters

      • geometry: BufferGeometry

        The original BufferGeometry

      • faceIndex: number

        Index of the face to extrude

      • distance: number

        Distance to extrude (positive = outward along normal)

      • vertices: VertexData[]

        Vertex data for position lookup

      • faces: FaceData[]

        Face data for the geometry

      Returns ExtrudeFaceResult

      Result containing the new geometry and indices of new vertices