MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / removeFace

Method removeFace

src/utils/quickhull/QHHalfEdgeStructure.cpp:277–293  ·  view source on GitHub ↗

Remove a face and all its edges

Source from the content-addressed store, hash-verified

275
276// Remove a face and all its edges
277void QHHalfEdgeStructure::removeFace(Face* face) {
278
279 // Remove all half-edges of the face
280 Edge* firstEdge = face->edge;
281 Edge* edge = firstEdge;
282 do {
283
284 Edge* nextFaceEdge = edge->nextFaceEdge;
285
286 removeHalfEdge(edge);
287
288 edge = nextFaceEdge;
289
290 } while(edge != firstEdge);
291
292 deleteFace(face);
293}
294
295// Delete the face
296void QHHalfEdgeStructure::deleteFace(Face* face) {

Callers 1

deleteVisibleFacesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected