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

Method extract_surface_boundary_raw

tools/MeshUtils/Boundary.cpp:17–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17Boundary::Ptr Boundary::extract_surface_boundary_raw(
18 MatrixFr& vertices, MatrixIr& faces) {
19 VectorF flattened_vertices = Eigen::Map<VectorF>(vertices.data(),
20 vertices.rows() * vertices.cols());
21 VectorI flattened_faces = Eigen::Map<VectorI>(faces.data(),
22 faces.rows() * faces.cols());
23 VectorI voxels = VectorI::Zero(0);
24
25 MeshFactory factory;
26 Mesh::Ptr mesh = factory.load_data(flattened_vertices, flattened_faces,
27 voxels, vertices.cols(), faces.cols(), 0).create();
28
29 return extract_surface_boundary(*mesh);
30}
31
32Boundary::Ptr Boundary::extract_volume_boundary(const Mesh& mesh) {
33 if (mesh.get_dim() == 2) {

Callers

nothing calls this directly

Calls 2

createMethod · 0.45
load_dataMethod · 0.45

Tested by

no test coverage detected