[vtkusers] vtkTransformPolydataFilter ... how to get the transformed results
MURAT AYDIN
murat.aydin at netcad.com.tr
Thu Mar 11 07:11:10 EST 2010
Hi,
Did you call tpd->Update() before tpd->GetOutput()?
Regards
murat
________________________________
From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On Behalf Of Giancarlo Amati
Sent: Thursday, March 11, 2010 2:10 PM
To: vtkusers at vtk.org
Subject: [vtkusers] vtkTransformPolydataFilter ... how to get the transformed results
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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100311/725b66cf/attachment.htm>
More information about the vtkusers
mailing list