[vtkusers] vtkTransformPolydataFilter ... how to get the transformed results
Jérôme
jerome.velut at gmail.com
Thu Mar 11 14:31:47 EST 2010
Hi,
the output of a TransformPolyDataFilter is a vtkPolyData, and not a
vtkLineSource.
It should be better with this code:
vtkSmartPointer<vtkPolyData> transformedOutput = vtkPolyData::SafeDownCast(
tpd->GetOutput());
HTH
Jerome
2010/3/11 Giancarlo Amati <ilferraresebono at hotmail.it>
> Hello everybody,
>
> I have a vtkLineSource object L1. I apply a transformation with the
> vtkTransformPolyDataFilter tpd.
>
> so... as L1 is defined by 2 points, I have a transform TT which defines the
> TransformPolyDataFilter.
> So I need to retrieve those 2 points but after the transform, so I call:
>
> vtkSmartPointer<vtkLineSource> tmplineDir =
> vtkLineSource::SafeDownCast(tpd->GetOutput());
>
> but the pointer it returns is NULL, causing of course a crash of the
> software.
> what am I missing? :)
>
> Many thanks.
> Giancarlo
>
>
> ------------------------------
> Lo spazio su Hotmail aumente con le tue esigenze... Vai oltre i 5GB<http://www.windowslive.it/hotmail/SpazioDisponibile.aspx>
>
> _______________________________________________
> 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/20100311/50a78e92/attachment.htm>
More information about the vtkusers
mailing list