[vtkusers] Help writing a filter..

Ricardo Villegas ricvilleg at gmail.com
Mon Mar 26 14:19:00 EDT 2012


Thanks for your answer, David!

I was thinking in something similar before posting the thread but wanted to
know if there was another option to solve it. I'll do as you suggested..
but I'm still feeling curious about the following:

Using vtkPolyDataToPolyData filter is no longer used to write filters and
the use of vtkPolyDataAlgorithm is encouraged instead. However, I read in
the vtkPolyDataToPolyData class documentation (and its related parent
classes) that ReleaseDataFlag controls the deletion of output data.
vtkPolyDataAlgorithm has this flag as well, but it seems output data is
deleted no matter the flag's value is.

Is this a bug or was the ReleaseDataFlag functionality drop down on purpose
for vtkPolyDataAlgorithm class??

Thanks,

Ricardo



2012/3/26 David E DeMarle <dave.demarle at kitware.com>

> Keep a vtkPolyData * internal variable with the class, and shallow
> copy the output you produce in RequestData into that to use next time
> around.
>
> David E DeMarle
> Kitware, Inc.
> R&D Engineer
> 21 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-881-4909
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120326/20e74f9a/attachment.htm>


More information about the vtkusers mailing list