Cleanup: use braces in headers
This commit is contained in:
@@ -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__ */
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user