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

Method extract_volume_boundary

tools/MeshUtils/Boundary.cpp:32–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32Boundary::Ptr Boundary::extract_volume_boundary(const Mesh& mesh) {
33 if (mesh.get_dim() == 2) {
34 throw RuntimeError("2D mesh has no volume boundary!");
35 }
36 if (mesh.get_num_voxels() == 0) {
37 throw RuntimeError("Mesh contains 0 voxels");
38 }
39 return Ptr(new BoundaryFaces(mesh));
40}
41
42Boundary::Ptr Boundary::extract_volume_boundary_raw(
43 MatrixFr& vertices, MatrixIr& voxels) {

Callers

nothing calls this directly

Calls 3

RuntimeErrorClass · 0.85
get_dimMethod · 0.45
get_num_voxelsMethod · 0.45

Tested by

no test coverage detected