# VTK Examples - recent updates

**URL:** https://discourse.vtk.org/t/vtk-examples-recent-updates/16352
**Category:** Announcements
**Created:** [March 23, 2026, 7:32am UTC](https://discourse.vtk.org/t/vtk-examples-recent-updates/16352 "2026-03-23T07:32:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![amaclean](https://discourse.vtk.org/user_avatar/discourse.vtk.org/amaclean/32/224_2.png) [@amaclean](https://discourse.vtk.org/u/amaclean)
#### Post date: [March 23, 2026, 7:32am UTC](https://discourse.vtk.org/t/vtk-examples-recent-updates/16352/1 "2026-03-23T07:32:58Z")

</div>

Firstly, there have been lots of changes to VTK, so examples showcasing these new changes would be welcome. At the simplest, a suitably modified test case is welcome.

Some changes have been introduced to the examples, namely as a result of:

- [https://gitlab.kitware.com/vtk/vtk-examples/-/merge\_requests/444#note\_1788138](https://gitlab.kitware.com/vtk/vtk-examples/-/merge_requests/444#note_1788138) w.r.t. the C++ code here, I have kept in the deprecated `vtkImageThreshold` usage to assist users in transitioning to the new `vtkImageThreshold`. Check out [FroggieSurface](https://examples.vtk.org/site/PythonicAPI/Visualization/FroggieSurface/) to see how compact the new usage is in Python.
- [Changes to the VTK array interface: Size(), Resize(), Allocate()](https://discourse.vtk.org/t/changes-to-the-vtk-array-interface-size-resize-allocate/16344)

Other changes are:

- Simplified [DrawViewportBorder](https://examples.vtk.org/site/PythonicAPI/Snippets/DrawViewportBorder/) (I’ll probably redo the C++ version soon).
- Fixed a lot of test images.

As a result, the test results for C++ are now:

```Text
99% tests passed, 5 tests failed out of 1023

Label Time Summary:
WikiExamples = 353.25 sec*proc (1022 tests)

Total Test time (real) = 353.78 sec

The following tests FAILED:
        290 - InfoVis-KMeansClustering (SEGFAULT) WikiExamples
        339 - IO-IndividualVRML (Subprocess aborted) WikiExamples
        353 - IO-ReadDICOM (Subprocess aborted) WikiExamples
        375 - IO-TransientHDFReader (Failed) WikiExamples
        610 - PolyData-RemoveOutsideSurface (SEGFAULT) WikiExamples

```

[TransientHDFReader](https://examples.vtk.org/site/Cxx/IO/TransientHDFReader/) used to display an image, now it doesn’t. Any suggestions as to why would be welcome.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [March 23, 2026, 7:33am UTC](https://discourse.vtk.org/t/vtk-examples-recent-updates/16352/2 "2026-03-23T07:33:33Z")

</div>

> [@amaclean](#):
>
> `TransientHDFReader`

@Louis_Gombert may have some answers 🙂

---

<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: [March 23, 2026, 1:28pm UTC](https://discourse.vtk.org/t/vtk-examples-recent-updates/16352/3 "2026-03-23T13:28:01Z")

</div>

this vtkhdf file contains a partitioned polydata, so the VTK Reader will output a vtkPartitionedDataSet.

Later in this example, we use a vtkPolyDataMapper in the pipeline, I suppose we should use a vtkCompositePolyDataMapper. I’ll try that

---

<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: [March 23, 2026, 3:26pm UTC](https://discourse.vtk.org/t/vtk-examples-recent-updates/16352/4 "2026-03-23T15:26:29Z")

</div>

I have the fix, here is the MR: [https://gitlab.kitware.com/vtk/vtk-examples/-/merge\_requests/449](https://gitlab.kitware.com/vtk/vtk-examples/-/merge_requests/449)
