# Development

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

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

**Page:** 13

---

## [Bug when trying to normalize vtkQuaterniond](https://discourse.vtk.org/t/bug-when-trying-to-normalize-vtkquaterniond/13948)

<div class="topic-metadata">

**Author:** [@JeffreyWardman](https://discourse.vtk.org/u/JeffreyWardman)\
**Replies:** 1\
**Last updated:** [May 29, 2024, 6:28am UTC](https://discourse.vtk.org/t/bug-when-trying-to-normalize-vtkquaterniond/13948 "2024-05-29T06:28:28Z")

</div>

Cannot seem to be ableto normalize a quaterniond: std::pair\<double, std::array\<double, 3\>\> QuaternionToAngleAxis(const vtkSmartPointer\<vtkQuaterniond\>& quaternion) { vtkQuaterniond normalizedQuaternion = quatern…

---

## [vtk pybinding problem](https://discourse.vtk.org/t/vtk-pybinding-problem/13943)

<div class="topic-metadata">

**Author:** [@dsa934](https://discourse.vtk.org/u/dsa934)\
**Replies:** 2\
**Last updated:** [May 28, 2024, 5:01pm UTC](https://discourse.vtk.org/t/vtk-pybinding-problem/13943 "2024-05-28T17:01:28Z")

</div>

Hi, VTK users I would like to ask a question because a problem occurred during the process of pybinding VTK. Problem: Building pybind.cxx on the C++ side was successful. However, if you call the vtk function with pybin…

---

## [Deeper understanding of VTK exporter’s SetStartWriteArgDelete](https://discourse.vtk.org/t/deeper-understanding-of-vtk-exporter-s-setstartwriteargdelete/13936)

<div class="topic-metadata">

**Author:** [@Nicholas\_Yue](https://discourse.vtk.org/u/Nicholas_Yue)\
**Replies:** 1\
**Last updated:** [May 27, 2024, 8:03am UTC](https://discourse.vtk.org/t/deeper-understanding-of-vtk-exporter-s-setstartwriteargdelete/13936 "2024-05-27T08:03:39Z")

</div>

I am considering writing a custom exporter and was hoping to better understand the method SetStartWriteArgDelete() Where can I find more design rationale information about the method? Cheers

---

## [I 'm trying to synthesis a panormaic image of CBCT from CBCT volume using vtk.](https://discourse.vtk.org/t/i-m-trying-to-synthesis-a-panormaic-image-of-cbct-from-cbct-volume-using-vtk/13908)

<div class="topic-metadata">

**Author:** [@Kiran\_shaji](https://discourse.vtk.org/u/Kiran_shaji)\
**Replies:** 0\
**Last updated:** [May 20, 2024, 5:37am UTC](https://discourse.vtk.org/t/i-m-trying-to-synthesis-a-panormaic-image-of-cbct-from-cbct-volume-using-vtk/13908 "2024-05-20T05:37:32Z")

</div>

Hi, I’m trying to synthesize a panoramic image of CBCT from a 3D volume. I have used vtkContourWidget for selecting the dental arch curve. Now I want to convert all slices that contain the dental arch to a panoramic ima…

---

## [Best way to get a silhouette of a mesh?](https://discourse.vtk.org/t/best-way-to-get-a-silhouette-of-a-mesh/13897)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.vtk.org/u/dzenanz)\
**Replies:** 11\
**Last updated:** [May 18, 2024, 5:10pm UTC](https://discourse.vtk.org/t/best-way-to-get-a-silhouette-of-a-mesh/13897 "2024-05-18T17:10:23Z")

</div>

Given a mesh in the top left, I would like a silhouette on the top right. I know I can use vtkCutter to get an outline created by intersection with a plane (bottom right). I tried vtkPolyDataSilhouette (bottom left), …

---

## [vtkDICOMReader and vtkDICOMImageReader is Different](https://discourse.vtk.org/t/vtkdicomreader-and-vtkdicomimagereader-is-different/13557)

<div class="topic-metadata">

**Author:** [@A.M\_Shahpouri](https://discourse.vtk.org/u/A.M_Shahpouri)\
**Replies:** 2\
**Last updated:** [May 18, 2024, 11:57am UTC](https://discourse.vtk.org/t/vtkdicomreader-and-vtkdicomimagereader-is-different/13557 "2024-05-18T11:57:09Z")

</div>

Hi Why the vtkImageData which is on GetOutPut() function of vtkDICOMReader and vtkDICOMImageReader is Different ? When i Read DicomSeri with vtkDICOMImageReader and i get imageData from that it is correct but when i re…

---

## [visualize three-dimensional medical images](https://discourse.vtk.org/t/visualize-three-dimensional-medical-images/13888)

<div class="topic-metadata">

**Author:** [@wwssllhdg](https://discourse.vtk.org/u/wwssllhdg)\
**Replies:** 0\
**Last updated:** [May 15, 2024, 3:16pm UTC](https://discourse.vtk.org/t/visualize-three-dimensional-medical-images/13888 "2024-05-15T15:16:07Z")

</div>

Hello everyone, I am using VTK to visualize three-dimensional medical images reconstructed from a series of CT slice images. I have attempted both volume rendering and surface rendering, but the results are not satisfac…

---

## [Duplicate TIFF symbols when building VTK 8.2.0 with Clang 19](https://discourse.vtk.org/t/duplicate-tiff-symbols-when-building-vtk-8-2-0-with-clang-19/13862)

<div class="topic-metadata">

**Author:** [@spenshel](https://discourse.vtk.org/u/spenshel)\
**Replies:** 1\
**Last updated:** [May 9, 2024, 7:42pm UTC](https://discourse.vtk.org/t/duplicate-tiff-symbols-when-building-vtk-8-2-0-with-clang-19/13862 "2024-05-09T19:42:44Z")

</div>

Perhaps the version of Clang I’m using is too new (19.0.0, the latest from the LLVM repository), but when I try to build the VTK 8.2.0 code I get a variety of duplicate symbol error messages, e.g., “vtktiff\_\_TIFFerrorHan…

---

## [Creating a VTP PolyData output file with color assignments](https://discourse.vtk.org/t/creating-a-vtp-polydata-output-file-with-color-assignments/13851)

<div class="topic-metadata">

**Author:** [@spenshel](https://discourse.vtk.org/u/spenshel)\
**Replies:** 4\
**Last updated:** [May 7, 2024, 1:54pm UTC](https://discourse.vtk.org/t/creating-a-vtp-polydata-output-file-with-color-assignments/13851 "2024-05-07T13:54:54Z")

</div>

I’m trying to create a VTP PolyData output file with cell data scalars that represent RGB color values. Is there a way to do this without having to create a color mapper, which I apparently can’t do without an actor obje…

---

## [How to render a live video inside a vtkWindow?](https://discourse.vtk.org/t/how-to-render-a-live-video-inside-a-vtkwindow/4653)

<div class="topic-metadata">

**Author:** [@learn\_forever](https://discourse.vtk.org/u/learn_forever)\
**Replies:** 3\
**Last updated:** [May 6, 2024, 8:45pm UTC](https://discourse.vtk.org/t/how-to-render-a-live-video-inside-a-vtkwindow/4653 "2024-05-06T20:45:50Z")

</div>

Hi, Are there any ways to render a live video inside a vtkWindow? Probably this can be done with vtkVideoSource/vtkWin32VideoSource? But how to setup the pipeline? Can someone share some examples for the two classes? …

---

## [Fix VTK forcibly aborting application instead of throwing error](https://discourse.vtk.org/t/fix-vtk-forcibly-aborting-application-instead-of-throwing-error/13849)

<div class="topic-metadata">

**Author:** [@2xB](https://discourse.vtk.org/u/2xB)\
**Replies:** 4\
**Last updated:** [May 6, 2024, 4:56pm UTC](https://discourse.vtk.org/t/fix-vtk-forcibly-aborting-application-instead-of-throwing-error/13849 "2024-05-06T16:56:49Z")

</div>

VTK currently forcibly aborts an application if no screen is available. Having a library like VTK call std::abort is significantly worse than having it throw errors since for std::abort, it is not possible to catch the e…

---

## [reading a .vtk data using vtk.js (locally)](https://discourse.vtk.org/t/reading-a-vtk-data-using-vtk-js-locally/13837)

<div class="topic-metadata">

**Author:** [@Mohammed\_AboArab](https://discourse.vtk.org/u/Mohammed_AboArab)\
**Replies:** 2\
**Last updated:** [May 6, 2024, 12:03am UTC](https://discourse.vtk.org/t/reading-a-vtk-data-using-vtk-js-locally/13837 "2024-05-06T00:03:39Z")

</div>

Hello, I am trying to read .vtk data using vtk.js, and this data is uploaded by the user locally (this data is a 3D model), and I get the error as shown in the attached photo. else if (isVTK) { console.log("Attem…

---

## [VTKHDF proposal: Support splitting datasets in multiple files](https://discourse.vtk.org/t/vtkhdf-proposal-support-splitting-datasets-in-multiple-files/13797)

<div class="topic-metadata">

**Author:** [@Louis\_Gombert](https://discourse.vtk.org/u/Louis_Gombert)\
**Replies:** 14\
**Last updated:** [May 3, 2024, 1:46pm UTC](https://discourse.vtk.org/t/vtkhdf-proposal-support-splitting-datasets-in-multiple-files/13797 "2024-05-03T13:46:51Z")

</div>

Motivations As defined in the VTKHDF format definition, partitions of a given partitioned dataset all store their data in a common HDF5 Dataset (H5D). Then, the reader uses offsets to know where to read the data for a gi…

---

## [Selection of Initial Values in Geometric Element Interpolation Using Newtonian Iterative Method](https://discourse.vtk.org/t/selection-of-initial-values-in-geometric-element-interpolation-using-newtonian-iterative-method/13614)

<div class="topic-metadata">

**Author:** [@YMF](https://discourse.vtk.org/u/YMF)\
**Replies:** 1\
**Last updated:** [May 2, 2024, 7:16am UTC](https://discourse.vtk.org/t/selection-of-initial-values-in-geometric-element-interpolation-using-newtonian-iterative-method/13614 "2024-05-02T07:16:00Z")

</div>

I have been studying the VTK geometric element interpolation algorithm and noticed that the initial values of r, s, and t are set to 0.5 for the program to be solved using Newton’s iteration. The choice of initial values…

---

## [An error occurred during the use of vtk9.3.0. Can anyone help me](https://discourse.vtk.org/t/an-error-occurred-during-the-use-of-vtk9-3-0-can-anyone-help-me/13818)

<div class="topic-metadata">

**Author:** [@shiye](https://discourse.vtk.org/u/shiye)\
**Replies:** 0\
**Last updated:** [April 30, 2024, 9:37am UTC](https://discourse.vtk.org/t/an-error-occurred-during-the-use-of-vtk9-3-0-can-anyone-help-me/13818 "2024-04-30T09:37:07Z")

</div>

2024-04-30 16:31:08.120 ( 4.812s) \[ 7F7D454C7700\] vtkOpenGLState.cxx:57 WARN| Error in cache state for GL\_DEPTH\_WRITEMASK 2024-04-30 16:31:08.120 ( 4.812s) \[ 7F7D454C7700\] vtkOpenGLState.cxx:79 W…

---

## [Vtk, Qt and long VTK operations](https://discourse.vtk.org/t/vtk-qt-and-long-vtk-operations/13392)

<div class="topic-metadata">

**Author:** [@Michael\_Jackson](https://discourse.vtk.org/u/Michael_Jackson)\
**Replies:** 2\
**Last updated:** [April 27, 2024, 10:45pm UTC](https://discourse.vtk.org/t/vtk-qt-and-long-vtk-operations/13392 "2024-04-27T22:45:30Z")

</div>

We are currently writing a Qt6 based application that uses VTK as the back end 3D rendering. As our data sets get larger and larger the VTK operations are getting longer and longer. This leads to the main UI thread being…

---

## [Syntax issues caused by vtk upgrade](https://discourse.vtk.org/t/syntax-issues-caused-by-vtk-upgrade/13344)

<div class="topic-metadata">

**Author:** [@yezichaozhou521](https://discourse.vtk.org/u/yezichaozhou521)\
**Replies:** 1\
**Last updated:** [April 27, 2024, 8:54pm UTC](https://discourse.vtk.org/t/syntax-issues-caused-by-vtk-upgrade/13344 "2024-04-27T20:54:55Z")

</div>

hello,please help me to resolve the problem , for example : vtkResliceCursorLineRepresentation\* axial\_representation = vtkResliceCursorLineRepresentation::SafeDownCast(this-\>reslice\_image\_viewer\_-\>GetResliceCursorWidg…

---

## [Improve FieldData in vtkHDF temporal format](https://discourse.vtk.org/t/improve-fielddata-in-vtkhdf-temporal-format/13669)

<div class="topic-metadata">

**Author:** [@Timothee\_Couble](https://discourse.vtk.org/u/Timothee_Couble)\
**Replies:** 3\
**Last updated:** [April 26, 2024, 1:06pm UTC](https://discourse.vtk.org/t/improve-fielddata-in-vtkhdf-temporal-format/13669 "2024-04-26T13:06:27Z")

</div>

Hello, Currently, the temporal (transient) vtkHDF file does not fully support field data with multiple components and tuples. Only the first tuple with all its components is read. The main issue is that the number of c…

---

## [vtkDistanceRepresentation handle positions not updated during Pan/Zoom etc.](https://discourse.vtk.org/t/vtkdistancerepresentation-handle-positions-not-updated-during-pan-zoom-etc/13788)

<div class="topic-metadata">

**Author:** [@tchen87](https://discourse.vtk.org/u/tchen87)\
**Replies:** 0\
**Last updated:** [April 25, 2024, 12:15am UTC](https://discourse.vtk.org/t/vtkdistancerepresentation-handle-positions-not-updated-during-pan-zoom-etc/13788 "2024-04-25T00:15:52Z")

</div>

I have been able to reproduce this issue in the FourPaneViewer example (https://gitlab.kitware.com/vtk/vtk/-/tree/v9.3.0/Examples/GUI/Qt/FourPaneViewer) If you have a distance widget added to a scene and have interacted…

---

## [How to know if specific point in world coordinates is visible within current render?](https://discourse.vtk.org/t/how-to-know-if-specific-point-in-world-coordinates-is-visible-within-current-render/13766)

<div class="topic-metadata">

**Author:** [@vinzileo](https://discourse.vtk.org/u/vinzileo)\
**Replies:** 2\
**Last updated:** [April 23, 2024, 7:26am UTC](https://discourse.vtk.org/t/how-to-know-if-specific-point-in-world-coordinates-is-visible-within-current-render/13766 "2024-04-23T07:26:32Z")

</div>

Hi all, How to know if specific point in world coordinates is visible within current render? I know vtkSelectVisiblePoints could handle that using z-buffer, however I cannot find source code of that part, and any examp…

---

## [Axis constraint on vtkFinitePlaneWidget](https://discourse.vtk.org/t/axis-constraint-on-vtkfiniteplanewidget/13759)

<div class="topic-metadata">

**Author:** [@Jens\_Munk\_Hansen](https://discourse.vtk.org/u/Jens_Munk_Hansen)\
**Replies:** 0\
**Last updated:** [April 20, 2024, 4:22pm UTC](https://discourse.vtk.org/t/axis-constraint-on-vtkfiniteplanewidget/13759 "2024-04-20T16:22:15Z")

</div>

Hi Developers The vtkFinitePlaneWidget works great, but I do miss a small feature that can be easily added. Currently the plane can be pushed along the axis and the two points can be moved freely to create a Parallelog…

---

## [Implementing Interactive 3D Visualization with DICOM Series, Volume Rendering, and STL Model Integration using VTK and Qt](https://discourse.vtk.org/t/implementing-interactive-3d-visualization-with-dicom-series-volume-rendering-and-stl-model-integration-using-vtk-and-qt/13693)

<div class="topic-metadata">

**Author:** [@mdeepakcdac](https://discourse.vtk.org/u/mdeepakcdac)\
**Replies:** 6\
**Last updated:** [April 19, 2024, 9:09pm UTC](https://discourse.vtk.org/t/implementing-interactive-3d-visualization-with-dicom-series-volume-rendering-and-stl-model-integration-using-vtk-and-qt/13693 "2024-04-19T21:09:54Z")

</div>

I’m currently working on a medical imaging project where I need to implement interactive 3D visualization using DICOM series, volume rendering, and integrate an STL model representing a screw into the scene. Additionally…

---

## [VTK WASM](https://discourse.vtk.org/t/vtk-wasm/11650)

<div class="topic-metadata">

**Author:** [@mazurkin.daniel](https://discourse.vtk.org/u/mazurkin.daniel)\
**Replies:** 6\
**Last updated:** [April 16, 2024, 8:50pm UTC](https://discourse.vtk.org/t/vtk-wasm/11650 "2024-04-16T20:50:34Z")

</div>

Hello, I am assembling tools from 3D Slicer for use in the browser. After assembling the tools, it complains about shaders. Could you please advise me on how to modify shader code if I start my project using the command …

---

## [UI widget generation (automation) for VTK](https://discourse.vtk.org/t/ui-widget-generation-automation-for-vtk/13674)

<div class="topic-metadata">

**Author:** [@Nicholas\_Yue](https://discourse.vtk.org/u/Nicholas_Yue)\
**Replies:** 5\
**Last updated:** [April 15, 2024, 11:51am UTC](https://discourse.vtk.org/t/ui-widget-generation-automation-for-vtk/13674 "2024-04-15T11:51:52Z")

</div>

I am interested to write a new UI (using QT) for VTK I will probably start prototyping via Python to evaluate it’s longer feasibility and maintainability. Instead of hand writing individual UI node for each correspondi…

---

## [Algorithm to convert VTKPolyData to X-ray image like DRR](https://discourse.vtk.org/t/algorithm-to-convert-vtkpolydata-to-x-ray-image-like-drr/13694)

<div class="topic-metadata">

**Author:** [@gongwaner](https://discourse.vtk.org/u/gongwaner)\
**Replies:** 0\
**Last updated:** [April 11, 2024, 9:14am UTC](https://discourse.vtk.org/t/algorithm-to-convert-vtkpolydata-to-x-ray-image-like-drr/13694 "2024-04-11T09:14:19Z")

</div>

Hi, There have been some discussions here and here about converting VTKImageData to 2d x-ray image using DRR. The implementation of the algorithm can be found in ITK example, making it quite convenient to port to VTK. …

---

## [Road Map forward past OpenGL](https://discourse.vtk.org/t/road-map-forward-past-opengl/13667)

<div class="topic-metadata">

**Author:** [@Michael\_Jackson](https://discourse.vtk.org/u/Michael_Jackson)\
**Replies:** 5\
**Last updated:** [April 8, 2024, 2:16pm UTC](https://discourse.vtk.org/t/road-map-forward-past-opengl/13667 "2024-04-08T14:16:04Z")

</div>

Currently we use VTK for a Qt6 based cross platform visualization application. As we all know OpenGL on MacOS is deprecated and stuck at version 4.1. At some point in the future, this version will not be good enough for …

---

## [Vtk 9.3.0 Compile Errors with Visual Studio 2022 (Debug)](https://discourse.vtk.org/t/vtk-9-3-0-compile-errors-with-visual-studio-2022-debug/12816)

<div class="topic-metadata">

**Author:** [@Michael\_Jackson](https://discourse.vtk.org/u/Michael_Jackson)\
**Replies:** 10\
**Last updated:** [April 4, 2024, 6:58am UTC](https://discourse.vtk.org/t/vtk-9-3-0-compile-errors-with-visual-studio-2022-debug/12816 "2024-04-04T06:58:34Z")

</div>

I am trying to compile VTK 9.3.0 using VS 2022 (64 bit binaries) and I get the following errors: FAILED: bin/Debug/vtkFiltersReduction-9.3d.dll lib/Debug/vtkFiltersReduction-9.3d.lib cmd.exe /C "cd . && E:\\AzureDevOps\\c…

---

## [vtkImageMask adds strange border](https://discourse.vtk.org/t/vtkimagemask-adds-strange-border/13668)

<div class="topic-metadata">

**Author:** [@Gilthalas](https://discourse.vtk.org/u/Gilthalas)\
**Replies:** 0\
**Last updated:** [April 3, 2024, 6:50pm UTC](https://discourse.vtk.org/t/vtkimagemask-adds-strange-border/13668 "2024-04-03T18:50:23Z")

</div>

Hi - it looks to me like vtkImageMask adds some sort of artificial border to the masked image. The image below shows the original image on the left, with the masked image on the right (notice the masked out black pixels…

---

## [vtk.vtkTransform.GetOrientation giving wrong results for large scale differences](https://discourse.vtk.org/t/vtk-vtktransform-getorientation-giving-wrong-results-for-large-scale-differences/10224)

<div class="topic-metadata">

**Author:** [@rdbrn](https://discourse.vtk.org/u/rdbrn)\
**Replies:** 19\
**Last updated:** [April 2, 2024, 8:17pm UTC](https://discourse.vtk.org/t/vtk-vtktransform-getorientation-giving-wrong-results-for-large-scale-differences/10224 "2024-04-02T20:17:22Z")

</div>

vtk.vtkTransform.GetOrientation produces the incorrect orientation if the difference in scales is more than 100. Running on Elements: 40 0 0 0 0 0 -10 0 0 0.04 0 0 0 0 0 1 gives the correct: \[90.0, -0.0, 0.0\] Bu…

---

## [Q6.7.0 and VTK 9.3.0 Windows Visual Studio 2022 link errors](https://discourse.vtk.org/t/q6-7-0-and-vtk-9-3-0-windows-visual-studio-2022-link-errors/13656)

<div class="topic-metadata">

**Author:** [@DominionSoftware](https://discourse.vtk.org/u/DominionSoftware)\
**Replies:** 1\
**Last updated:** [April 1, 2024, 7:19pm UTC](https://discourse.vtk.org/t/q6-7-0-and-vtk-9-3-0-windows-visual-studio-2022-link-errors/13656 "2024-04-01T19:19:50Z")

</div>

I’m getting Link errors for almost everything related to Qt, even though Qt seemed to build fine (from git open source, branch 6.7.0…) I have Qt set to 6 and Qt stuff enabled in the CMake Gui, and it finds all the modul…

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

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