diff --git a/src/gltf/Raw2Gltf.cpp b/src/gltf/Raw2Gltf.cpp index eac53e4..01b4afe 100644 --- a/src/gltf/Raw2Gltf.cpp +++ b/src/gltf/Raw2Gltf.cpp @@ -436,6 +436,7 @@ ModelData* Raw2Gltf( // initialize Draco mesh with vertex index information auto dracoMesh(std::make_shared()); dracoMesh->SetNumFaces(static_cast(triangleCount)); + dracoMesh->set_num_points(surfaceModel.GetVertexCount()); for (uint32_t ii = 0; ii < triangleCount; ii++) { draco::Mesh::Face face;