[vtkusers] Help writing a filter..

Guillermo Montilla montillaleon at gmail.com
Mon Mar 26 13:55:38 EDT 2012


Hi Ricardo,



You can use the class vtkPolyDataToPolyDataFilter to derive your filter.



This class descends from vtkPolyDataSource
.

See the constructor of this last class, you will find a stable vtkPolydata
output.


Good luck,
Guillermo

2012/3/25 Ricardo Villegas <ricvilleg at gmail.com>

> Hello,
>
> I'm writing a filter that receives an input polydata and produces its
> respective output polydata. However, the filter relies in recovering the
> output's point geometry every time the RequestData is invoked after the
> first time, in a similiar way vtkPolyDataSilhouette filter does, for
> changing the output points' coordinates.
>
> I noticed that after first time, every time the filter's RequestData is
> called the output data is lost or missing, so I can't call i.e.
> output->GetPoints( ), because the list of points is empty.
>
> Is there a way I can preserve the output data the filter generates so I
> can directly access and manipulate it in consecutive RequestData calls?
>
> Thanks in advance,
>
> Ricardo
>
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120326/a7bac1a1/attachment.htm>


More information about the vtkusers mailing list