# Can't change vertex visibility after first render

**URL:** https://discourse.vtk.org/t/cant-change-vertex-visibility-after-first-render/15923
**Category:** Support
**Created:** [August 6, 2025, 1:17pm UTC](https://discourse.vtk.org/t/cant-change-vertex-visibility-after-first-render/15923 "2025-08-06T13:17:57Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Julien\_Champagnol](https://discourse.vtk.org/user_avatar/discourse.vtk.org/julien_champagnol/32/9415_2.png) [@Julien\_Champagnol](https://discourse.vtk.org/u/Julien_Champagnol)
#### Post date: [August 6, 2025, 1:17pm UTC](https://discourse.vtk.org/t/cant-change-vertex-visibility-after-first-render/15923/1 "2025-08-06T13:17:57Z")

</div>

Hi,

The vertex visibility of a PolyData cannot be changed after the first `renderWindow->Render();` Any change to its attributes (e.g. color, size,…) works, but visibility is stuck in the previous state.

For reproduction, you can take this code:  
[https://gitlab.kitware.com/vtk/vtk/-/blob/master/Rendering/Core/Testing/Cxx/TestVertexVisibility.cxx](https://gitlab.kitware.com/vtk/vtk/-/blob/master/Rendering/Core/Testing/Cxx/TestVertexVisibility.cxx)  
and add `renderWindow->Render();` on line 45

Is this normal behavior?

Thanks in advance,  
Julien

---

<div class="post-metadata">

### Author: ![Julien\_Champagnol](https://discourse.vtk.org/user_avatar/discourse.vtk.org/julien_champagnol/32/9415_2.png) [@Julien\_Champagnol](https://discourse.vtk.org/u/Julien_Champagnol)
#### Post date: [August 6, 2025, 1:22pm UTC](https://discourse.vtk.org/t/cant-change-vertex-visibility-after-first-render/15923/2 "2025-08-06T13:22:30Z")

</div>

For context I am using vtk 9.5.0

---

<div class="post-metadata">

### Author: ![lgivord](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lgivord/32/3543_2.png) [@lgivord](https://discourse.vtk.org/u/lgivord)
#### Post date: [August 11, 2025, 8:21am UTC](https://discourse.vtk.org/t/cant-change-vertex-visibility-after-first-render/15923/3 "2025-08-11T08:21:12Z")

</div>

Hello @Julien_Champagnol,

Being able to change the vertex visibility between Render call should be possible, so it’s probably a bug in vtk

FYI @jaswantp

---

<div class="post-metadata">

### Author: ![Julien\_Champagnol](https://discourse.vtk.org/user_avatar/discourse.vtk.org/julien_champagnol/32/9415_2.png) [@Julien\_Champagnol](https://discourse.vtk.org/u/Julien_Champagnol)
#### Post date: [August 11, 2025, 8:23am UTC](https://discourse.vtk.org/t/cant-change-vertex-visibility-after-first-render/15923/4 "2025-08-11T08:23:07Z")

</div>

Hello,

Thanks for your reply, should I open a new issue ?

Julien

---

<div class="post-metadata">

### Author: ![lgivord](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lgivord/32/3543_2.png) [@lgivord](https://discourse.vtk.org/u/lgivord)
#### Post date: [August 11, 2025, 8:23am UTC](https://discourse.vtk.org/t/cant-change-vertex-visibility-after-first-render/15923/5 "2025-08-11T08:23:40Z")

</div>

yes it would be nice, thanks in advance.

---

<div class="post-metadata">

### Author: ![Julien\_Champagnol](https://discourse.vtk.org/user_avatar/discourse.vtk.org/julien_champagnol/32/9415_2.png) [@Julien\_Champagnol](https://discourse.vtk.org/u/Julien_Champagnol)
#### Post date: [August 11, 2025, 8:31am UTC](https://discourse.vtk.org/t/cant-change-vertex-visibility-after-first-render/15923/6 "2025-08-11T08:31:20Z")

</div>

Done!  
[https://gitlab.kitware.com/vtk/vtk/-/issues/19758](https://gitlab.kitware.com/vtk/vtk/-/issues/19758)

---

<div class="post-metadata">

### Author: ![jaswantp](https://discourse.vtk.org/user_avatar/discourse.vtk.org/jaswantp/32/10046_2.png) [@jaswantp](https://discourse.vtk.org/u/jaswantp)
#### Post date: [August 12, 2025, 12:53pm UTC](https://discourse.vtk.org/t/cant-change-vertex-visibility-after-first-render/15923/7 "2025-08-12T12:53:30Z")

</div>

This is fixed and will be available in 9.5.1

---

<div class="post-metadata">

### Author: ![BotellaA](https://discourse.vtk.org/user_avatar/discourse.vtk.org/botellaa/32/1243_2.png) [@BotellaA](https://discourse.vtk.org/u/BotellaA)
#### Post date: [August 12, 2025, 1:06pm UTC](https://discourse.vtk.org/t/cant-change-vertex-visibility-after-first-render/15923/8 "2025-08-12T13:06:52Z")

</div>

Thanks for the quick fix!  
Do you have a rough idea of the release date?

---

<div class="post-metadata">

### Author: ![jaswantp](https://discourse.vtk.org/user_avatar/discourse.vtk.org/jaswantp/32/10046_2.png) [@jaswantp](https://discourse.vtk.org/u/jaswantp)
#### Post date: [August 12, 2025, 1:09pm UTC](https://discourse.vtk.org/t/cant-change-vertex-visibility-after-first-render/15923/9 "2025-08-12T13:09:01Z")

</div>

Looks like it is 08/18 or sometime next week.

@mwestphal @vbolea @sankhesh

---

<div class="post-metadata">

### Author: ![vbolea](https://discourse.vtk.org/user_avatar/discourse.vtk.org/vbolea/32/4060_2.png) [@vbolea](https://discourse.vtk.org/u/vbolea)
#### Post date: [August 12, 2025, 6:24pm UTC](https://discourse.vtk.org/t/cant-change-vertex-visibility-after-first-render/15923/10 "2025-08-12T18:24:04Z")

</div>

> [@VTK v9.5.1 release (planned for next week)](https://discourse.vtk.org/t/vtk-v9-5-1-release-planned-for-next-week/15955):
>
> Hello VTK users and developers, We expect to release version 9.5.1 next week. This update will include important bug fixes from version 9.5.0. Please review the relevant updates on the [9.5.1 milestone](https://gitlab.kitware.com/vtk/vtk/-/milestones/25) and prepare for the upcoming release. In the meantime, if you have a patch that should be included, please ensure it is backported to the release branch as per the instructions in the [developer’s guide](https://docs.vtk.org/en/latest/developers_guide/git/develop.html#merge-a-topic) and tag it with the milestone.
