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

Method create

tools/SelfIntersection/SelfIntersectionResolver.cpp:13–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11using namespace PyMesh;
12
13SelfIntersectionResolver::Ptr SelfIntersectionResolver::create(
14 const std::string& engine_name) {
15#ifdef WITH_IGL_AND_CGAL
16 if (engine_name == "igl") {
17 return Ptr(new IGLSelfIntersectionResolver);
18 }
19#endif
20
21 std::stringstream err_msg;
22 err_msg << "Self-intersection engine \"" << engine_name
23 << "\" is not supported";
24 throw NotImplementedError(err_msg.str());
25}

Callers

nothing calls this directly

Calls 2

NotImplementedErrorClass · 0.85
strMethod · 0.45

Tested by

no test coverage detected