Unable to properly import PLY format

I am trying to upload into Mathematica (V12.2) a .ply file (for the first time), but getting weird data. The file is uploaded correctly with other software like MeshLab. The Summary for this file is:
Format: PLY
Binary: True
Comments:
VertexCount: 700,889
FaceCount: 0
Dimension: 3

“DataFormat”: {{“Real32”, “Real32”, “Real32”}, {“Real32”, “Real32”, “Real32”}}

I tried import the file using: “Graphics3D” and “GraphicsComplex” but got nothing.
I tried to import the vs = “VertexData” directly but getting strange (and incorrect) values that could not be presented by e.g. ListPointPlot3D.
the first 10 data points are:

vs[[Range[10]]] = {{-3.40119*10^38, -2.88812*10^21, 1.07637*10^-13},
 {-3.39059*10^38, -5.24507*10^-18, 1.65023*10^10},
 {-3.39059*10^38, 1.75042*10^-31, -2.38292*10^12}, 
{-3.38021*10^38, -4.06031*10^-25,1.1549*10^-32},
 {-3.375*10^38, 0.000359839, -0.0333717},
 {-3.37409*10^38, 7.31805*10^-37, -1.23024*10^8},
 {-3.37293*10^38, 5.83769*10^-29, 0.00188065}, 
{-3.37211*10^38, -1.69218*10^13, 1.16985*10^-21},
 {-3.37045*10^38, 1.84171*10^-17, 5.95285*10^-16},
 {-3.36846*10^38, 893988., 8.18755*10^6}}

Any idea what am I doing wrong?

I downloaded a Sample Meshes form MeshLab and I opened bunny2.ply in Mathematica 13.0 and works fine.

Maybe version issues ?

Upload a ply.file and will try to open in Mathematica 13.0 and see it works or not.

Hi Mariusz
Thanks for your swift response :slight_smile:
You can find 2 examples through this link:

If it works I’ll just upgrade my Mathematica.
Cheers,
Ehud

I tried and for 2 examples in Mathematica 13.0 give me: $Failed(“Cannot import data as PLY format”)

Fails on 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022) with the same message. However, this works.

Import["~/Downloads/fused.ply", "Summary"]
Import["~/Downloads/fused.ply", "VertexData"]

The vertex data values do not look right, the range of values is very large and some values are Indeterminate.

Yes, this is my problem too, that the values seem to be wrong (although both the data and the file is presented fine in other software like Meshlab). Looks like for some reason Mathematica reads the vertexData incorrectly. Maybe some kind of transformation will help? This also apply to the vertexNormals values.

Better is convert “PLY” files to another 3d graphics file like: (“STL”,“OBJ”) ,that Mathematica recognizes correctly.

Regards M.I

I will try. Thanks! :slight_smile: