[vtkusers] Combination of HighlightSelection example and ExtractVisibleCells

Romain LEGUAY romain.leguay at gmail.com
Wed Sep 27 08:48:15 EDT 2017


Hello,

I didn't found any other way to pick the cells than using
vtkHardwareSelector and vtkExtractSelection.

It's working great on object with "big" triangles.

However, I try to do some picking on a vtkUnstructuredGrid and there is no
picking done if I display the vtkUnstructuredGrid with a combination of a
vtkDataSetMapper/vtkActor.

I attached you my example code that permits to pick sphere cells. The
problem here is when I use the vtkDataSetMapper instead of a
vtkPolyDataSetMapper, the picking is not working (no cell is colored).

Does anyone know the reason of this behavior?

Thanks again.

CMakeLists.txt
<http://vtk.1045678.n5.nabble.com/file/t151346/CMakeLists.txt>  
TestPicking.cpp
<http://vtk.1045678.n5.nabble.com/file/t151346/TestPicking.cpp>  



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html


More information about the vtkusers mailing list