Select the invisible points and dye them

Hi everyone,
I am using vtkSelectVisiblePoints to get invisible points from a vtkPolyData, and i can get the pointsset i want.Now i want to change the color of the original polydata through the output pointsset,what should i do?
What i can think of now is to compara the xyz of the output pointsset with the xyz of original polydata,but this takes too long.Can vtkSelectVisiblePoints get a list of point indices of the original polydata?

May be this is useful:

https://vtk.org/doc/nightly/html/classvtkIdFilter.html#details

Hope it helps

Thank you for your suggestion. I’ll check it :slight_smile: