How to area pick actors?

There are many actors, and I want to area pick some actors.
The area defined by mouse can be get from:
vtkPlanes* frustum = static_cast<vtkAreaPicker*>(GetInteractor()->GetPicker())->GetFrustum();

The problem is how to judge the actor(s) is in the area defined by “frustum” or not.

Hello,

Please, take a look at this example: https://kitware.github.io/vtk-examples/site/Cxx/Picking/AreaPicking/ .

cheers,

Paulo

1 Like