MCPcopy Index your code
hub / github.com/ad-si/LuaCAD / getConvexity

Function getConvexity

OpenCSG/src/primitiveHelper.cpp:64–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 }
63
64 unsigned int getConvexity(const std::vector<Primitive*>& batch) {
65 unsigned int convexity=1;
66 for (std::vector<Primitive*>::const_iterator itr = batch.begin(); itr != batch.end(); ++itr) {
67 unsigned int val = (*itr)->getConvexity();
68 if (convexity < val) {
69 convexity = val;
70 }
71 }
72
73 return convexity;
74 }
75 } // namespace Algo
76
77 namespace OpenGL {

Callers 2

chooseAlgorithmFunction · 0.85
renderGoldfeatherFunction · 0.85

Calls 3

beginMethod · 0.80
endMethod · 0.80
getConvexityMethod · 0.80

Tested by

no test coverage detected