| 86 | using namespace CarveEngineHelper; |
| 87 | |
| 88 | void CarveEngine::compute_union() { |
| 89 | CarveMeshPtr mesh_1 = m_mesh_1; |
| 90 | CarveMeshPtr mesh_2 = m_mesh_2; |
| 91 | carve::csg::CSG csg; |
| 92 | csg.hooks.registerHook( |
| 93 | new carve::csg::CarveTriangulatorWithImprovement, |
| 94 | carve::csg::CSG::Hooks::PROCESS_OUTPUT_FACE_BIT); |
| 95 | CarveMeshPtr r(csg.compute( |
| 96 | mesh_1.get(), mesh_2.get(), |
| 97 | carve::csg::CSG::UNION)); |
| 98 | extract_data(r, m_vertices, m_faces); |
| 99 | } |
| 100 | |
| 101 | void CarveEngine::compute_intersection() { |
| 102 | CarveMeshPtr mesh_1 = m_mesh_1; |
nothing calls this directly
no test coverage detected