Hi,<br>the output of a TransformPolyDataFilter is a vtkPolyData, and not a vtkLineSource. <br><br>It should be better with this code:<br>vtkSmartPointer<vtkPolyData> transformedOutput = vtkPolyData::SafeDownCast(<div>
tpd->GetOutput());</div><br>HTH<br>Jerome<br><br><div class="gmail_quote">2010/3/11 Giancarlo Amati <span dir="ltr"><<a href="mailto:ilferraresebono@hotmail.it">ilferraresebono@hotmail.it</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
Hello everybody,<br><br>I have a vtkLineSource object L1. I apply a transformation with the vtkTransformPolyDataFilter tpd.<br><br>so... as L1 is defined by 2 points, I have a transform TT which defines the TransformPolyDataFilter.<br>
So I need to retrieve those 2 points but after the transform, so I call:<br><br>vtkSmartPointer<vtkLineSource> tmplineDir = vtkLineSource::SafeDownCast(tpd->GetOutput());<br><br>but the pointer it returns is NULL, causing of course a crash of the software.<br>
what am I missing? :)<br><br>Many thanks.<br><font color="#888888">Giancarlo<br></font><div class="hm"><br>                                            <br><hr>Lo spazio su Hotmail aumente con le tue esigenze... <a href="http://www.windowslive.it/hotmail/SpazioDisponibile.aspx" target="_blank">Vai oltre i 5GB</a></div>
</div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>