Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save function for ply format does not work correctly in some cases #190

Open
ytSong74 opened this issue Apr 8, 2022 · 1 comment
Open

Comments

@ytSong74
Copy link

ytSong74 commented Apr 8, 2022

Hi,

When I used the library, I noticed that sometimes the output ply mesh cannot be loaded in MeshLab. It will lead to an error "Bad vertex index in the face".
I noticed that this happens only when the format was set to binary. The possible cause is in line 196-197 of io_trimesh/export_ply.h file:

const char* vqtp = vcg::tri::io::Precision<typename VertexType::ScalarType>::typeName();
fprintf(fpout,"property %s quality\n",vqtp);

After correcting it to:

const char* vqtp = vcg::tri::io::Precision<typename VertexType::QualityType>::typeName();
fprintf(fpout,"property %s quality\n",vqtp);

, the output mesh can be loaded in my case.

@cignoni
Copy link
Member

cignoni commented Apr 8, 2022

I seems a correct change we will implement it soon, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants