MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / convert_mesh_to_native_format

Method convert_mesh_to_native_format

tools/Boolean/CGAL/CGALBooleanEngine.cpp:75–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75void 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

Callers

nothing calls this directly

Calls 2

assert_mesh_is_closedFunction · 0.85
RuntimeErrorClass · 0.85

Tested by

no test coverage detected