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

Method extract_faces

tests/tools/MeshUtils/SubdivisionTest.h:35–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 }
34
35 MatrixIr extract_faces(MeshPtr mesh) {
36 const size_t num_faces = mesh->get_num_faces();
37 const size_t num_vertex_per_face = mesh->get_vertex_per_face();
38 VectorI flattened_faces = mesh->get_faces();
39 Eigen::Map<MatrixIr> faces(flattened_faces.data(), num_faces, num_vertex_per_face);
40 return faces;
41 }
42
43 void assert_equal_centroid(const MatrixFr& pts1, const MatrixFr& pts2) {
44 const size_t dim = pts1.cols();

Callers

nothing calls this directly

Calls 3

get_num_facesMethod · 0.45
get_vertex_per_faceMethod · 0.45
get_facesMethod · 0.45

Tested by

no test coverage detected