vtkHardwareSelector highlight the selected face of cube

You can create a cell data array with an ID for each cell. It can be the index of the cell, so an increasing array from 0 to numberOfCells - 1.
Then create a lookup table that associates a cell index with its color.
When you want to highlight a cell, you just have to edit the lookup table at the right index.

1 Like