[vtkusers] vtkPLYWriter and obj_info

Bill Lorensen bill.lorensen at gmail.com
Tue Jun 30 17:05:04 EDT 2015


Sounds like a bug in the library you are using. I see lots of
references to obj_info in a google search:
https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=obj_info%20ply

Bill


On Tue, Jun 30, 2015 at 4:22 PM, Alex Pletzer <axp5530 at psu.edu> wrote:
> 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
> ....
>
> ...
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the vtkusers mailing list