<font color="#000000"><font size="2"><font face="tahoma,sans-serif"> Hi<br><br>How do I get the vtkPolyData from a ParaView representation that is created by pqObjectBuilder?<br><br><br>For example if I click on the "Create Source" button, in ParaView, I can modify the position property of that source in my plugin using the following code:<br>
<br> pqDataRepresentation *data =</font></font></font><font color="#000000"><font size="2"><font face="tahoma,sans-serif">pqApplicationCore::instance()->getServerManagerModel()</font></font></font><font color="#000000"><font size="2"><font face="tahoma,sans-serif">->getItemAtIndex<pqDataRepresentation*>(0);<br>
</font></font></font><font color="#000000"><font size="2"><font face="tahoma,sans-serif">vtkSMRepresentationProxy *repProxy = vtkSMRepresentationProxy::SafeDownCast(data->getProxy());<br> vtkSMPropertyHelper(repProxy,"Position").Set(newPosition,3);<br>
<br><br>I would like to be able to get the vtkPolyData if possible because I'm trying to use Goodwin Lawlor's vtkCollisionDetectionFilter.h <br><br>Thanks.<br clear="all"></font></font></font><br clear="all">
<br>-- <br>Regards,<br>Alexis<br><br>