Cleanup: use braces in headers

This commit is contained in:
Campbell Barton
2023-09-24 14:52:38 +10:00
parent d1d570d318
commit 2721b937fb
63 changed files with 605 additions and 308 deletions

View File

@@ -19,13 +19,13 @@ class Cubes {
/// Get a triangle
void getTriangle(int mask, int index, int indices[3])
{
for (int i = 0; i < 3; i++)
for (int i = 0; i < 3; i++) {
indices[i] = marching_cubes_tris[mask][index][i];
}
}
#ifdef WITH_CXX_GUARDEDALLOC
MEM_CXX_CLASS_ALLOC_FUNCS("DUALCON:Cubes")
MEM_CXX_CLASS_ALLOC_FUNCS("DUALCON:Cubes")
#endif
};
};
#endif /* __CUBES_H__ */

View File

@@ -509,10 +509,12 @@ class Octree {
{
printf("INFO AT: %d %d %d\n", st[0] >> minshift, st[1] >> minshift, st[2] >> minshift);
LeafNode *leaf = (LeafNode *)locateLeafCheck(st);
if (leaf)
if (leaf) {
printInfo(leaf);
else
}
else {
printf("Leaf not exists!\n");
}
}
void printInfo(const LeafNode *leaf)