<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<br><br>I'm programming a plugin which writes in a file the ids of the current selected cells in the vtkUnstructuredGrid displayed in ParaView. In my code I write something like this:<br><br>pqSelectionManager* selMan = (pqSelectionManager*)(pqApplicationCore::instance()-&gt;manager("SelectionManager"));<br><br>pqOutputPort* port = selMan-&gt;getSelectedPort();<br>&nbsp;&nbsp;&nbsp; <br>vtkSMSourceProxy* activeSelection=port-&gt;getSelectionInput();<br><br>and get the property "IDs", just like the pqExtractSelectionsPanel class does. Of course, if the user made a selection by Frustum or Threshold, I should get the properties "Frustum" or "Thresholds" respectively, but they wouldn't "store" the cell id's, but some other information. I'm wondering if there is a way to convert a selection from frustum and/or threshold (or any other type) to a selection by IDs,
 that is: getting the IDs of the cells from a Frustum selection. I've been looking at classes vtkSelectionConverter and vtkPConvertSelection, but couldn't figure out a way of doing this. How can it be made ?<br><br>Thanks for any help,<br>Rafael March. <br></td></tr></table><br>