[vtk-developers] vtkPLYReader patch to allow points only

Sean McBride sean at rogue-research.com
Fri Oct 16 22:44:27 EDT 2009


On 10/16/09 9:44 AM, David Doria said:

>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/

Looks like a pretty simple patch.  Do all the tests still pass?  Adding
new tests with your sample files would be great too.

PS: please don't cross post to both vtk lists.

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada






More information about the vtk-developers mailing list