[vtkusers] vtkPLYReader patch to allow points only

David Doria daviddoria+vtk at gmail.com
Fri Oct 16 09:44:38 EDT 2009


Current vtkPLYReader does not allow reading files that do not contain faces
(i.e. files with only points or points+normals). It simply quits with an
error "Cannot read geometry". I modified this class to allow this type of
file to be read, along with making the error output a bit more specific in
the case that there actually is a problem. In the process I think the whole
section that searches for properties became a bit clearer - as previously it
was all embedded in a single if statement.

Here is the new along with a patch and a couple of test ply files:
http://www.rpi.edu/~doriad/VTK_List/vtkPLYReader_Patch/

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091016/4ee27615/attachment.htm>


More information about the vtkusers mailing list