Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MeshLab .ply file import error

Tags:

meshlab

Im new to 3D reconstruction i have point cloud. and i write it on .ply file.But when i press on it file

Meshlab provides me an Error . please find the below and meshlab could allow open that file

 Unespected eof

please find my bunney(copy).ply file

ply
format ascii 1.0
comment Mars model by Paul Bourke
element vertex 259200
property float x
property float y
property float z
element face 516960
property list uchar int vertex_indices
end_header
15081.5 -3.45644e+06 65.8061
15081 -3.45659e+06 197.422
15078.2 -3.45648e+06 329.009
15075.4 -3.45663e+06 460.597
15071.2 -3.4567e+06 592.148
15065.6 -3.45674e+06 723.653
15059.9 -3.457e+06 855.16
15050.7 -3.45674e+06 986.473
14541.2 3.33642e+06 -698.464
14547.7 3.33663e+06 -571.58
14551.5 3.33649e+06 -444.589
14552.7 3.336e+06 -317.541
14556.9 3.33645e+06 -190.56
14558.7 3.33661e+06 -63.5247
3 0 721 1
3 721 0 720
3 1 722 2
3 722 1 721
3 2 723 3
3 723 2 722

get rid of that error what should i change in my bunney(copy).ply ? please help me.

Please find below the image Error MeshLab

like image 254
coderide Avatar asked Apr 20 '15 03:04

coderide


2 Answers

In my case, the data was correct however not read properly by meshlab due to locale settings. Once restarted the program using LC_ALL=C meshlab, the ply finally loaded. Version 2016.12.

like image 92
saurabheights Avatar answered Nov 01 '22 14:11

saurabheights


As shown in your ply file:

element vertex 259200

and

element face 516960

It means your ply file contains data of 259200 vertices and 516960 faces. However, your ply file does not have those much data. So the MeshLab would show errors " Unespected eof".

You need to confirm that your ply file has as much data as you describe.

like image 43
flyingzhao Avatar answered Nov 01 '22 13:11

flyingzhao