Open norsetto opened 6 years ago
In the CreateMesh call, nvert is passed as:
int nvert = objshape.mesh.positions.size()
but objshape.mesh.position is a std::vector\<float> not a std::vector\<float3> so this should really be:
int nvert = objshape.mesh.positions.size() / 3
It's just the naming convention is wrong, API needs objshape.mesh.positions.size() to work. Changing nvert to something else would be better.
In the CreateMesh call, nvert is passed as:
int nvert = objshape.mesh.positions.size()
but objshape.mesh.position is a std::vector\<float> not a std::vector\<float3> so this should really be:
int nvert = objshape.mesh.positions.size() / 3