| 125 | } |
| 126 | |
| 127 | void CarveEngine::compute_symmetric_difference() { |
| 128 | CarveMeshPtr mesh_1 = m_mesh_1; |
| 129 | CarveMeshPtr mesh_2 = m_mesh_2; |
| 130 | carve::csg::CSG csg; |
| 131 | csg.hooks.registerHook( |
| 132 | new carve::csg::CarveTriangulatorWithImprovement, |
| 133 | carve::csg::CSG::Hooks::PROCESS_OUTPUT_FACE_BIT); |
| 134 | CarveMeshPtr r(csg.compute( |
| 135 | mesh_1.get(), mesh_2.get(), |
| 136 | carve::csg::CSG::SYMMETRIC_DIFFERENCE)); |
| 137 | extract_data(r, m_vertices, m_faces); |
| 138 | } |
| 139 | |
| 140 | void CarveEngine::convert_mesh_to_native_format(MeshSelection s) { |
| 141 | switch(s) { |
nothing calls this directly
no test coverage detected