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

Function extract_faces

tools/Compression/Draco/DracoCompressionEngine.cpp:201–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199
200template<typename DracoMesh>
201VectorI extract_faces(std::unique_ptr<DracoMesh>& draco_mesh) {
202 const auto num_faces = draco_mesh->num_faces();
203 VectorI faces(num_faces * 3);
204 for (size_t i=0; i<num_faces; i++) {
205 const auto f = draco_mesh->face(draco::FaceIndex(i));
206 faces.segment<3>(i*3) << f[0].value(), f[1].value(), f[2].value();
207 }
208 return faces;
209}
210
211template<typename DracoMesh>
212void copy_metadata(std::unique_ptr<DracoMesh>& draco_mesh, Mesh::Ptr mesh) {

Callers 15

from_draco_meshFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
get_disjoint_settingMethod · 0.85
get_overlap_settingMethod · 0.85
TEST_FFunction · 0.85
get_disjoint_settingMethod · 0.85

Calls 2

num_facesMethod · 0.45
valueMethod · 0.45

Tested by 15

TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
get_disjoint_settingMethod · 0.68
get_overlap_settingMethod · 0.68
TEST_FFunction · 0.68
get_disjoint_settingMethod · 0.68
get_overlap_settingMethod · 0.68
TEST_FFunction · 0.68