When writing out ply files, the coordinates are written out using 6 digits maximum. If there are 4 digits before the comma, there are only two digits left for after the comma.
This is a big problem when handling grids expressed in m where the origin is often more than 1km away (due to georeferencing), as this reduces the resolution to cm.
At least 3 (ideally 4) digits after the comma are required.
Anonymous
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
I believe this could easily be fixed by changing line 360 in file export_ply.h (which I found on http://docs.ros.org/diamondback/api/vcglib/html/io__tetramesh_2export__ply_8h_source.html)
from
fprintf(fpout,"%g %g %g " ,vp->P()[0],vp->P()[1],vp->P()[2]);
to
fprintf(fpout,"%.4f %.4f %.4f " ,vp->P()[0],vp->P()[1],vp->P()[2]);