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">jothybasu@gmail.com</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">ilferraresebono@hotmail.it</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 &quot;GetMapper&quot; function to get the pointer to a vtkMapper * and the I used<br>

the function &quot;IsA&quot; 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&#39;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">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></div></blockquote></div><br></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>