# Development

**URL:** https://discourse.vtk.org/c/development/7.md?page=33

[Latest](https://discourse.vtk.org/latest.md) · [Categories](https://discourse.vtk.org/categories.md) · [Tags](https://discourse.vtk.org/tags.md)

**Page:** 34

---

## [vtkStripper get wrong loop contour when inputdata is vtkcutter](https://discourse.vtk.org/t/vtkstripper-get-wrong-loop-contour-when-inputdata-is-vtkcutter/7113)

<div class="topic-metadata">

**Author:** [@ZUNTING\_HU](https://discourse.vtk.org/u/ZUNTING_HU)\
**Replies:** 12\
**Last updated:** [November 10, 2021, 6:16am UTC](https://discourse.vtk.org/t/vtkstripper-get-wrong-loop-contour-when-inputdata-is-vtkcutter/7113 "2021-11-10T06:16:41Z")

</div>

hi guys I use vtkcutter cut mesh by planes and get 200 contours. And, use vtkStripper to detect closed contour. finally, I use vtkCleanPolyData to sort the points of contours code is as follows: vtkSmartPointer cutter…

---

## [python3 and macOS](https://discourse.vtk.org/t/python3-and-macos/6912)

<div class="topic-metadata">

**Author:** [@seanm](https://discourse.vtk.org/u/seanm)\
**Replies:** 9\
**Last updated:** [November 5, 2021, 4:24pm UTC](https://discourse.vtk.org/t/python3-and-macos/6912 "2021-11-05T16:24:34Z")

</div>

Hi all, If turn on VTK\_WRAP\_PYTHON on a recent version of macOS with Xcode installed, it finds: Python3\_EXECUTABLE \*/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions…

---

## [Set the RUNPATH of installed shared libraries to "$ORIGIN"](https://discourse.vtk.org/t/set-the-runpath-of-installed-shared-libraries-to-origin/6234)

<div class="topic-metadata">

**Author:** [@Wile\_E\_Coyote](https://discourse.vtk.org/u/Wile_E_Coyote)\
**Replies:** 7\
**Last updated:** [November 5, 2021, 2:45pm UTC](https://discourse.vtk.org/t/set-the-runpath-of-installed-shared-libraries-to-origin/6234 "2021-11-05T14:45:39Z")

</div>

This is Ubuntu 20.04.2 LTS / x86\_64 / gcc 9.3.0 here. When I build the “VTK-9.0.3”, all its shared libraries get the “RUNPATH” pointing to the "/.../build/lib" directory. However, the “make install” resets the runtime …

---

## [Unsafe vtkPoints::GetPoint(vtkIdType) method](https://discourse.vtk.org/t/unsafe-vtkpoints-getpoint-vtkidtype-method/7005)

<div class="topic-metadata">

**Author:** [@lassoan](https://discourse.vtk.org/u/lassoan)\
**Replies:** 15\
**Last updated:** [November 2, 2021, 1:48pm UTC](https://discourse.vtk.org/t/unsafe-vtkpoints-getpoint-vtkidtype-method/7005 "2021-11-02T13:48:24Z")

</div>

We ran into an issue due to documented but unexpected behavior of the VTK API. A new developer introduced a bug by calling double\* vtkPoints::GetPoint(vtkIdType) multiple times and did not expect that a new call to GetPo…

---

## [QQmlVTKPlugin window initialization from QML](https://discourse.vtk.org/t/qqmlvtkplugin-window-initialization-from-qml/7035)

<div class="topic-metadata">

**Author:** [@Julienchz](https://discourse.vtk.org/u/Julienchz)\
**Replies:** 1\
**Last updated:** [November 2, 2021, 10:37am UTC](https://discourse.vtk.org/t/qqmlvtkplugin-window-initialization-from-qml/7035 "2021-11-02T10:37:30Z")

</div>

Hello, I am using the QQMLvtkPlugin in my Qt Quick app. To do that the vtk documentation give the following example : QQuickVTKRenderWindow::setupGraphicsBackend(); QGuiApplication app(argc, argv); QQmlApplicaQ…

---

## [VTK-9.1.0.rc2: vtkPoissonDiskSampler error: ld returned 1](https://discourse.vtk.org/t/vtk-9-1-0-rc2-vtkpoissondisksampler-error-ld-returned-1/7026)

<div class="topic-metadata">

**Author:** [@mrwsl](https://discourse.vtk.org/u/mrwsl)\
**Replies:** 4\
**Last updated:** [November 1, 2021, 11:17am UTC](https://discourse.vtk.org/t/vtk-9-1-0-rc2-vtkpoissondisksampler-error-ld-returned-1/7026 "2021-11-01T11:17:44Z")

</div>

I built VTK myself on two systems (arch & ubuntu hirsute) and changed the PolyDataPointSampler example to use the PoissonDiskSampler. On both systems I get the following error while compiling: $ make Scanning dependenci…

---

## [Deep copy of polydata seems broken](https://discourse.vtk.org/t/deep-copy-of-polydata-seems-broken/7018)

<div class="topic-metadata">

**Author:** [@peterneher](https://discourse.vtk.org/u/peterneher)\
**Replies:** 0\
**Last updated:** [October 29, 2021, 2:13pm UTC](https://discourse.vtk.org/t/deep-copy-of-polydata-seems-broken/7018 "2021-10-29T14:13:28Z")

</div>

Hi everyone, in out project we recently upgraded from VTK 8 to 9. Following this I discovered an issue with copying polydata at this location in my code: MITK-Diffusion/mitkFiberBundle.cpp at master · MIC-DKFZ/MITK-Diff…

---

## [Live Demos for VTK Cxx examples](https://discourse.vtk.org/t/live-demos-for-vtk-cxx-examples/6960)

<div class="topic-metadata">

**Author:** [@jaswantp](https://discourse.vtk.org/u/jaswantp)\
**Replies:** 0\
**Last updated:** [October 25, 2021, 11:22am UTC](https://discourse.vtk.org/t/live-demos-for-vtk-cxx-examples/6960 "2021-10-25T11:22:06Z")

</div>

Since the VTK Cxx → Emscripten → (WebAssembly + JS) workflow is almost working, I am interested in getting feedback from the devs and users here, if this is a good idea… @amaclean Lets forget about the size of wasm bina…

---

## [Writing custom class based on \`vtkDataSet\`](https://discourse.vtk.org/t/writing-custom-class-based-on-vtkdataset/6950)

<div class="topic-metadata">

**Author:** [@kerim](https://discourse.vtk.org/u/kerim)\
**Replies:** 6\
**Last updated:** [October 28, 2021, 1:09pm UTC](https://discourse.vtk.org/t/writing-custom-class-based-on-vtkdataset/6950 "2021-10-28T13:09:20Z")

</div>

Hi, I’m thinking to write custom volume dataset for working with scalars. I work with geo data and usually there we have arbitrary X,Y coordinates (XY are oriented in horizontal plane, Z is vertical axis) and Z is usua…

---

## [How to capture mouse move event?](https://discourse.vtk.org/t/how-to-capture-mouse-move-event/6995)

<div class="topic-metadata">

**Author:** [@Cameron](https://discourse.vtk.org/u/Cameron)\
**Replies:** 1\
**Last updated:** [October 28, 2021, 7:47am UTC](https://discourse.vtk.org/t/how-to-capture-mouse-move-event/6995 "2021-10-28T07:47:18Z")

</div>

I am struggling with capturing mouse move event. e.g. I have this custom style and set it to the interactor. namespace { class vtkMouseMoveStyle : public vtkInteractorStyleTrackballCamera { public: static vt…

---

## [VTK point cloud and mesh filters for downsampling, registration, ICP transform](https://discourse.vtk.org/t/vtk-point-cloud-and-mesh-filters-for-downsampling-registration-icp-transform/6974)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.vtk.org/u/jcfr)\
**Replies:** 0\
**Last updated:** [October 26, 2021, 7:59pm UTC](https://discourse.vtk.org/t/vtk-point-cloud-and-mesh-filters-for-downsampling-registration-icp-transform/6974 "2021-10-26T19:59:33Z")

</div>

In the context of the SlicerMorph project (details below). We are looking to improving existing VTK filters or develop new ones. Question Following a suggestion of @will.schroeder , I am reaching out to understand which…

---

## [Inconsistent behavior in X11 interactor ProcessEvents](https://discourse.vtk.org/t/inconsistent-behavior-in-x11-interactor-processevents/6955)

<div class="topic-metadata">

**Author:** [@jaswantp](https://discourse.vtk.org/u/jaswantp)\
**Replies:** 0\
**Last updated:** [October 25, 2021, 8:28am UTC](https://discourse.vtk.org/t/inconsistent-behavior-in-x11-interactor-processevents/6955 "2021-10-25T08:28:14Z")

</div>

When I call ProcessEvents in my own loop, the joystick functionality: Dolly, Spin, Rotate do not work. However, zooming in/out works. This is not the case on windows or SDL2. void callback(vtkObject\* caller, unsigned lo…

---

## [shader replacement issue in 9.1.0.rc1](https://discourse.vtk.org/t/shader-replacement-issue-in-9-1-0-rc1/6949)

<div class="topic-metadata">

**Author:** [@andreasbuykx](https://discourse.vtk.org/u/andreasbuykx)\
**Replies:** 0\
**Last updated:** [October 23, 2021, 10:14am UTC](https://discourse.vtk.org/t/shader-replacement-issue-in-9-1-0-rc1/6949 "2021-10-23T10:14:15Z")

</div>

We use dashed lines in our application. Dashed lines are no longer supported natively, so I have developed an actor that implements the fix proposed by @clintonstimpson in https://gitlab.kitware.com/vtk/vtk/-/issues/1579…

---

## [set EdgeVisibilityOn when draw VTK\_HEXAHEDRON](https://discourse.vtk.org/t/set-edgevisibilityon-when-draw-vtk-hexahedron/6932)

<div class="topic-metadata">

**Author:** [@Ren](https://discourse.vtk.org/u/Ren)\
**Replies:** 2\
**Last updated:** [October 25, 2021, 2:35am UTC](https://discourse.vtk.org/t/set-edgevisibilityon-when-draw-vtk-hexahedron/6932 "2021-10-25T02:35:07Z")

</div>

I have a question about EdgeVisibilityOn when draw VTK\_HEXAHEDRON, why a little edge will be show in the picture? In SetRepresentationToSurface mode, the small edge should be hide.

---

## [VTK support for Qt](https://discourse.vtk.org/t/vtk-support-for-qt/6909)

<div class="topic-metadata">

**Author:** [@SurajJadhav](https://discourse.vtk.org/u/SurajJadhav)\
**Replies:** 1\
**Last updated:** [October 19, 2021, 4:30am UTC](https://discourse.vtk.org/t/vtk-support-for-qt/6909 "2021-10-19T04:30:50Z")

</div>

I m using Ubuntu 20.04 and Qt5.13.2. I was using VTK 7.1 till now and had generated QVTKWidgetPlugin.so file to be used in Qt. Now I have upgraded my VTK to latest version 9.1.0 and I have seen in multiple posts that QV…

---

## [Memory leak in QVTK widget and PCL visualizer](https://discourse.vtk.org/t/memory-leak-in-qvtk-widget-and-pcl-visualizer/6881)

<div class="topic-metadata">

**Author:** [@SurajJadhav](https://discourse.vtk.org/u/SurajJadhav)\
**Replies:** 3\
**Last updated:** [October 18, 2021, 10:17am UTC](https://discourse.vtk.org/t/memory-leak-in-qvtk-widget-and-pcl-visualizer/6881 "2021-10-18T10:17:16Z")

</div>

I m using Ubuntu 20.04 with Qt5.12 for developing a QT project which uses a QVTK widget to display a 3D PCL visualiser. I m facing memory leak issues after defining the visualiser and vtk widget relationship. The header …

---

## [The KeyPressEvent event cannot be acquired and processed in the emscripten environment](https://discourse.vtk.org/t/the-keypressevent-event-cannot-be-acquired-and-processed-in-the-emscripten-environment/6891)

<div class="topic-metadata">

**Author:** [@Kevin\_Jiang](https://discourse.vtk.org/u/Kevin_Jiang)\
**Replies:** 0\
**Last updated:** [October 15, 2021, 7:17am UTC](https://discourse.vtk.org/t/the-keypressevent-event-cannot-be-acquired-and-processed-in-the-emscripten-environment/6891 "2021-10-15T07:17:50Z")

</div>

I recently followed your vtkDearImGUIInjector project and built it under emscripten.My development environment is： VTK： git clone https://gitlab.kitware.com/vtk/VTK.git git checkout b39f9bfb Emscripten： 1.39.10 I s…

---

## [Anyone tried QQmlVTKPlugin in VTK 9.1?](https://discourse.vtk.org/t/anyone-tried-qqmlvtkplugin-in-vtk-9-1/6852)

<div class="topic-metadata">

**Author:** [@Cameron](https://discourse.vtk.org/u/Cameron)\
**Replies:** 1\
**Last updated:** [October 15, 2021, 7:04am UTC](https://discourse.vtk.org/t/anyone-tried-qqmlvtkplugin-in-vtk-9-1/6852 "2021-10-15T07:04:08Z")

</div>

I wanted to use QtQuick + QML as the frontend and VTK as the backend. I found out that VTK 9.1 has implemented QQmlVTKPlugin. So I would like to try it. See https://vtk.org/doc/nightly/html/classQQmlVTKPlugin.html#deta…

---

## [How to downlod the input file of official example?](https://discourse.vtk.org/t/how-to-downlod-the-input-file-of-official-example/5577)

<div class="topic-metadata">

**Author:** [@lessismore](https://discourse.vtk.org/u/lessismore)\
**Replies:** 4\
**Last updated:** [October 15, 2021, 6:46am UTC](https://discourse.vtk.org/t/how-to-downlod-the-input-file-of-official-example/5577 "2021-10-15T06:46:37Z")

</div>

I am a new user of vtk,and learn a lot from official example.However I have a trouble in reading example that can’t find the address of input file of official example. I hope someone can help me,thank you.

---

## [loguru link error on macOS 10.12](https://discourse.vtk.org/t/loguru-link-error-on-macos-10-12/6859)

<div class="topic-metadata">

**Author:** [@seanm](https://discourse.vtk.org/u/seanm)\
**Replies:** 2\
**Last updated:** [October 14, 2021, 2:53pm UTC](https://discourse.vtk.org/t/loguru-link-error-on-macos-10-12/6859 "2021-10-14T14:53:30Z")

</div>

Hi all, One, and only one, of my bots has this build error: Undefined symbols for architecture x86\_64: "vtkloguru::vstrprintf(char const\*, \_\_va\_list\_tag\*)", referenced from: vtkLogger::LogScopeRAII::LogScopeRAI…

---

## [Building VTK for arm64 architecture](https://discourse.vtk.org/t/building-vtk-for-arm64-architecture/6524)

<div class="topic-metadata">

**Author:** [@SurajJadhav](https://discourse.vtk.org/u/SurajJadhav)\
**Replies:** 7\
**Last updated:** [October 11, 2021, 3:44am UTC](https://discourse.vtk.org/t/building-vtk-for-arm64-architecture/6524 "2021-10-11T03:44:50Z")

</div>

How can I build VTK 8.2.0 for arm64 architecture? Previously I have done it for x86\_64 machine and it worked fine. Now I m moving to arm64 machine but I see no options in CMake during building for arm64. Is there any ref…

---

## [Extraction and fusion of connected domains](https://discourse.vtk.org/t/extraction-and-fusion-of-connected-domains/6781)

<div class="topic-metadata">

**Author:** [@buyierfei](https://discourse.vtk.org/u/buyierfei)\
**Replies:** 0\
**Last updated:** [October 8, 2021, 6:29am UTC](https://discourse.vtk.org/t/extraction-and-fusion-of-connected-domains/6781 "2021-10-08T06:29:18Z")

</div>

After analyzing the connected domain of a 3D volume data, several labeled connected domains are obtained. How to obtain the volume data of the corresponding connected domain through the label? What should I do if I want …

---

## [Event Processing order when Vtk Application is slow](https://discourse.vtk.org/t/event-processing-order-when-vtk-application-is-slow/6758)

<div class="topic-metadata">

**Author:** [@sateesh](https://discourse.vtk.org/u/sateesh)\
**Replies:** 2\
**Last updated:** [October 7, 2021, 5:44am UTC](https://discourse.vtk.org/t/event-processing-order-when-vtk-application-is-slow/6758 "2021-10-07T05:44:48Z")

</div>

Hi, There seems to be some issue with the event processing order using VTK version 8.1.0 and Qt version 5.10. This occurs when there are more graphics rendered in QVTKOpenGLWidget based window, which makes the applicat…

---

## [Clarifications and Modifications of Global Ids](https://discourse.vtk.org/t/clarifications-and-modifications-of-global-ids/6746)

<div class="topic-metadata">

**Author:** [@Yohann\_Bearzi](https://discourse.vtk.org/u/Yohann_Bearzi)\
**Replies:** 5\
**Last updated:** [October 6, 2021, 2:23pm UTC](https://discourse.vtk.org/t/clarifications-and-modifications-of-global-ids/6746 "2021-10-06T14:23:55Z")

</div>

This post follows this discussion. In VTK, cell data and point data hold a concept called “attribute types”. Some of the most noticeable ones are Normals, Scalars, and GlobalIds. Global ids can be generated using vtkGe…

---

## [Python IDE autocompletion for upcoming VTK 9.1](https://discourse.vtk.org/t/python-ide-autocompletion-for-upcoming-vtk-9-1/6708)

<div class="topic-metadata">

**Author:** [@dgobbi](https://discourse.vtk.org/u/dgobbi)\
**Replies:** 30\
**Last updated:** [October 1, 2021, 4:04am UTC](https://discourse.vtk.org/t/python-ide-autocompletion-for-upcoming-vtk-9-1/6708 "2021-10-01T04:04:40Z")

</div>

Hi all, just today I merged a patch into VTK-master to improve the vtk-python method descriptors and docstrings. This should help autocompletion and hinting for ipython and jupyter. Anyone who wants to try it out, plea…

---

## [Vtu xsd format](https://discourse.vtk.org/t/vtu-xsd-format/6733)

<div class="topic-metadata">

**Author:** [@hamid\_badi](https://discourse.vtk.org/u/hamid_badi)\
**Replies:** 0\
**Last updated:** [September 30, 2021, 3:43pm UTC](https://discourse.vtk.org/t/vtu-xsd-format/6733 "2021-09-30T15:43:10Z")

</div>

Hi, Is there a xsd vtu file format ? I can’t find a precise description of the vtu file format. Best regards.

---

## [vtk-examples Repository Scraping](https://discourse.vtk.org/t/vtk-examples-repository-scraping/6730)

<div class="topic-metadata">

**Author:** [@amaclean](https://discourse.vtk.org/u/amaclean)\
**Replies:** 0\
**Last updated:** [September 30, 2021, 7:12am UTC](https://discourse.vtk.org/t/vtk-examples-repository-scraping/6730 "2021-09-30T07:12:55Z")

</div>

I have just completed a major rewrite of ScrapeRepo.py. This script generates all the markdown files for the web. Please let me know it you see any issues on the web pages e.g missing/bad links or missing images. Here …

---

## [vtkGeometryFilter and its evil spawn vtkDataSetSurfaceFilter](https://discourse.vtk.org/t/vtkgeometryfilter-and-its-evil-spawn-vtkdatasetsurfacefilter/4083)

<div class="topic-metadata">

**Author:** [@will.schroeder](https://discourse.vtk.org/u/will.schroeder)\
**Replies:** 5\
**Last updated:** [September 28, 2021, 5:27pm UTC](https://discourse.vtk.org/t/vtkgeometryfilter-and-its-evil-spawn-vtkdatasetsurfacefilter/4083 "2021-09-28T17:27:02Z")

</div>

Summary: Soon I will push a revamped version of vtkGeometryFilter. Since it is used heavily in VTK, I wouldn’t be surprised to see some issues pop up (despite passing all tests). Please let me know if you see anything u…

---

## [Using vtkCutter on vtkPolyhedron cells with large number of vertices ( \> 512)](https://discourse.vtk.org/t/using-vtkcutter-on-vtkpolyhedron-cells-with-large-number-of-vertices-512/5785)

<div class="topic-metadata">

**Author:** [@scbiradar](https://discourse.vtk.org/u/scbiradar)\
**Replies:** 4\
**Last updated:** [September 27, 2021, 1:08pm UTC](https://discourse.vtk.org/t/using-vtkcutter-on-vtkpolyhedron-cells-with-large-number-of-vertices-512/5785 "2021-09-27T13:08:53Z")

</div>

I have a CFD dataset consisting of hex and polyhedral cells. When I try to apply vtkCutter using a plane on the dataset, VTK crashes for some polyhedral cells. I then found that it was crashing when I tried to cut throu…

---

## [VTK review process documentation](https://discourse.vtk.org/t/vtk-review-process-documentation/6629)

<div class="topic-metadata">

**Author:** [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)\
**Replies:** 27\
**Last updated:** [September 25, 2021, 6:51am UTC](https://discourse.vtk.org/t/vtk-review-process-documentation/6629 "2021-09-25T06:51:28Z")

</div>

Hi all, I’ve pushed an MR which covers some of the things which should be considered for VTK contributions. I know that Python guidelines are missing, but I don’t do much VTK Python development, so suggestions for what…

[Previous page](https://discourse.vtk.org/c/development/7.md?page=32)

[Next page](https://discourse.vtk.org/c/development/7.md?page=34)
