# Development

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

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

**Page:** 31

---

## [How to get the path between the root and a branch](https://discourse.vtk.org/t/how-to-get-the-path-between-the-root-and-a-branch/8157)

<div class="topic-metadata">

**Author:** [@lkuan](https://discourse.vtk.org/u/lkuan)\
**Replies:** 0\
**Last updated:** [March 28, 2022, 12:45pm UTC](https://discourse.vtk.org/t/how-to-get-the-path-between-the-root-and-a-branch/8157 "2022-03-28T12:45:58Z")

</div>

Hello Team, I have a centerline tree extracted from trachea. The centerline tree contains many discrete points. It can be visualized in the renderwindow correctly. The work I want to achieve is to build a path from the …

---

## [The plugin '/home/aarju/Qt/Tools/QtCreator/lib/Qt/plugins/designer/libQVTKWidgetPlugin.so' uses incompatible Qt library. (5.13.0) \[release\]](https://discourse.vtk.org/t/the-plugin-home-aarju-qt-tools-qtcreator-lib-qt-plugins-designer-libqvtkwidgetplugin-so-uses-incompatible-qt-library-5-13-0-release/8154)

<div class="topic-metadata">

**Author:** [@guptaaarju](https://discourse.vtk.org/u/guptaaarju)\
**Replies:** 0\
**Last updated:** [March 28, 2022, 6:54am UTC](https://discourse.vtk.org/t/the-plugin-home-aarju-qt-tools-qtcreator-lib-qt-plugins-designer-libqvtkwidgetplugin-so-uses-incompatible-qt-library-5-13-0-release/8154 "2022-03-28T06:54:54Z")

</div>

VTK: 7.1.1 QT: 5.13.2 Getting below error for plugings Error: The plugin ‘/home/aarju/Qt/Tools/QtCreator/lib/Qt/plugins/designer/libQVTKWidgetPlugin.so’ uses incompatible Qt library. (5.13.0) \[release\]

---

## [Add ability to adding interactive 2D widgets in ParaView](https://discourse.vtk.org/t/add-ability-to-adding-interactive-2d-widgets-in-paraview/1672)

<div class="topic-metadata">

**Author:** [@e-kolosov](https://discourse.vtk.org/u/e-kolosov)\
**Replies:** 4\
**Last updated:** [March 23, 2022, 9:53am UTC](https://discourse.vtk.org/t/add-ability-to-adding-interactive-2d-widgets-in-paraview/1672 "2022-03-23T09:53:21Z")

</div>

Hello. I implemented the ability to adding interactive 2D widgets in ParaView. See discussion https://discourse.paraview.org/t/is-there-any-abilities-to-add-a-interactive-widgets-on-linechartview-same-as-3d-widgets-on-r…

---

## [vtkDataArray::GetRange and ghost information](https://discourse.vtk.org/t/vtkdataarray-getrange-and-ghost-information/8099)

<div class="topic-metadata">

**Author:** [@Yohann\_Bearzi](https://discourse.vtk.org/u/Yohann_Bearzi)\
**Replies:** 12\
**Last updated:** [March 22, 2022, 5:07pm UTC](https://discourse.vtk.org/t/vtkdataarray-getrange-and-ghost-information/8099 "2022-03-22T17:07:10Z")

</div>

I’m posting to get feedbacks. Currently, there is no way to skip values inside a vtkDataArray when fetching its range using vtkDataArray::GetRange. A reason someone would want to skip values is when the data array is ti…

---

## [QQuickVTKRenderItem not working on emscripten](https://discourse.vtk.org/t/qquickvtkrenderitem-not-working-on-emscripten/8027)

<div class="topic-metadata">

**Author:** [@Zoheir](https://discourse.vtk.org/u/Zoheir)\
**Replies:** 2\
**Last updated:** [March 22, 2022, 12:54pm UTC](https://discourse.vtk.org/t/qquickvtkrenderitem-not-working-on-emscripten/8027 "2022-03-22T12:54:13Z")

</div>

Dear, I am trying to use the QQuickVTKRenderItem to render a vtk scene in a qml for web application using emscripten. For my purpose i just changed the test in (GUISupport\\QtQuick\\Testing\\Cxx) to be able to build and r…

---

## [Coordinates(x,y) values and pixel values under the cursor using vtk.js](https://discourse.vtk.org/t/coordinates-x-y-values-and-pixel-values-under-the-cursor-using-vtk-js/8095)

<div class="topic-metadata">

**Author:** [@Sneha-pk](https://discourse.vtk.org/u/Sneha-pk)\
**Replies:** 1\
**Last updated:** [March 21, 2022, 3:21pm UTC](https://discourse.vtk.org/t/coordinates-x-y-values-and-pixel-values-under-the-cursor-using-vtk-js/8095 "2022-03-21T15:21:30Z")

</div>

I am trying to display the coordinates(x,y) under the mouse cursor (on mousemove event) and also the pixel value using vtk.js on a vtkImageSlice. Is there any widget that already does that ? I know how to do that using …

---

## [I don't know 1 byte Memory Leaks. help me.](https://discourse.vtk.org/t/i-dont-know-1-byte-memory-leaks-help-me/8064)

<div class="topic-metadata">

**Author:** [@ldk7972](https://discourse.vtk.org/u/ldk7972)\
**Replies:** 1\
**Last updated:** [March 19, 2022, 5:18am UTC](https://discourse.vtk.org/t/i-dont-know-1-byte-memory-leaks-help-me/8064 "2022-03-19T05:18:36Z")

</div>

vtkSmartPointer\<vtkActor\> m\_vtkpModification\_Actor = vtkSmartPointer\<vtkActor\>::New(); vtkSmartPointer\<vtkUnstructuredGrid\> v\_Temp\_linegrid = vtkSmartPointer\<vtkUnstructuredGrid\>::New(); vtkSmartPointer\<vtkDataSetMapper\> …

---

## [Overlapping AMR support in vtkHDF](https://discourse.vtk.org/t/overlapping-amr-support-in-vtkhdf/7868)

<div class="topic-metadata">

**Author:** [@Francois\_Mazen](https://discourse.vtk.org/u/Francois_Mazen)\
**Replies:** 9\
**Last updated:** [March 18, 2022, 8:25pm UTC](https://discourse.vtk.org/t/overlapping-amr-support-in-vtkhdf/7868 "2022-03-18T20:25:11Z")

</div>

Hello, this is a proposal to add Overlapping AMR support to the vtkHDF format. AMR stands for Adaptive Mesh Refinement. The definition is basically a collection of image data grouped by level, where each level is a ref…

---

## [VTK in a c# application](https://discourse.vtk.org/t/vtk-in-a-c-application/8043)

<div class="topic-metadata">

**Author:** [@Fred](https://discourse.vtk.org/u/Fred)\
**Replies:** 2\
**Last updated:** [March 14, 2022, 1:05pm UTC](https://discourse.vtk.org/t/vtk-in-a-c-application/8043 "2022-03-14T13:05:31Z")

</div>

Hi, I am building an application in C# and I would like to know if it si possible to use VTK in such application. If so is it possible to render 3D volumes, and if so what data structure should I use. Frederic.

---

## [How to generate Vascular stent?](https://discourse.vtk.org/t/how-to-generate-vascular-stent/8032)

<div class="topic-metadata">

**Author:** [@junqiangchen](https://discourse.vtk.org/u/junqiangchen)\
**Replies:** 1\
**Last updated:** [March 12, 2022, 5:45am UTC](https://discourse.vtk.org/t/how-to-generate-vascular-stent/8032 "2022-03-12T05:45:30Z")

</div>

hi,i want generate Virtual Vascular Stent in VTK，i can generate simple Vascular Stent,like this and i want make simple Vascular Stent more truely，like this result： can anyone know how to do it? thank you!!

---

## [Can't change color of vtkParametricFunction generated object](https://discourse.vtk.org/t/cant-change-color-of-vtkparametricfunction-generated-object/8034)

<div class="topic-metadata">

**Author:** [@niebrueg](https://discourse.vtk.org/u/niebrueg)\
**Replies:** 1\
**Last updated:** [March 12, 2022, 4:47am UTC](https://discourse.vtk.org/t/cant-change-color-of-vtkparametricfunction-generated-object/8034 "2022-03-12T04:47:33Z")

</div>

I’m generating a custom parametric object and it always draws as black regardless of what I try. I want to color it based on the distance from the origin. I’ve tried SetScalarModeToDistance on the Parametric Function S…

---

## [Does it have to keep two 3d images has the same spacing and origin when using vtkImageBlend to blend them?](https://discourse.vtk.org/t/does-it-have-to-keep-two-3d-images-has-the-same-spacing-and-origin-when-using-vtkimageblend-to-blend-them/8017)

<div class="topic-metadata">

**Author:** [@snow](https://discourse.vtk.org/u/snow)\
**Replies:** 2\
**Last updated:** [March 11, 2022, 1:40am UTC](https://discourse.vtk.org/t/does-it-have-to-keep-two-3d-images-has-the-same-spacing-and-origin-when-using-vtkimageblend-to-blend-them/8017 "2022-03-11T01:40:31Z")

</div>

I have 2 3d images ,which have different dimension, origin and spacing ,they both are Grayscale image . When i use volume rendering or put them in 3dSclicer , Their spatial positions match well. but when i use vtkim…

---

## [apply undo/redo on a vtkActor](https://discourse.vtk.org/t/apply-undo-redo-on-a-vtkactor/8020)

<div class="topic-metadata">

**Author:** [@willk](https://discourse.vtk.org/u/willk)\
**Replies:** 0\
**Last updated:** [March 10, 2022, 3:45pm UTC](https://discourse.vtk.org/t/apply-undo-redo-on-a-vtkactor/8020 "2022-03-10T15:45:00Z")

</div>

How can i apply a undo/redo action on a Actor so that I can comeback to the previous movement of the actor?

---

## [Fixed VTK Java Wrappers on macOS](https://discourse.vtk.org/t/fixed-vtk-java-wrappers-on-macos/7467)

<div class="topic-metadata">

**Author:** [@Martin3d](https://discourse.vtk.org/u/Martin3d)\
**Replies:** 2\
**Last updated:** [March 10, 2022, 3:08pm UTC](https://discourse.vtk.org/t/fixed-vtk-java-wrappers-on-macos/7467 "2022-03-10T15:08:22Z")

</div>

Hi, I just would like to report that running VTK Java wrappers on macOS no longer crashes as long as one use JOGL 2.4. I have patched JOGL 2.4 so that it can run on Apple M1 and deployed the whole as maven artifacts on…

---

## [model on top issue in WASM](https://discourse.vtk.org/t/model-on-top-issue-in-wasm/8016)

<div class="topic-metadata">

**Author:** [@reichtiger](https://discourse.vtk.org/u/reichtiger)\
**Replies:** 0\
**Last updated:** [March 10, 2022, 2:28am UTC](https://discourse.vtk.org/t/model-on-top-issue-in-wasm/8016 "2022-03-10T02:28:58Z")

</div>

Hello, everyone. I have successfully compile VTK-9.1.0 to webassembly and it runs in docker fine. Here is the issue when I need to show model on top of others. On win11 local C++, it runs OK : =======================…

---

## [Lesson 17.1: Point Membership Classification with OpenCascade + VTK](https://discourse.vtk.org/t/lesson-17-1-point-membership-classification-with-opencascade-vtk/8009)

<div class="topic-metadata">

**Author:** [@anon41080341](https://discourse.vtk.org/u/anon41080341)\
**Replies:** 0\
**Last updated:** [March 9, 2022, 11:12am UTC](https://discourse.vtk.org/t/lesson-17-1-point-membership-classification-with-opencascade-vtk/8009 "2022-03-09T11:12:20Z")

</div>

//Dear OCC VTK enthusiasts //A simple example that is the same as shown in Lesson 17, but in VTK. \[Lesson 17.1: Point Membership Classification with OpenCascade - YouTube\] //You will see A Cone from AIS-BRepPrimAPI\_Ma…

---

## [How to detect the presence of corner annotation and clear it from vtkrender?](https://discourse.vtk.org/t/how-to-detect-the-presence-of-corner-annotation-and-clear-it-from-vtkrender/7998)

<div class="topic-metadata">

**Author:** [@Usha\_Diggi](https://discourse.vtk.org/u/Usha_Diggi)\
**Replies:** 0\
**Last updated:** [March 7, 2022, 8:13am UTC](https://discourse.vtk.org/t/how-to-detect-the-presence-of-corner-annotation-and-clear-it-from-vtkrender/7998 "2022-03-07T08:13:13Z")

</div>

I am reading the multiple DICOM data on same view port and parallelly displaying its meta data on its renderer using vtk corner annotation. while 2nd data loading, its info is overlaying on first one…I tried clearing …

---

## [How to create my own algorithmfilter in python?](https://discourse.vtk.org/t/how-to-create-my-own-algorithmfilter-in-python/7963)

<div class="topic-metadata">

**Author:** [@xq820063954](https://discourse.vtk.org/u/xq820063954)\
**Replies:** 2\
**Last updated:** [March 4, 2022, 2:07am UTC](https://discourse.vtk.org/t/how-to-create-my-own-algorithmfilter-in-python/7963 "2022-03-04T02:07:59Z")

</div>

Hello Team, I am a beginner and blocked in my research. I kindly need help of anyone here. I’m trying to convert CXX’s AlgorithmFilter sample code to Python. However, I don’t know how vtkNotUsed said in python, is ther…

---

## [Caching data using MTime](https://discourse.vtk.org/t/caching-data-using-mtime/7831)

<div class="topic-metadata">

**Author:** [@Jens\_Munk\_Hansen](https://discourse.vtk.org/u/Jens_Munk_Hansen)\
**Replies:** 4\
**Last updated:** [March 1, 2022, 6:52pm UTC](https://discourse.vtk.org/t/caching-data-using-mtime/7831 "2022-03-01T18:52:29Z")

</div>

Hi Developers I am looking at a problem, where a module needs to access data from the past. I am thinking of writing a module similar to vtkTemporalDataCache, but where data are stored using a time derived from GetMTime…

---

## [Cannot find Histogram method in Python vtk 9.0](https://discourse.vtk.org/t/cannot-find-histogram-method-in-python-vtk-9-0/7935)

<div class="topic-metadata">

**Author:** [@perphy](https://discourse.vtk.org/u/perphy)\
**Replies:** 1\
**Last updated:** [March 1, 2022, 8:57am UTC](https://discourse.vtk.org/t/cannot-find-histogram-method-in-python-vtk-9-0/7935 "2022-03-01T08:57:50Z")

</div>

Hi: I am looking for vtkImageHistogram in Python vtk version 9 above. I cannot find it. How can I do Image Histogram in Python version 9 above? Thanks

---

## [More pythonic interface / closer to numpy](https://discourse.vtk.org/t/more-pythonic-interface-closer-to-numpy/7905)

<div class="topic-metadata">

**Author:** [@berk.geveci](https://discourse.vtk.org/u/berk.geveci)\
**Replies:** 12\
**Last updated:** [February 28, 2022, 6:32am UTC](https://discourse.vtk.org/t/more-pythonic-interface-closer-to-numpy/7905 "2022-02-28T06:32:39Z")

</div>

Hi everyone, I would like to propose some improvements to VTK both at C++ and Python level with the following goals: Convenient interface between the VTK data model and numpy, pandas etc. (wrapper changes -done-, pyth…

---

## [Multi-texture OBJ texture blending issue](https://discourse.vtk.org/t/multi-texture-obj-texture-blending-issue/7898)

<div class="topic-metadata">

**Author:** [@thebookins](https://discourse.vtk.org/u/thebookins)\
**Replies:** 3\
**Last updated:** [February 23, 2022, 11:02pm UTC](https://discourse.vtk.org/t/multi-texture-obj-texture-blending-issue/7898 "2022-02-23T23:02:25Z")

</div>

Hi, I’m trying to load an OBJ file with more than one texture, using VTK 9.1.0 in Python. This post shows the basic idea and there is some further discussion here. The following code shows the essential steps. Given a p…

---

## [error when ExtractVisibleCells](https://discourse.vtk.org/t/error-when-extractvisiblecells/7904)

<div class="topic-metadata">

**Author:** [@feierpusier](https://discourse.vtk.org/u/feierpusier)\
**Replies:** 0\
**Last updated:** [February 23, 2022, 12:30pm UTC](https://discourse.vtk.org/t/error-when-extractvisiblecells/7904 "2022-02-23T12:30:52Z")

</div>

when I run https://kitware.github.io/vtk-examples/site/Cxx/Filtering/ExtractVisibleCells/ in Qt, the .exe crash and “2022-02-23 20:24:07.860 ( 6.946s) \[ \] vtkOpenGLState.cxx:2024 WARN| Attempt to pop framebuffer b…

---

## [How to hide and show vtkDistancewidget on vtkResliceImageviewer?](https://discourse.vtk.org/t/how-to-hide-and-show-vtkdistancewidget-on-vtkresliceimageviewer/7902)

<div class="topic-metadata">

**Author:** [@Usha\_Diggi](https://discourse.vtk.org/u/Usha_Diggi)\
**Replies:** 0\
**Last updated:** [February 23, 2022, 10:36am UTC](https://discourse.vtk.org/t/how-to-hide-and-show-vtkdistancewidget-on-vtkresliceimageviewer/7902 "2022-02-23T10:36:27Z")

</div>

Hi, I created vtkDistanceWidget to measure distance on reslice image viewer. and it works fine but when I scroll through slices, the distanceWidget also appears. I want to display the measure tool only for current slic…

---

## [Integration of VTK/ITK with QT](https://discourse.vtk.org/t/integration-of-vtk-itk-with-qt/7799)

<div class="topic-metadata">

**Author:** [@Amir\_hossein\_Foruzan](https://discourse.vtk.org/u/Amir_hossein_Foruzan)\
**Replies:** 1\
**Last updated:** [February 23, 2022, 7:48am UTC](https://discourse.vtk.org/t/integration-of-vtk-itk-with-qt/7799 "2022-02-23T07:48:55Z")

</div>

Dear Friends Hello I have experience with ITK and VTK but new to integration of QT with these toolkits. I do not know which one to use, QT Creator or QT Designer? And how to integrate? There are lots of confusing reso…

---

## [Try and except problem when LegacyVTKReader is run](https://discourse.vtk.org/t/try-and-except-problem-when-legacyvtkreader-is-run/7884)

<div class="topic-metadata">

**Author:** [@rasunag27](https://discourse.vtk.org/u/rasunag27)\
**Replies:** 1\
**Last updated:** [February 22, 2022, 2:31am UTC](https://discourse.vtk.org/t/try-and-except-problem-when-legacyvtkreader-is-run/7884 "2022-02-22T02:31:04Z")

</div>

Hi, This is a simple question which I am unable to resolve it. So, here is the thing. I have a vtk file which is read through LegacyVTKReader. I am using python exception handling to print an exception error if file is…

---

## [Python code for TubesWithVaryingRadius?](https://discourse.vtk.org/t/python-code-for-tubeswithvaryingradius/7861)

<div class="topic-metadata">

**Author:** [@\_11](https://discourse.vtk.org/u/_11)\
**Replies:** 0\
**Last updated:** [February 17, 2022, 11:58am UTC](https://discourse.vtk.org/t/python-code-for-tubeswithvaryingradius/7861 "2022-02-17T11:58:59Z")

</div>

I am really wondering if you could provide the corresponding python code for TubesWithVaryingRadius because I have very little experience in C++ https://kitware.github.io/vtk-examples/site/Cxx/VisualizationAlgorithms/Tu…

---

## [About VTK Remote Modules](https://discourse.vtk.org/t/about-vtk-remote-modules/7821)

<div class="topic-metadata">

**Author:** [@mwestphal](https://discourse.vtk.org/u/mwestphal)\
**Replies:** 13\
**Last updated:** [February 16, 2022, 5:14pm UTC](https://discourse.vtk.org/t/about-vtk-remote-modules/7821 "2022-02-16T17:14:14Z")

</div>

VTK Remote Modules have been added to VTK in 2015 in an attempt to easily add new modules to VTK from external repositories. At the time, VTK was not very modular and creating modules was not easy as it is now, so it ma…

---

## [CenterLine.vtk file is not aligned properly 3D view in slicer4.13](https://discourse.vtk.org/t/centerline-vtk-file-is-not-aligned-properly-3d-view-in-slicer4-13/7843)

<div class="topic-metadata">

**Author:** [@Mahesh\_Timmanagoudar](https://discourse.vtk.org/u/Mahesh_Timmanagoudar)\
**Replies:** 2\
**Last updated:** [February 16, 2022, 4:55am UTC](https://discourse.vtk.org/t/centerline-vtk-file-is-not-aligned-properly-3d-view-in-slicer4-13/7843 "2022-02-16T04:55:13Z")

</div>

I have generated VTK file using slicer 4.13 version. The VTK file looks like below. If i try to display above file in 3D view means. It wont align using both LPS and RAS option. It will be like below in slicer view. …

---

## [How to return std::string](https://discourse.vtk.org/t/how-to-return-std-string/7840)

<div class="topic-metadata">

**Author:** [@lassoan](https://discourse.vtk.org/u/lassoan)\
**Replies:** 11\
**Last updated:** [February 15, 2022, 3:41pm UTC](https://discourse.vtk.org/t/how-to-return-std-string/7840 "2022-02-15T15:41:38Z")

</div>

While reviewing a merge request I noticed that while VTK generally returns std::string by value. This is good, as it allows to keep a stable API while implementation details can change. In contrast, returning const std::…

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

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