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