static void FixEdges_r (node_t* node) { if (node->planenum == PLANENUM_LEAF) return; for (face_t* f = node->faces; f; f = f->next) FixFaceEdges(node, f); for (int i = 0; i < 2; i++) FixEdges_r(node->children[i]); }
static void tjunc_fix_r(node_t *node) { face_t *f, *next; if (node->planenum == PLANENUM_LEAF) return; newlist = NULL; for (f = node->faces; f; f = next) { next = f->next; FixFaceEdges(f); } node->faces = newlist; tjunc_fix_r(node->children[0]); tjunc_fix_r(node->children[1]); }