[Insight-users] Re: VTK polydata

Luis Ibanez luis.ibanez@kitware.com
Tue May 18 19:03:17 EDT 2004


Hi Alam,

Please read the desciption of the VTK file format in the
VTK Users Guide, page 287.

The problem in your file is that in your POLYGONS section
you are numbering the points from 1 to 8267. You should
be using numbers from 0 to 8266.



E.g. the first cell should be

     POLYGONS 16374 65496
     3 0 2 1

and not the current

      POLYGONS 16374 65496
      3 1 3 2



   Regards,


       Luis


----------------------
Alam, Mohammed wrote:

> Hello Luis
> 
> I have been working on 3D segmentation. The result of 3D segmentation
> can be saved as a *.pss / *.vtk (vtkpolydata format). When the vtk
> object was visualized (using 3D Slicer), we see an extra line attached
> to the object.
> 
> For your reference I am attaching the vtk file generated by the program
> (which was similar to pss file except for the header format of vtk
> polydata files). I would highly appreciate if you could point out a
> solution to the problem and any ideas to avoid such problems.
> 
> Thank you
> Alam
> 






More information about the Insight-users mailing list