| 21 | } |
| 22 | |
| 23 | CSGTree::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 | } |
no test coverage detected