Hi Utkarsh, thanks for the tip. I'm trying now to use the vtkExtractSelection filter, but it requires two inputs: a vtkSelection object, and the Model, whose block will be extracted, according to the selection. The question now is: how to get the vtkSelection object which corresponds to my current selection made in Paraview ? I can only manage to get a pqSelectionManager object in my filter.
Thanks again for the help. Regards, Rafael. --- On Mon, 6/15/09, Utkarsh Ayachit <[email protected]> wrote: From: Utkarsh Ayachit <[email protected]> Subject: Re: [Paraview] Getting Blocks Selection To: "Rafael March" <[email protected]> Cc: [email protected] Date: Monday, June 15, 2009, 3:13 PM Currently there's no direct way of converting from block to id-based selection. vtkConvertSelection does not handle the case where the input is a block-based selection. Feel free to add a feature request to the bug tracker.. A possible alternative would be to apply the ExtractSelection filter and then fetch the resulting dataset to the client. That will have the ids for the extracted block. Utkarsh On Mon, Jun 15, 2009 at 10:53 AM, Rafael March <[email protected]> wrote: Hi, I want to get the global Ids of the nodes selected through selection inspector, using a "Block Selection" to choose a part of the model. I thought I would be able to retrieve the ids of the cells (or points) with the method pqSelectionManager::getIndices() or pqSelectionManager::getGlobalIds(), but none of them retrieve any Ids when I make the selection of a block. Which is the right way to get this information ? Regards, Rafael. _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
