you can call geometry->resize(mesh.mNumVertices) here