diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /intern/dualcon/intern/cubes.h | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff) |
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'intern/dualcon/intern/cubes.h')
-rw-r--r-- | intern/dualcon/intern/cubes.h | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/intern/dualcon/intern/cubes.h b/intern/dualcon/intern/cubes.h index 1a8413524d4..3561ce008c2 100644 --- a/intern/dualcon/intern/cubes.h +++ b/intern/dualcon/intern/cubes.h @@ -20,26 +20,24 @@ #include "marching_cubes_table.h" /* simple wrapper for auto-generated marching cubes data */ -class Cubes -{ -public: -/// Get number of triangles -int getNumTriangle(int mask) -{ - return marching_cubes_numtri[mask]; -} +class Cubes { + public: + /// Get number of triangles + int getNumTriangle(int mask) + { + return marching_cubes_numtri[mask]; + } -/// Get a triangle -void getTriangle(int mask, int index, int indices[3]) -{ - for (int i = 0; i < 3; i++) - indices[i] = marching_cubes_tris[mask][index][i]; -} + /// Get a triangle + void getTriangle(int mask, int index, int indices[3]) + { + 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__ */ +#endif /* __CUBES_H__ */ |