[vtkusers] vtkTransformPolydataFilter ... how to get the transformed results

David Gobbi david.gobbi at gmail.com
Thu Mar 11 15:10:51 EST 2010


The use of a smart pointer is fine here.  When you assign to a smart
pointer from a regular pointer, the reference count of the object will
be incremented, so everything evens out.

    David


On Thu, Mar 11, 2010 at 12:54 PM, Michael Jackson
<mike.jackson at bluequartz.net> wrote:
> Wouldn't you want to do:
> vtkPolyData* output = tpd->GetOutput();
>
> as the output is just a raw pointer to a vtkPolyData object, which the
> filter owns. If you then wrap that point inside a vtkSmartPointer wouldn't
> you end up with 2 objects trying to free it(best case.)
> ___________________________________________________________
> Mike Jackson                      www.bluequartz.net
> Principal Software Engineer       mike.jackson at bluequartz.net
> BlueQuartz Software               Dayton, Ohio



More information about the vtkusers mailing list