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

Function CheckDuplicateFaces

editor/Erooms.cpp:2308–2322  ·  view source on GitHub ↗

Checks for duplicate faces Returns the number of duplicate faces

Source from the content-addressed store, hash-verified

2306// Checks for duplicate faces
2307// Returns the number of duplicate faces
2308int CheckDuplicateFaces(room *rp) {
2309 int r = ROOMNUM(rp);
2310 int errors = 0;
2311
2312 for (int i = 0; i < rp->num_faces; i++) {
2313 int dup = CheckForDuplicateFace(rp, i);
2314
2315 if (dup != -1) {
2316 CheckError("Room %d: face %d is the same as face %d\n", r, i, dup);
2317 errors++;
2318 }
2319 }
2320
2321 return errors;
2322}
2323
2324// Checks for non-planar faces
2325// Returns the number of non-planar faces

Callers 2

VerifyMineFunction · 0.85
VerifyRoomFunction · 0.85

Calls 2

CheckForDuplicateFaceFunction · 0.85
CheckErrorFunction · 0.85

Tested by

no test coverage detected