Extend PolyDataMapper to support selection primitives
vtkPolyDataMapper
now accepts a vtkSelection
that will define the selected primitives.
If present, a second pass of drawing is done reusing the VBO and dedicated selection IBO.
When this feature is used, this improves drastically the performance compared to extracting the selection and building a new actor to display the selection.
The selection color is set using vtkProperty::SelectionColor
and the selection is displayed in wireframe.
Here is the improvement in ParaView:
Edited by Michael Migliore