Group Abstract Group Abstract

Message Boards Message Boards

Import .ply file gives different results for Mma 10.1 and 10.2.

When importing a .ply file with vertices and polygons that together create a shape/mesh, the order of the points in the resulting list of vertices is totally different in 10.2 w.r.t 10.1, both on Mac OS X 10.10.5. The order of the the vertices in 10.1 is exactly the same as in the source .ply file. See attached figure: left is source file in text editor, middle is list in 10.1, right is list in 10.2. In all the same point is selected.

Is this intended? Is this a bug? Is there something I can do about that, by using a legacy option in the Import function?

Attachments:
POSTED BY: Hans van Assen
4 Replies
Posted 10 years ago

Here's a workaround to import data from binary (big & little endian) and ascii ply files. Works on my samples. If you have suggested improvements, please let me know.

Attachments:
POSTED BY: Matt Reed
Posted 10 years ago
POSTED BY: Matt Reed
POSTED BY: Hans van Assen

Does it result in the same MeshRegion object.

How are you importing the list of vertices? Are you using Import[..., "VertexData"] or looking at the resulting MeshRegion in someway?

Either of them don't seem to have any guarantee that they give the vertices in the order listed in the source file. So it's not a bug by itself.

POSTED BY: Sean Clarke
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard