| 73 | } |
| 74 | |
| 75 | void CGALBooleanEngine::convert_mesh_to_native_format(MeshSelection s) { |
| 76 | switch(s) { |
| 77 | case MeshSelection::FIRST: |
| 78 | { |
| 79 | Polyhedron mesh1 = CGALUtils::mesh_to_polyhedron<Kernel>( |
| 80 | m_vertices_1, m_faces_1); |
| 81 | assert_mesh_is_closed(mesh1); |
| 82 | m_nef_mesh_1 = Nef_polyhedron(mesh1); |
| 83 | } |
| 84 | break; |
| 85 | case MeshSelection::SECOND: |
| 86 | { |
| 87 | Polyhedron mesh2 = CGALUtils::mesh_to_polyhedron<Kernel>( |
| 88 | m_vertices_2, m_faces_2); |
| 89 | assert_mesh_is_closed(mesh2); |
| 90 | m_nef_mesh_2 = Nef_polyhedron(mesh2); |
| 91 | } |
| 92 | break; |
| 93 | default: |
| 94 | throw RuntimeError("Unknown mesh selection."); |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | #endif |
nothing calls this directly
no test coverage detected