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

Method extract_faces

tests/TestBase.h:119–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117 }
118
119 MatrixIr extract_faces(MeshPtr mesh) {
120 MatrixIr out_faces(mesh->get_num_faces(), mesh->get_vertex_per_face());
121 const VectorI& faces = mesh->get_faces();
122 std::copy(faces.data(), faces.data() + faces.size(),
123 out_faces.data());
124 return out_faces;
125 }
126
127 protected:
128 /**

Callers

nothing calls this directly

Calls 4

get_num_facesMethod · 0.45
get_vertex_per_faceMethod · 0.45
get_facesMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected