Reading ply files in Rhino v 4

I have been importing ply files into Rhino 5 with good results. My client has Rhino 4 which behaves differently in that it imports the file (apparently) but shows nothing. Rhino 5 prompts for a choice on units. No such dialogue comes up with v4. Can anybody advise on how to work with ply in Rhino 4 please? Thanks in advance

Iin Rhino 4, the ply file import should use the current document model units. What happens if you import and once done use Zoom Extents ?

c.

Hi,yes we tried that - nothing.

Can you post the file or send it through PM ? What program wrote the ply file ?

c.

Written by a bit of Fortran (I know). Here’s a small file. Loads in v5 no problems - nothing to see in v4. It’s wrapped by the window. Thanks for looking

ply
format ascii 1.0
comment Date : 17/ 3/2015
comment file generated by MUSE tool museinit v1.00
element vertex 10
property float x
property float y
property float z
property float nx
property float ny
property float nz
property uchar red
property uchar blue
property uchar green
end_header
44.5884202, 11.0000000, 204.1503555, 0.9848078, 0.0000000, 0.1736482, 0,255, 0
44.5884202, 9.0000000, 204.1503555, 0.9848078, 0.0000000, 0.1736482, 0,255, 0
44.5884202, 7.0000000, 204.1503555, 0.9848078, 0.0000000, 0.1736482, 0,255, 0
44.5884202, 5.0000000, 204.1503555, 0.9848078, 0.0000000, 0.1736482, 0,255, 0
44.5884202, 3.0000000, 204.1503555, 0.9848078, 0.0000000, 0.1736482, 0,255, 0
44.5884202, 1.0000000, 204.1503555, 0.9848078, 0.0000000, 0.1736482, 0,255, 0
44.5884202, -1.0000000, 204.1503555, 0.9848078, 0.0000000, 0.1736482, 0,255, 0
44.5884202, -3.0000000, 204.1503555, 0.9848078, 0.0000000, 0.1736482, 0,255, 0
44.5884202, -5.0000000, 204.1503555, 0.9848078, 0.0000000, 0.1736482, 0,255, 0
44.5884202, -7.0000000, 204.1503555, 0.9848078, 0.0000000, 0.1736482, 0,255, 0

hm, that snippet imports fine here into V4 SR9, however there are only vertices and no faces in this mesh resulting from the ply import. To get them to show up in V4, use _Zoom _Selected, then _ExtractPts. This will result in 10 points, no colors assigned. You can then create a pointcloud from it using _PointCloud command.

In V5, this is all done automatically, the ply file gets a pointcloud if it has no faces.

If this does not fully answer your question, please post the full ply file as attachement. I´m not shure if V4 was able to import colors but i found an old script to do so, however it currently requires that the ply file contains faces.

c.

Many thanks - we will give that a go. We will also try giving the points some area so that we can colour them. How do we get our hands on the script you describe and how do we use it? Thank you Clement for all your help!

The script you can find below, but it is pretty vague as i don`t have a ply file from you to test it on. To try it out, just drag and drop it over v4, select your ply (must be Ascii) file and it should import a mesh (with or without colors). Note that it currently does not import something if the ply does not contain faces.

FileIO_ReadPlyAscii.rvb (5.1 KB)

c.