unable to open ASCII PLY files
A processing system for 3D triangular meshes
Brought to you by:
cignoni,
granzuglia
I'm trying to import in MeshLab some PLY files generated by PMVS2, but MeshLab refuses to load them with the following error message in the error dialog
While opening: '/home/steko/cube.ply'
Error encountered while loading file:
"/home/steko/cube.ply"
Error details: Unespected eof
The attachment is a minimal ASCII PLY file (exported from Blender), much simpler than the PMVS2 output but with the same structure and format.
I'm using MeshLab 1.2.2 on GNU/Linux Debian unstable
sample PLY ASCII file
I have just tried the file you posted and it was successfully loaded on my mac (v 1.2.1 1.2.2 and 1.2.3beta)
The file seems well formed so i do not know what could be the reason of the failing
I know that there are some issues in ascii loading in some localized version of ubuntu where scanf seems to require localized formatting of floating point values (e.g. 1,000 instead of 1.000). If you are running a non-english debian distrib could you try a quick search and reply of '.' with ',' (change dots into commas)?
cheers
p.
That's right.
If I start it from a terminal with
$ LC_ALL=C meshlab
it opens the file without any problem. So, yes, it's a localization issue.
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
I have just committed (rev 4150 ) a patch for this localization issue.
Could you try to get the latest svn version and see if, even without setting LC_ALL=C before starting MeshLab, now the comma/dot decimal separator issue is disappeared?
thanks in advance
p.
Hopefully with last adding of a global setlocale we should have closed this issue.
Please re open it if it still does not work....
Hi to you all,
I am new to Meshlab.
I started to play with it just recently by using ply file format as it seem bit easy for a starter like me.
When I copy and past ply file from the internet, the meshlab always open and display them but when I try to type exaclty the words in using notepad, I always get the Eof error or the meshlab crashes.
My final goal will be creating ply files using C# application and this is why I am experimenting with simple basic examples.
Have anyone has the same issue or have a solution?
By the way I am using meshlab V1.3.3 and Windows XP.
Many thanks