# Development

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

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

**Page:** 9

---

## [render abnormal after my vtk upgrade from 8.2 to 9.4rc2](https://discourse.vtk.org/t/render-abnormal-after-my-vtk-upgrade-from-8-2-to-9-4rc2/14862)

<div class="topic-metadata">

**Author:** [@cmodel](https://discourse.vtk.org/u/cmodel)\
**Replies:** 2\
**Last updated:** [November 22, 2024, 9:46am UTC](https://discourse.vtk.org/t/render-abnormal-after-my-vtk-upgrade-from-8-2-to-9-4rc2/14862 "2024-11-22T09:46:33Z")

</div>

My code base is vtk 8.2.0, can normally render what program should do. like the following: But after I upgrade to vtk 9.4rc2, it displays as the following: I only changed some methods that are obsolete or renamed,…

---

## [what is FIELD\_ASSOCIATION\_POINTS\_THEN\_CELLS?](https://discourse.vtk.org/t/what-is-field-association-points-then-cells/14906)

<div class="topic-metadata">

**Author:** [@joint](https://discourse.vtk.org/u/joint)\
**Replies:** 0\
**Last updated:** [November 22, 2024, 9:29am UTC](https://discourse.vtk.org/t/what-is-field-association-points-then-cells/14906 "2024-11-22T09:29:00Z")

</div>

Hello what do the types of field associations mean essentially? I dont get it. FIELD\_ASSOCIATION\_POINTS\_THEN\_CELLS contains both points and cells right? What is field association? Do FIELD\_ASSOCIATION\_CELLS contain…

---

## [VTKHDF Unstructured Grid - Grid in Separate File](https://discourse.vtk.org/t/vtkhdf-unstructured-grid-grid-in-separate-file/14879)

<div class="topic-metadata">

**Author:** [@johodges](https://discourse.vtk.org/u/johodges)\
**Replies:** 5\
**Last updated:** [November 22, 2024, 8:19am UTC](https://discourse.vtk.org/t/vtkhdf-unstructured-grid-grid-in-separate-file/14879 "2024-11-22T08:19:55Z")

</div>

Hello all. I am using the VTKHDF unstructured grid format to output data from a CFD model in Fortran. We currently want to output separate files per timestep. The issue we are running into at the moment is that duplicati…

---

## [Memory leaks in vtkRenderWindow with parentId](https://discourse.vtk.org/t/memory-leaks-in-vtkrenderwindow-with-parentid/14856)

<div class="topic-metadata">

**Author:** [@gistam](https://discourse.vtk.org/u/gistam)\
**Replies:** 3\
**Last updated:** [November 21, 2024, 11:10am UTC](https://discourse.vtk.org/t/memory-leaks-in-vtkrenderwindow-with-parentid/14856 "2024-11-21T11:10:54Z")

</div>

I created a simple application to better explain the issue I’m encountering in my main project. In my main application, I use MFC and set the CChildFrame as the parent window for VTK. Since calling iren-\>Start() causes t…

---

## [vtkIncrementalCellLocator](https://discourse.vtk.org/t/vtkincrementalcelllocator/14832)

<div class="topic-metadata">

**Author:** [@Jens\_Munk\_Hansen](https://discourse.vtk.org/u/Jens_Munk_Hansen)\
**Replies:** 3\
**Last updated:** [November 20, 2024, 10:19pm UTC](https://discourse.vtk.org/t/vtkincrementalcelllocator/14832 "2024-11-20T22:19:51Z")

</div>

Hi Developers I am currently developing an incremental cell locator for fast removal and insertion of cells. So far I have a prototype, where I have used NanoFlann and a restriction to triangles. Considering that it sho…

---

## [Bug on transparency between actor and widgetin VTK9?](https://discourse.vtk.org/t/bug-on-transparency-between-actor-and-widgetin-vtk9/14590)

<div class="topic-metadata">

**Author:** [@Laure\_C](https://discourse.vtk.org/u/Laure_C)\
**Replies:** 12\
**Last updated:** [November 20, 2024, 9:52pm UTC](https://discourse.vtk.org/t/bug-on-transparency-between-actor-and-widgetin-vtk9/14590 "2024-11-20T21:52:11Z")

</div>

Hi, I want to display an actor and a widget with some transparency. It seems VTK8 was in alpha blending but VTK9 uses additive blending. Shading seems broken too. How to do to have same rendering as in VTK 8? #incl…

---

## [VTK using on wayland](https://discourse.vtk.org/t/vtk-using-on-wayland/14848)

<div class="topic-metadata">

**Author:** [@CHENG-HSUAN](https://discourse.vtk.org/u/CHENG-HSUAN)\
**Replies:** 12\
**Last updated:** [November 20, 2024, 2:46pm UTC](https://discourse.vtk.org/t/vtk-using-on-wayland/14848 "2024-11-20T14:46:33Z")

</div>

Hello everyone, I’m new to VTK and I’m encountering an issue when trying to render CylinderExample my embedded environment is: wayland with EGL so I rebuild VTK 9.1.0 source code with these options VTK\_USE\_X=OFF VTK…

---

## [How to define the channels and data types of vtkTexture](https://discourse.vtk.org/t/how-to-define-the-channels-and-data-types-of-vtktexture/14850)

<div class="topic-metadata">

**Author:** [@Lincac](https://discourse.vtk.org/u/Lincac)\
**Replies:** 2\
**Last updated:** [November 20, 2024, 2:47am UTC](https://discourse.vtk.org/t/how-to-define-the-channels-and-data-types-of-vtktexture/14850 "2024-11-20T02:47:41Z")

</div>

The image data I input has already been specified with the data type and number of channels, but when I use vtkActor to input textures, I use RenderDoc to capture them, and I find that the uploaded textures are always pa…

---

## [Panoramic View: Making Panoramic View and Getting Slices from the Panoramic View](https://discourse.vtk.org/t/panoramic-view-making-panoramic-view-and-getting-slices-from-the-panoramic-view/14346)

<div class="topic-metadata">

**Author:** [@christeen](https://discourse.vtk.org/u/christeen)\
**Replies:** 11\
**Last updated:** [November 18, 2024, 10:00am UTC](https://discourse.vtk.org/t/panoramic-view-making-panoramic-view-and-getting-slices-from-the-panoramic-view/14346 "2024-11-18T10:00:33Z")

</div>

I’m a beginner in developing Qt/VTK applications using C++, and I don’t have much knowledge in VTK yet. I’m trying to set up a panoramic view by drawing a curve through the axial slices, selecting a reference slice from …

---

## [I solved a error that the exe couldn't find dll files!](https://discourse.vtk.org/t/i-solved-a-error-that-the-exe-couldnt-find-dll-files/14881)

<div class="topic-metadata">

**Author:** [@Etzka](https://discourse.vtk.org/u/Etzka)\
**Replies:** 1\
**Last updated:** [November 15, 2024, 1:32pm UTC](https://discourse.vtk.org/t/i-solved-a-error-that-the-exe-couldnt-find-dll-files/14881 "2024-11-15T13:32:03Z")

</div>

Just add the bin\\Release directory in VTK shared lib to system environment variable!

---

## [Constrained vtkDelaunay2D, failure with 3 holes \[use vtkContourTriangulator instead\]](https://discourse.vtk.org/t/constrained-vtkdelaunay2d-failure-with-3-holes-use-vtkcontourtriangulator-instead/14834)

<div class="topic-metadata">

**Author:** [@ugis](https://discourse.vtk.org/u/ugis)\
**Replies:** 7\
**Last updated:** [November 15, 2024, 1:20pm UTC](https://discourse.vtk.org/t/constrained-vtkdelaunay2d-failure-with-3-holes-use-vtkcontourtriangulator-instead/14834 "2024-11-15T13:20:31Z")

</div>

Dear developers, \[testing in Python 3.12.7 with VTK 9.3.1\] I am testing how to put surfaces with holes on screen in VTK. I am using constrained vtkDelaunay2D filter to generate the triangulations such that the surface …

---

## [Custom shader code in vtk](https://discourse.vtk.org/t/custom-shader-code-in-vtk/14766)

<div class="topic-metadata">

**Author:** [@Lincac](https://discourse.vtk.org/u/Lincac)\
**Replies:** 2\
**Last updated:** [November 13, 2024, 1:00am UTC](https://discourse.vtk.org/t/custom-shader-code-in-vtk/14766 "2024-11-13T01:00:31Z")

</div>

I used my own defined shader code in vtk and passed it into the “vtkOpenGLActor”. What I wanted to achieve was a semi transparent effect on the model, but the rendering result was unexpected. When the camera moved to cer…

---

## [How to obtain the transformation matrix of VTK?](https://discourse.vtk.org/t/how-to-obtain-the-transformation-matrix-of-vtk/14833)

<div class="topic-metadata">

**Author:** [@Lincac](https://discourse.vtk.org/u/Lincac)\
**Replies:** 4\
**Last updated:** [November 11, 2024, 1:09am UTC](https://discourse.vtk.org/t/how-to-obtain-the-transformation-matrix-of-vtk/14833 "2024-11-11T01:09:07Z")

</div>

The matrix I obtained through the following method shows that the variable “wcdc” is different from the variable “MCDCMatrix” in the shader vtkMatrix4x4\* wcdc; vtkMatrix4x4\* wcvc; vtkMatrix3x3\* norms; vtkMatrix4x4\* …

---

## [How to obtain the depth map of a scene in VTK?](https://discourse.vtk.org/t/how-to-obtain-the-depth-map-of-a-scene-in-vtk/14830)

<div class="topic-metadata">

**Author:** [@Lincac](https://discourse.vtk.org/u/Lincac)\
**Replies:** 1\
**Last updated:** [November 6, 2024, 7:06pm UTC](https://discourse.vtk.org/t/how-to-obtain-the-depth-map-of-a-scene-in-vtk/14830 "2024-11-06T19:06:26Z")

</div>

What I obtained using the following method is clearly incorrect auto windowToImageFilter = vtkSmartPointer\<vtkWindowToImageFilter\>::New(); windowToImageFilter-\>SetInputBufferTypeToZBuffer(); windowToImageFilter-\>SetI…

---

## [vtkResliceCursor is almost invisible.](https://discourse.vtk.org/t/vtkreslicecursor-is-almost-invisible/14821)

<div class="topic-metadata">

**Author:** [@SeanHan](https://discourse.vtk.org/u/SeanHan)\
**Replies:** 0\
**Last updated:** [November 4, 2024, 7:51am UTC](https://discourse.vtk.org/t/vtkreslicecursor-is-almost-invisible/14821 "2024-11-04T07:51:02Z")

</div>

Hi, I am trying to reconstruct a 3D MPR image with slice cursor by VTK9.3.1, however, the cursor is hardly to be seen. Can anyone tell me the reason? Thank you!

---

## [Unit testing python vtk protocol](https://discourse.vtk.org/t/unit-testing-python-vtk-protocol/14779)

<div class="topic-metadata">

**Author:** [@Julien\_Champagnol](https://discourse.vtk.org/u/Julien_Champagnol)\
**Replies:** 2\
**Last updated:** [November 1, 2024, 7:48pm UTC](https://discourse.vtk.org/t/unit-testing-python-vtk-protocol/14779 "2024-11-01T19:48:24Z")

</div>

Hi, I’m trying to unit test a protocol that returns a binary file. I’m returning the file with a addAttachment and so far it’s working great with the front end. But when I’m trying to unit test the python code all by …

---

## [Can I create a scalarbar if I\`ve used vtkUnsignedCharArray to color the polydata object?](https://discourse.vtk.org/t/can-i-create-a-scalarbar-if-i-ve-used-vtkunsignedchararray-to-color-the-polydata-object/14799)

<div class="topic-metadata">

**Author:** [@Rafael\_Scatena](https://discourse.vtk.org/u/Rafael_Scatena)\
**Replies:** 0\
**Last updated:** [November 1, 2024, 12:00am UTC](https://discourse.vtk.org/t/can-i-create-a-scalarbar-if-i-ve-used-vtkunsignedchararray-to-color-the-polydata-object/14799 "2024-11-01T00:00:21Z")

</div>

Hello, I was wondering if I still could use vtkscalarbaractor if I chose to color the dataset with vtkUnsignedCharArray. Thank you, Rafael S. vtkNew\<vtkPolyLine\> polyLine; polyLine-\>GetPointIds()-\>…

---

## [Speed up point and cell locators](https://discourse.vtk.org/t/speed-up-point-and-cell-locators/14791)

<div class="topic-metadata">

**Author:** [@Jens\_Munk\_Hansen](https://discourse.vtk.org/u/Jens_Munk_Hansen)\
**Replies:** 0\
**Last updated:** [October 30, 2024, 8:37pm UTC](https://discourse.vtk.org/t/speed-up-point-and-cell-locators/14791 "2024-10-30T20:37:23Z")

</div>

Hi Developers. I am in a situation where I update around 5% of the mesh very frequently. For this purpose, I generated faster cell and point locators. For the point locator, I modified the vtkIncrementalOctreeLocator to…

---

## [Sculpting tool](https://discourse.vtk.org/t/sculpting-tool/14777)

<div class="topic-metadata">

**Author:** [@Jens\_Munk\_Hansen](https://discourse.vtk.org/u/Jens_Munk_Hansen)\
**Replies:** 2\
**Last updated:** [October 29, 2024, 6:14am UTC](https://discourse.vtk.org/t/sculpting-tool/14777 "2024-10-29T06:14:43Z")

</div>

I am trying to develop sculpting tools. My current plan is the following. I’m looking for some constructive comments on my finding and proposal for a design. vtkCellLocator is to slow for updating on every interaction. …

---

## [FourPaneViewer example](https://discourse.vtk.org/t/fourpaneviewer-example/14730)

<div class="topic-metadata">

**Author:** [@zhuofalin](https://discourse.vtk.org/u/zhuofalin)\
**Replies:** 2\
**Last updated:** [October 26, 2024, 8:37am UTC](https://discourse.vtk.org/t/fourpaneviewer-example/14730 "2024-10-26T08:37:35Z")

</div>

Following the logic of vtk/example/QT/GUI/FourPaneViewer, who can help or provide me with a VTK without QT support? :grinning:

---

## [Mesh Quality Degradation with vtkClipPolyData in Recent VTK Versions: PyVista & ParaView Behavior](https://discourse.vtk.org/t/mesh-quality-degradation-with-vtkclippolydata-in-recent-vtk-versions-pyvista-paraview-behavior/14762)

<div class="topic-metadata">

**Author:** [@gnikit](https://discourse.vtk.org/u/gnikit)\
**Replies:** 11\
**Last updated:** [October 25, 2024, 5:58pm UTC](https://discourse.vtk.org/t/mesh-quality-degradation-with-vtkclippolydata-in-recent-vtk-versions-pyvista-paraview-behavior/14762 "2024-10-25T17:58:00Z")

</div>

I recently noticed a deterioration in the mesh quality of the filter vtkClipPolyData. I was able to reproduce the exact same poor quality clip with PyVista and ParaView (clip\_scalar in PyVista and Clip\>Clip Type=Scalar i…

---

## [vtkDistancePolyDataFilter (dynamic)](https://discourse.vtk.org/t/vtkdistancepolydatafilter-dynamic/14760)

<div class="topic-metadata">

**Author:** [@Jens\_Munk\_Hansen](https://discourse.vtk.org/u/Jens_Munk_Hansen)\
**Replies:** 2\
**Last updated:** [October 23, 2024, 9:43pm UTC](https://discourse.vtk.org/t/vtkdistancepolydatafilter-dynamic/14760 "2024-10-23T21:43:57Z")

</div>

Would it make sense to add to transforms to the filter to allow dynamic updates? I did it this way vtkMTimeType spsDistancePolyDataFilter::GetMTime() { vtkMTimeType mTime = this-\>Superclass::GetMTime(); vtkMTimeTyp…

---

## [Bug in vtkCamera::setUserViewTransform with an inverse vtkTransform](https://discourse.vtk.org/t/bug-in-vtkcamera-setuserviewtransform-with-an-inverse-vtktransform/14738)

<div class="topic-metadata">

**Author:** [@manik](https://discourse.vtk.org/u/manik)\
**Replies:** 6\
**Last updated:** [October 22, 2024, 1:42pm UTC](https://discourse.vtk.org/t/bug-in-vtkcamera-setuserviewtransform-with-an-inverse-vtktransform/14738 "2024-10-22T13:42:13Z")

</div>

Hi, I think I found a bug somewhere between vtkCamera and vtkAbstractTransform/vtkTransform that leads to a deadlock due to a mutex being locked twice. I made a minimal example: just use the vtkCamera example and add t…

---

## [getRange/fastComputeRange performance and rendering speed](https://discourse.vtk.org/t/getrange-fastcomputerange-performance-and-rendering-speed/14745)

<div class="topic-metadata">

**Author:** [@James\_Manners](https://discourse.vtk.org/u/James_Manners)\
**Replies:** 0\
**Last updated:** [October 21, 2024, 5:32am UTC](https://discourse.vtk.org/t/getrange-fastcomputerange-performance-and-rendering-speed/14745 "2024-10-21T05:32:31Z")

</div>

Hi, I have been analysing render performance of CornerstoneJS (which uses vtk.js) with ultrasound cine instances. These instances render many images as a video. You can view an example here OHIF Viewer On low-\>mid pe…

---

## [Is there a partial update feature in vtk？](https://discourse.vtk.org/t/is-there-a-partial-update-feature-in-vtk/14737)

<div class="topic-metadata">

**Author:** [@llibetter](https://discourse.vtk.org/u/llibetter)\
**Replies:** 1\
**Last updated:** [October 18, 2024, 1:50pm UTC](https://discourse.vtk.org/t/is-there-a-partial-update-feature-in-vtk/14737 "2024-10-18T13:50:36Z")

</div>

There is a polydata, about 5 million triangles, each rendering will modify a small number of triangles, about thousands, is there a similar function of partial rendering, so that its fps is higher, thank you！

---

## [Qml integration issue : Cannot assign object to list property "data"](https://discourse.vtk.org/t/qml-integration-issue-cannot-assign-object-to-list-property-data/14634)

<div class="topic-metadata">

**Author:** [@krenouj](https://discourse.vtk.org/u/krenouj)\
**Replies:** 1\
**Last updated:** [October 14, 2024, 8:59pm UTC](https://discourse.vtk.org/t/qml-integration-issue-cannot-assign-object-to-list-property-data/14634 "2024-10-14T20:59:54Z")

</div>

I don’t have any problems on linux, but on windows, when I instantiate a simple QQuickVTKItem item, I get the error: QQmlApplicationEngine failed to load component qrc:/qt/qml/minVtkQml/Main.qml:10:5: Cannot assign obj…

---

## [Axial View Direction is Flipped ! , how to fixed it](https://discourse.vtk.org/t/axial-view-direction-is-flipped-how-to-fixed-it/14702)

<div class="topic-metadata">

**Author:** [@Hanzhang\_DAI](https://discourse.vtk.org/u/Hanzhang_DAI)\
**Replies:** 0\
**Last updated:** [October 12, 2024, 5:13am UTC](https://discourse.vtk.org/t/axial-view-direction-is-flipped-how-to-fixed-it/14702 "2024-10-12T05:13:26Z")

</div>

vtkSmartPointer\<vtkDICOMReader\> DICOMreader = vtkSmartPointer\<vtkDICOMReader\>::New(); DICOMreader-\>SetDataByteOrderToLittleEndian(); DICOMreader-\>SetMemoryRowOrderToTopDown(); DICOMreader-\>SortingOn(); …

---

## [How to get a name of the previous filter in the pipeline?](https://discourse.vtk.org/t/how-to-get-a-name-of-the-previous-filter-in-the-pipeline/14659)

<div class="topic-metadata">

**Author:** [@Northern\_Condor1](https://discourse.vtk.org/u/Northern_Condor1)\
**Replies:** 2\
**Last updated:** [October 11, 2024, 8:12am UTC](https://discourse.vtk.org/t/how-to-get-a-name-of-the-previous-filter-in-the-pipeline/14659 "2024-10-11T08:12:14Z")

</div>

Hello! I have the file that is being read and then is processed by several filters. However, I want to use the original file name in one of the consequent filters to dump some data to relevant file for debug purposes. H…

---

## [How to Save Lossless Quality Videos Using VTK? \[bgr24 rawvideo cannot be written to avi, output file will be unreadable\]](https://discourse.vtk.org/t/how-to-save-lossless-quality-videos-using-vtk-bgr24-rawvideo-cannot-be-written-to-avi-output-file-will-be-unreadable/14690)

<div class="topic-metadata">

**Author:** [@Hai\_Hai](https://discourse.vtk.org/u/Hai_Hai)\
**Replies:** 0\
**Last updated:** [October 10, 2024, 6:34am UTC](https://discourse.vtk.org/t/how-to-save-lossless-quality-videos-using-vtk-bgr24-rawvideo-cannot-be-written-to-avi-output-file-will-be-unreadable/14690 "2024-10-10T06:34:18Z")

</div>

I’ve been working on a project using VTK, where I need to capture animations from the render window and save them as high-quality, lossless video files. However, I’ve encountered several issues along the way and despite …

---

## [Vtk 9.3.1 OpenGL rendering issue with Qt 6.5.6 | VS 2019](https://discourse.vtk.org/t/vtk-9-3-1-opengl-rendering-issue-with-qt-6-5-6-vs-2019/14626)

<div class="topic-metadata">

**Author:** [@ataban](https://discourse.vtk.org/u/ataban)\
**Replies:** 11\
**Last updated:** [October 8, 2024, 3:46am UTC](https://discourse.vtk.org/t/vtk-9-3-1-opengl-rendering-issue-with-qt-6-5-6-vs-2019/14626 "2024-10-08T03:46:04Z")

</div>

I am presently porting my application from qt5 to qt 6 which uses vtk 9.3.1. Facing issue during loading of dicom images into qt window. White screen appears with blank display of image but having no issues in vs 2019. …

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

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