Hi,

I am trying to use the selection mechanism. Somethings are a bit unclear to me:


I would like to do something like is implemented in Paraview. In Point selection mode I would like to select all points in a rectangular area. In cell selection I would like to select all cells.

1. I have figured out that I need to use the vtkAreaPicker and the vtkInteractorStyleRubberBandPick classes.

2. It seems I then need to extract cells AND points with the vtkExtractSelectedFrustum object (vtkAreaPicker::GetFrustum()).

3. Finally, I would need to either pass the points or the cells, depending on the mode. It seems vtkSelection can help at this stage. I still need to figure out how.


Is this approach correct? Is the main importance of vtkSelection to select cells or points in a unified generic way? Or is there another use for it? The description is quite difficult to understand.

Does anybody want to share an example doing something similar, or point me to the relevant code in paraview?

Thanks a lot

Bryn





_______________________________________________
ParaView mailing list
[email protected]
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to