[vtkusers] vtkPLYWriter and obj_info

Alex Pletzer axp5530 at psu.edu
Tue Jun 30 16:22:53 EDT 2015


All,

I noticed that vtkPLYWriter writes a "obj_info" field, an example can be 
seen below. This is causing some applications, such as the 
THREE.PLYLoader method to fail when reading PLY files produced by 
vtkPLYWriter.

None of the documents describing the PLY format 
(https://en.wikipedia.org/wiki/PLY_%28file_format%29 or 
http://paulbourke.net/dataformats/ply/) mentions this field, although it 
is present in the bunny file from 
http://graphics.stanford.edu/data/3Dscanrep/.

Hence, it would seem that for maximum portability the obj_info line 
should be removed. Is there any way one can prevent vtkPLYWriter from 
writing this line?

Thanks in advance.

--Alex

Typical header from a PLY file written by VTK:

ply
format ascii 1.0
comment VTK generated PLY File
*obj_info vtkPolyData points and polygons: vtk4.0*
element vertex 198
property float x
property float y
property float z
element face 192
property list uchar int vertex_indices
end_header
....

...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150630/94a365b6/attachment.html>


More information about the vtkusers mailing list