| 99 | } |
| 100 | |
| 101 | void CarveEngine::compute_intersection() { |
| 102 | CarveMeshPtr mesh_1 = m_mesh_1; |
| 103 | CarveMeshPtr mesh_2 = m_mesh_2; |
| 104 | carve::csg::CSG csg; |
| 105 | csg.hooks.registerHook( |
| 106 | new carve::csg::CarveTriangulatorWithImprovement, |
| 107 | carve::csg::CSG::Hooks::PROCESS_OUTPUT_FACE_BIT); |
| 108 | CarveMeshPtr r(csg.compute( |
| 109 | mesh_1.get(), mesh_2.get(), |
| 110 | carve::csg::CSG::INTERSECTION)); |
| 111 | extract_data(r, m_vertices, m_faces); |
| 112 | } |
| 113 | |
| 114 | void CarveEngine::compute_difference() { |
| 115 | CarveMeshPtr mesh_1 = m_mesh_1; |
nothing calls this directly
no test coverage detected