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

Function chooseAlgorithm

OpenCSG/src/opencsgRender.cpp:39–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 }
38
39 Algorithm chooseAlgorithm(const std::vector<Primitive*>& primitives) {
40 if (Algo::getConvexity(primitives) >= 2) {
41 return Goldfeather;
42 }
43 return SCS;
44 }
45
46 DepthComplexityAlgorithm chooseDepthComplexityAlgorithm(const std::vector<Primitive*>& primitives) {
47 if (!haveHardwareOcclusionQueries() && primitives.size() > 40) {

Callers 1

renderDispatchFunction · 0.85

Calls 1

getConvexityFunction · 0.85

Tested by

no test coverage detected