Group Abstract Group Abstract

Message Boards Message Boards

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

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

I just lost most of a day to this very problem and am stuck with trying to find a fix. Using Import[], Mathematica 10.2 reorders the vertices of both binary and ascii input files PLY format, whereas Mathematica 9 preserved the order in the file. This is enormously problematic for me, because like many people I work on these geometry files in other software as well. Maintaining the vertex order is critical to this workflow. I presume that the reordering was added to obtain some optimization in rendering or retrieval of the MeshRegion object, because a ply file saved from Mathematica does not appear to be reordered again on import. Can we get an element added to retrieve the original vertex order, or an option to prevent the reordering on import?

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