# Select the invisible points and dye them

**URL:** https://discourse.vtk.org/t/select-the-invisible-points-and-dye-them/9661
**Category:** Support
**Created:** [October 24, 2022, 9:07am UTC](https://discourse.vtk.org/t/select-the-invisible-points-and-dye-them/9661 "2022-10-24T09:07:56Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![claude](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/c/0ea827/32.png) [@claude](https://discourse.vtk.org/u/claude)
#### Post date: [October 24, 2022, 9:07am UTC](https://discourse.vtk.org/t/select-the-invisible-points-and-dye-them/9661/1 "2022-10-24T09:07:56Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![mau\_igna\_06](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mau_igna_06/32/8064_2.png) [@mau\_igna\_06](https://discourse.vtk.org/u/mau_igna_06)
#### Post date: [October 25, 2022, 12:39am UTC](https://discourse.vtk.org/t/select-the-invisible-points-and-dye-them/9661/2 "2022-10-25T00:39:34Z")

</div>

May be this is useful:

[https://vtk.org/doc/nightly/html/classvtkIdFilter.html#details](https://vtk.org/doc/nightly/html/classvtkIdFilter.html#details)

Hope it helps

---

<div class="post-metadata">

### Author: ![claude](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/c/0ea827/32.png) [@claude](https://discourse.vtk.org/u/claude)
#### Post date: [October 25, 2022, 1:34am UTC](https://discourse.vtk.org/t/select-the-invisible-points-and-dye-them/9661/3 "2022-10-25T01:34:14Z")

</div>

Thank you for your suggestion. I’ll check it 🙂
