| 30 | } |
| 31 | |
| 32 | Boundary::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 | |
| 42 | Boundary::Ptr Boundary::extract_volume_boundary_raw( |
| 43 | MatrixFr& vertices, MatrixIr& voxels) { |
nothing calls this directly
no test coverage detected