void DetachFaces( HalfEdgeMesh.FaceHandle[] faces, List<FaceHandle, &> newFaces )

book_4_sparkGenerated
code_blocksInput

Description

The DetachFaces method is used to detach multiple faces from a polygon mesh. This operation effectively separates the specified faces from the rest of the mesh, creating new independent faces.

Usage

To use the DetachFaces method, provide an array of HalfEdgeMesh.FaceHandle representing the faces you want to detach. The method will output a list of new face handles that represent the detached faces.

Example

// Example usage of DetachFaces method
PolygonMesh polygonMesh = new PolygonMesh();
HalfEdgeMesh.FaceHandle[] facesToDetach = { /* face handles to detach */ };
List<HalfEdgeMesh.FaceHandle> newFaces = new List<HalfEdgeMesh.FaceHandle>();

polygonMesh.DetachFaces(facesToDetach, out newFaces);

// newFaces now contains the handles of the newly detached faces.