skip the flips - saves us a bit of time!

This commit is contained in:
Jonathan 2022-01-25 04:18:52 -05:00
parent 674be0c812
commit f9f76b6dbb
2 changed files with 3 additions and 10 deletions

View File

@ -229,7 +229,7 @@ struct face_t : face_fragment_t
vec_t radius;
// filled by TJunc
std::list<face_fragment_t> fragments;
std::vector<face_fragment_t> fragments;
};
struct surface_t

View File

@ -309,7 +309,7 @@ restart:
w.resize(w.size() - (neww.size() - 2));
face->fragments.emplace_front(face_fragment_t { std::move(neww) });
face->fragments.push_back(face_fragment_t { std::move(neww) });
} while (1);
}
@ -400,17 +400,10 @@ static void tjunc_fix_r(node_t *node, face_t *superface)
if (node->planenum == PLANENUM_LEAF)
return;
face_t *root = nullptr, *next;
for (face_t *face = node->faces; face; face = next) {
next = face->next;
for (face_t *face = node->faces; face; face = face->next) {
FixFaceEdges(face, superface);
face->next = root;
root = face;
}
node->faces = root;
tjunc_fix_r(node->children[0], superface);
tjunc_fix_r(node->children[1], superface);
}