MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / MarkFaceForDeletion

Function MarkFaceForDeletion

editor/HRoom.cpp:3164–3179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3162}
3163
3164void MarkFaceForDeletion(room *rp, int facenum) {
3165 face *fp = &rp->faces[facenum];
3166
3167 // Mark this face
3168 fp->tmap = -1;
3169
3170 // Find connect faces
3171 for (int e = 0; e < fp->num_verts; e++) {
3172 int t = -1;
3173
3174 while ((t = FindConnectedFace(rp, facenum, e, t + 1)) != -1) {
3175 if (rp->faces[t].tmap != -1)
3176 MarkFaceForDeletion(rp, t);
3177 }
3178 }
3179}
3180
3181// Delete all the faces connected to the specified face
3182void DeleteAllConnectedFaces(room *rp, int facenum) {

Callers 1

DeleteAllConnectedFacesFunction · 0.85

Calls 1

FindConnectedFaceFunction · 0.85

Tested by

no test coverage detected