MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / create_leaf

Method create_leaf

tools/Boolean/CSGTree.cpp:23–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23CSGTree::Ptr CSGTree::create_leaf(const std::string& engine_name,
24 const MatrixFr& vertices,
25 const MatrixIr& faces) {
26#ifdef WITH_IGL_AND_CGAL
27 if (engine_name == "igl") {
28 return Ptr(new IGLCSGTree(vertices, faces));
29 }
30#endif
31 std::stringstream err_msg;
32 err_msg << "CSG engine " << engine_name << " is not supported";
33 throw NotImplementedError(err_msg.str());
34}

Callers 1

__init__Method · 0.80

Calls 2

NotImplementedErrorClass · 0.85
strMethod · 0.45

Tested by

no test coverage detected