How to write Ply file that includes triangulation?
21 views (last 30 days)
I have vertices, color, and triangulation of my 3D object. I have tried the pointCloud and pcwrite, but it only allows me to input vertices and color. When I try to load the ply file using Blender 2 things happen: -Colors are not properly read (only one color shows) -Points are not triangulated
Ning Zhang on 8 Sep 2017
'pcread' should do the job for you to convert the PLY to MATLAB pointCloud Object
To write to a PLY, which the Greg Turk's version of PLY is used in pcwrite, vertex number, position x y z, color RGB is all you need. Check the format of PLY in the following link:
If you try this following example in your Command Window
In the opened script, if you change the encodingType from 'binary' to 'ascii'. You should be able to examine the XYZ and RGB values, once you generate the PLY