<html><body bgcolor="#FFFFFF"><div>To get polydata you will have to safe downcast, I,e.</div><div><br></div><div>Vtkploydata::safedowncast(actor-&gt;GetMapper()-&gt;GetInput())</div><div><br></div><div>I think<br><br>On Jun 22, 2010, at 8:20 AM, Darshan Pai &lt;<a href="mailto:darshanpai@gmail.com">darshanpai@gmail.com</a>&gt; wrote:<br><br></div><div><span></span></div><blockquote type="cite"><div>I am just wondering , maybe I am wrong, but if you delete the Input then Actor-&gt;GetMapper()-&gt;GetInput() should fail . Maybe that is your error here ?<br><br><div class="gmail_quote">On Tue, Jun 22, 2010 at 10:59 AM, Jothy <span dir="ltr">&lt;<a href="mailto:jothybasu@gmail.com"><a href="mailto:jothybasu@gmail.com">jothybasu@gmail.com</a></a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div dir="ltr">Actor.Getmapper()-&gt;GetInput() work well for me.<br><br>Verify your input<br>
<font color="#888888"><br>Jothy<br><br></font><div class="gmail_quote"><div><div></div><div class="h5">On Tue, Jun 22, 2010 at 3:44 PM, Giancarlo Amati <span dir="ltr">&lt;<a href="mailto:ilferraresebono@hotmail.it" target="_blank"><a href="mailto:ilferraresebono@hotmail.it">ilferraresebono@hotmail.it</a></a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">



<div>
Hello everybody,<br><br>I am trying to retrieve the polydata linked to a particular actor. I have my actor saved in a list<br>I used the "GetMapper" function to get the pointer to a vtkMapper * and the I used<br>

the function "IsA" to test if it is a vtkPolyDataMapper.<br>The IsA function returns true and I used<br><br>vtkPolyData *pd = mapper-&gt;GetInput();<br><br>to retrieve the polydata, but somehow I don't get anything reasonable and the number of vertices is 0.<br>

<br>is that the right way to retrieve a polydata from the pipeline?<br><br>Many thanks.<br>Giancarlo<br>                                               <br><hr>Un mondo di personalizzazioni per Messenger, PC e cellulare, <a href="http://www.pimpit.it/" target="_blank">scaricale gratis!</a></div>


<br></div></div><div class="im">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank"><a href="http://www.kitware.com">www.kitware.com</a></a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank"><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></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"><a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a></a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank"><a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a></a><br>
<br></div></blockquote></div><br></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank"><a href="http://www.kitware.com">www.kitware.com</a></a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank"><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></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"><a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a></a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank"><a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a></a><br>
<br></blockquote></div><br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Powered by <a href="http://www.kitware.com"><a href="http://www.kitware.com">www.kitware.com</a></a></span><br><span></span><br><span>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html"><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></a></span><br><span></span><br><span>Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ"><a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a></a></span><br><span></span><br><span>Follow this link to subscribe/unsubscribe:</span><br><span><a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a></span><br></div></blockquote></body></html>