Skip to content

Extend PolyDataMapper to support selection primitives

Michael Migliore requested to merge michael.migliore/vtk:selection-mapper into master

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:

presel_old Old CPU extract preselection

presel_new New VBO reuse preselection

Edited by Michael Migliore

Merge request reports