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

Function to_draco_point_cloud

tools/Compression/Draco/DracoCompressionEngine.cpp:157–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157std::unique_ptr<draco::PointCloud> to_draco_point_cloud(Mesh::Ptr mesh,
158 bool with_attributes=true) {
159 std::unique_ptr<draco::PointCloud> draco_mesh(new draco::PointCloud());
160 assert(mesh->get_num_faces() == 0);
161 copy_vertices(mesh, draco_mesh);
162
163 if (with_attributes) {
164 copy_vertex_attributes(mesh, draco_mesh);
165 }
166
167 return draco_mesh;
168}
169
170template<typename DracoMesh>
171VectorF extract_vertices(std::unique_ptr<DracoMesh>& draco_mesh, size_t& dim) {

Callers 1

compressMethod · 0.85

Calls 3

copy_verticesFunction · 0.85
copy_vertex_attributesFunction · 0.85
get_num_facesMethod · 0.45

Tested by

no test coverage detected