# Development

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

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

**Page:** 7

---

## [the .obj model file is offset far from the world origin,However, it is still possible to achieve position-based interaction between the image and the model](https://discourse.vtk.org/t/the-obj-model-file-is-offset-far-from-the-world-origin-however-it-is-still-possible-to-achieve-position-based-interaction-between-the-image-and-the-model/15473)

<div class="topic-metadata">

**Author:** [@jiajiadelequ](https://discourse.vtk.org/u/jiajiadelequ)\
**Replies:** 2\
**Last updated:** [April 3, 2025, 6:10pm UTC](https://discourse.vtk.org/t/the-obj-model-file-is-offset-far-from-the-world-origin-however-it-is-still-possible-to-achieve-position-based-interaction-between-the-image-and-the-model/15473 "2025-04-03T18:10:59Z")

</div>

I have a set of matching .nii image files and .obj model files. After importing them into 3D Slicer, I found that the .obj model file is offset far from the world origin, basically out of the image’s range in the worl…

---

## [QVTKRenderWindowInteractor: switch right and middle button clicks](https://discourse.vtk.org/t/qvtkrenderwindowinteractor-switch-right-and-middle-button-clicks/15440)

<div class="topic-metadata">

**Author:** [@sapvi](https://discourse.vtk.org/u/sapvi)\
**Replies:** 1\
**Last updated:** [April 3, 2025, 2:25pm UTC](https://discourse.vtk.org/t/qvtkrenderwindowinteractor-switch-right-and-middle-button-clicks/15440 "2025-04-03T14:25:02Z")

</div>

I am using QVTKRenderWindowInteractor inside a PySide6 application. I would like to change the events of the right and middle (wheel) buttons to match the interactions of some other apps we are using. To be honest, I am…

---

## [Use vtkBoxWidget to clip point cloud data](https://discourse.vtk.org/t/use-vtkboxwidget-to-clip-point-cloud-data/15445)

<div class="topic-metadata">

**Author:** [@sapvi](https://discourse.vtk.org/u/sapvi)\
**Replies:** 3\
**Last updated:** [April 3, 2025, 2:20pm UTC](https://discourse.vtk.org/t/use-vtkboxwidget-to-clip-point-cloud-data/15445 "2025-04-03T14:20:16Z")

</div>

Hi all, seems I am generating quite high amount of questions lately, but this is one more I couldn’t get past in several hours of trying to go through docs. I managed to make a simpler MRE from it: import vtk import ran…

---

## [Cannot change size of vtkAxesActor without moving them](https://discourse.vtk.org/t/cannot-change-size-of-vtkaxesactor-without-moving-them/15431)

<div class="topic-metadata">

**Author:** [@sapvi](https://discourse.vtk.org/u/sapvi)\
**Replies:** 2\
**Last updated:** [March 29, 2025, 6:52pm UTC](https://discourse.vtk.org/t/cannot-change-size-of-vtkaxesactor-without-moving-them/15431 "2025-03-29T18:52:44Z")

</div>

def \_add\_axes\_widget(self): axes = vtk.vtkAxesActor() axes.SetTotalLength(50, 50, 50) self.axes\_widget = vtk.vtkOrientationMarkerWidget() self.axes\_widget.SetOrientationMarker(axes) …

---

## [Handling data on cell corners](https://discourse.vtk.org/t/handling-data-on-cell-corners/15437)

<div class="topic-metadata">

**Author:** [@pgallo](https://discourse.vtk.org/u/pgallo)\
**Replies:** 0\
**Last updated:** [March 28, 2025, 9:02am UTC](https://discourse.vtk.org/t/handling-data-on-cell-corners/15437 "2025-03-28T09:02:44Z")

</div>

Hi all, let me briefly introduce the context for my question. We are using VTK as the geometry / post-processing engine for our application: our data is represented by a vtkUnstructuredGrid made of 2D/3D cells (both li…

---

## [Error occur when placing two QVTKRenderWindowInteractor with vtkContextView in a single window](https://discourse.vtk.org/t/error-occur-when-placing-two-qvtkrenderwindowinteractor-with-vtkcontextview-in-a-single-window/12369)

<div class="topic-metadata">

**Author:** [@MG.Hu](https://discourse.vtk.org/u/MG.Hu)\
**Replies:** 5\
**Last updated:** [March 25, 2025, 2:07pm UTC](https://discourse.vtk.org/t/error-occur-when-placing-two-qvtkrenderwindowinteractor-with-vtkcontextview-in-a-single-window/12369 "2025-03-25T14:07:04Z")

</div>

When I add two separate interactive vtkChartXY into a single window with PyQt5 and VTK. The window appears and works correctly. However, when it is closed there are several errors. vtkWin32OpenGLRenderWin:758 ERR| vtkWi…

---

## [QVTKRenderWindowInteractor and QWebEngineView conflict](https://discourse.vtk.org/t/qvtkrenderwindowinteractor-and-qwebengineview-conflict/15408)

<div class="topic-metadata">

**Author:** [@sapvi](https://discourse.vtk.org/u/sapvi)\
**Replies:** 4\
**Last updated:** [March 24, 2025, 9:48am UTC](https://discourse.vtk.org/t/qvtkrenderwindowinteractor-and-qwebengineview-conflict/15408 "2025-03-24T09:48:44Z")

</div>

I want to use QVTKRenderWindowInteractor for displaying some 3D data and, in the same app but in tab viewer, I want to have QWebEngineView to render interactive bokeh plots, i.e. each visualization has its own tab. It s…

---

## [Incorrect display of actors](https://discourse.vtk.org/t/incorrect-display-of-actors/15416)

<div class="topic-metadata">

**Author:** [@evgen55](https://discourse.vtk.org/u/evgen55)\
**Replies:** 14\
**Last updated:** [March 21, 2025, 9:01pm UTC](https://discourse.vtk.org/t/incorrect-display-of-actors/15416 "2025-03-21T21:01:25Z")

</div>

When rendering two almost identical stl files, artifacts appear. Is it possible to remove them somehow? If you change the transparency to 0.99 for example, the picture will become better vtkSmartPointer\<vtkRend…

---

## [Converting VTK PolyData to VTK ImageData with vtkResampleToImage and Rendering ImageData](https://discourse.vtk.org/t/converting-vtk-polydata-to-vtk-imagedata-with-vtkresampletoimage-and-rendering-imagedata/15388)

<div class="topic-metadata">

**Author:** [@Rafael\_Scatena](https://discourse.vtk.org/u/Rafael_Scatena)\
**Replies:** 0\
**Last updated:** [March 13, 2025, 7:24pm UTC](https://discourse.vtk.org/t/converting-vtk-polydata-to-vtk-imagedata-with-vtkresampletoimage-and-rendering-imagedata/15388 "2025-03-13T19:24:44Z")

</div>

Hi everyone, I’m working on converting a vtkPolyData object into vtkImageData using vtkResampleToImage. My vtkPolyData consists of multiple nested mesh surfaces, each with distinct cell/point scalar values to differenti…

---

## [vtkPythonAlgorithm - design objective ?](https://discourse.vtk.org/t/vtkpythonalgorithm-design-objective/15371)

<div class="topic-metadata">

**Author:** [@Nicholas\_Yue](https://discourse.vtk.org/u/Nicholas_Yue)\
**Replies:** 1\
**Last updated:** [March 12, 2025, 10:01pm UTC](https://discourse.vtk.org/t/vtkpythonalgorithm-design-objective/15371 "2025-03-12T22:01:08Z")

</div>

Hi, I am looking at vtkPythonAlgorithm C++ class. What was the design goal of vtkPythonAlgorithm ? What are the current classes that subclass from it and what are their use cases ? Kind regards

---

## [How to use the UseImageActor properties of the vtkResliceCursorRepresentation object](https://discourse.vtk.org/t/how-to-use-the-useimageactor-properties-of-the-vtkreslicecursorrepresentation-object/12049)

<div class="topic-metadata">

**Author:** [@quantiehan](https://discourse.vtk.org/u/quantiehan)\
**Replies:** 1\
**Last updated:** [March 12, 2025, 8:34am UTC](https://discourse.vtk.org/t/how-to-use-the-useimageactor-properties-of-the-vtkreslicecursorrepresentation-object/12049 "2025-03-12T08:34:10Z")

</div>

I found that there is a significant difference in grayscale display between the vtkResliceCursorWidget and vtkImageViewer2 classes when displaying images at the same window width and level. Through comparison, it was fou…

---

## [how to draw MPR images with multi-vtkResliceCursorWidget on GPU?](https://discourse.vtk.org/t/how-to-draw-mpr-images-with-multi-vtkreslicecursorwidget-on-gpu/15368)

<div class="topic-metadata">

**Author:** [@SeanHan](https://discourse.vtk.org/u/SeanHan)\
**Replies:** 0\
**Last updated:** [March 12, 2025, 7:32am UTC](https://discourse.vtk.org/t/how-to-draw-mpr-images-with-multi-vtkreslicecursorwidget-on-gpu/15368 "2025-03-12T07:32:13Z")

</div>

I found that when using the vtk library to draw MPR, when using one vtkResliceCursorWidget, the GPU resources called for rendering, when multiple vtkResliceCursorWidgets are associated with one vtkResliceCursor, the rend…

---

## [vtkOpenGLContextDevice2D::DrawPointSprites issues with buffer](https://discourse.vtk.org/t/vtkopenglcontextdevice2d-drawpointsprites-issues-with-buffer/15348)

<div class="topic-metadata">

**Author:** [@PeterFranzSeequent](https://discourse.vtk.org/u/PeterFranzSeequent)\
**Replies:** 2\
**Last updated:** [March 10, 2025, 2:00am UTC](https://discourse.vtk.org/t/vtkopenglcontextdevice2d-drawpointsprites-issues-with-buffer/15348 "2025-03-10T02:00:41Z")

</div>

I have recently upgraded to new VTK version 9.4.1 and have issues with the behaviour of my applications. I am using vtkPlotPoints to draw a plot with certain markerstyle, linestyle etc. The plot receives its data via an…

---

## [vtkXOpenGLRenderWindow: Could Not Find a Decent Config or Visual on embedded Linux system with EGL only](https://discourse.vtk.org/t/vtkxopenglrenderwindow-could-not-find-a-decent-config-or-visual-on-embedded-linux-system-with-egl-only/14750)

<div class="topic-metadata">

**Author:** [@CHENG-HSUAN](https://discourse.vtk.org/u/CHENG-HSUAN)\
**Replies:** 3\
**Last updated:** [March 9, 2025, 4:36pm UTC](https://discourse.vtk.org/t/vtkxopenglrenderwindow-could-not-find-a-decent-config-or-visual-on-embedded-linux-system-with-egl-only/14750 "2025-03-09T16:36:55Z")

</div>

Hello everyone, I’m new to VTK and I’m encountering an issue when trying to render CylinderExample vtkXOpenGLRenderWindow.:266 ERR| vtkXOpenGLRenderWindow (0x34ea11c0): Could not find a decent config vtkXOpenGLRenderWi…

---

## [Potential Bug in vtkAbstractMapper::RemoveAllClippingPlanes() - Missing Modified() Call](https://discourse.vtk.org/t/potential-bug-in-vtkabstractmapper-removeallclippingplanes-missing-modified-call/15346)

<div class="topic-metadata">

**Author:** [@omkar](https://discourse.vtk.org/u/omkar)\
**Replies:** 1\
**Last updated:** [March 6, 2025, 11:00am UTC](https://discourse.vtk.org/t/potential-bug-in-vtkabstractmapper-removeallclippingplanes-missing-modified-call/15346 "2025-03-06T11:00:15Z")

</div>

I have noticed an interesting behavior in the \[vtkAbstractMapper::RemoveAllClippingPlanes()\](https://github.com/Kitware/VTK/blob/6732e34cf2d607a2835e867e5d8eb530393c37ec/Rendering/Core/vtkAbstractMapper.cxx#L79) method…

---

## [assignment operators in vtk](https://discourse.vtk.org/t/assignment-operators-in-vtk/15276)

<div class="topic-metadata">

**Author:** [@untereiner](https://discourse.vtk.org/u/untereiner)\
**Replies:** 3\
**Last updated:** [March 3, 2025, 11:04pm UTC](https://discourse.vtk.org/t/assignment-operators-in-vtk/15276 "2025-03-03T23:04:01Z")

</div>

Hello, I was just wondering, because I don’t understand it. Is it ok for all deleted assignment operators in vtk classes to be written like this ? void operator=(const T&) = delete; Shouldn’t they be written this way…

---

## [vtkDualDepthPeelingPass example](https://discourse.vtk.org/t/vtkdualdepthpeelingpass-example/15320)

<div class="topic-metadata">

**Author:** [@gongwaner](https://discourse.vtk.org/u/gongwaner)\
**Replies:** 4\
**Last updated:** [March 3, 2025, 7:38pm UTC](https://discourse.vtk.org/t/vtkdualdepthpeelingpass-example/15320 "2025-03-03T19:38:52Z")

</div>

Hi, I came across this article about dual depth peeling. It provides the code for fragment shader, but it can’t simply used.(I need to create the depth into texture and other stuff.) I then found that the feature is alr…

---

## [How to compile vtk for memory profiling](https://discourse.vtk.org/t/how-to-compile-vtk-for-memory-profiling/15321)

<div class="topic-metadata">

**Author:** [@kit](https://discourse.vtk.org/u/kit)\
**Replies:** 3\
**Last updated:** [February 28, 2025, 5:14pm UTC](https://discourse.vtk.org/t/how-to-compile-vtk-for-memory-profiling/15321 "2025-02-28T17:14:00Z")

</div>

I am trying to memory profile a C++ library written on top of VTK. For profiling C executables adding the compile option -DCMAKE\_CXX\_FLAGS="-fsanitize=address -g3" works well (I am using gcc). However, I run into erro…

---

## [VTK Rendering Shows Black Screen – Any Solutions?](https://discourse.vtk.org/t/vtk-rendering-shows-black-screen-any-solutions/15304)

<div class="topic-metadata">

**Author:** [@cowem](https://discourse.vtk.org/u/cowem)\
**Replies:** 2\
**Last updated:** [February 28, 2025, 2:52pm UTC](https://discourse.vtk.org/t/vtk-rendering-shows-black-screen-any-solutions/15304 "2025-02-28T14:52:17Z")

</div>

Hi everyone, I am facing an issue where my VTK-based application is rendering only a black screen instead of displaying the expected 3D visualization. I am using VTK with Python/C++ and OpenGL,and everything was workin…

---

## [Offscreen rendering of MPR window](https://discourse.vtk.org/t/offscreen-rendering-of-mpr-window/15322)

<div class="topic-metadata">

**Author:** [@mcaa](https://discourse.vtk.org/u/mcaa)\
**Replies:** 0\
**Last updated:** [February 26, 2025, 3:42pm UTC](https://discourse.vtk.org/t/offscreen-rendering-of-mpr-window/15322 "2025-02-26T15:42:33Z")

</div>

Hello dear vtk community, I’m contributing to an application that uses vtk 9.1 to visualize volumes and MPR slices. The UI has 4 render windows (vtkRenderWindow) - one for the 3D volume and one window for each axial, co…

---

## [vtkbool as remote module](https://discourse.vtk.org/t/vtkbool-as-remote-module/15182)

<div class="topic-metadata">

**Author:** [@kenavolic](https://discourse.vtk.org/u/kenavolic)\
**Replies:** 3\
**Last updated:** [February 23, 2025, 3:21am UTC](https://discourse.vtk.org/t/vtkbool-as-remote-module/15182 "2025-02-23T03:21:38Z")

</div>

Hi everybody, I read about the standard for a module to be included as a remote module (VTK/Remote Modules - KitwarePublic). For those who know the vtkbool project (GitHub - zippy84/vtkbool: A new boolean operations fi…

---

## [Compile and run slicer in vs2022, and the prompt "Access Denied" appears](https://discourse.vtk.org/t/compile-and-run-slicer-in-vs2022-and-the-prompt-access-denied-appears/15290)

<div class="topic-metadata">

**Author:** [@zhuofalin](https://discourse.vtk.org/u/zhuofalin)\
**Replies:** 1\
**Last updated:** [February 21, 2025, 1:43pm UTC](https://discourse.vtk.org/t/compile-and-run-slicer-in-vs2022-and-the-prompt-access-denied-appears/15290 "2025-02-21T13:43:09Z")

</div>

I compiled slicer on two windows (one is win10 and the other is win11). At that time, I could compile and run slicer normally using vs2022. However, after a few days, when I compiled and ran slicer again, it prompted acc…

---

## [Does VTK use a Debug postfix on built libraries](https://discourse.vtk.org/t/does-vtk-use-a-debug-postfix-on-built-libraries/15283)

<div class="topic-metadata">

**Author:** [@Michael\_Jackson](https://discourse.vtk.org/u/Michael_Jackson)\
**Replies:** 1\
**Last updated:** [February 19, 2025, 8:34pm UTC](https://discourse.vtk.org/t/does-vtk-use-a-debug-postfix-on-built-libraries/15283 "2025-02-19T20:34:43Z")

</div>

Is there a CMake option that I can set to attach a debug postfix to the library names so that I can combine debug and release builds under a single install directory? It looks like there is for Visual Studio builds but …

---

## [VTK/WASM and ImplicitPlaneWidget2 for a cross-section widget?](https://discourse.vtk.org/t/vtk-wasm-and-implicitplanewidget2-for-a-cross-section-widget/15252)

<div class="topic-metadata">

**Author:** [@uv382](https://discourse.vtk.org/u/uv382)\
**Replies:** 1\
**Last updated:** [February 9, 2025, 11:11pm UTC](https://discourse.vtk.org/t/vtk-wasm-and-implicitplanewidget2-for-a-cross-section-widget/15252 "2025-02-09T23:11:13Z")

</div>

I have been studying the documentation here in an attempt to implement a cross-section widget in a VTK/WASM project. I have not been successful, even after copying and pasting the (Python) code directly from the example …

---

## [PassThroughPointIds for vtkExtractCells](https://discourse.vtk.org/t/passthroughpointids-for-vtkextractcells/15262)

<div class="topic-metadata">

**Author:** [@leonschropp](https://discourse.vtk.org/u/leonschropp)\
**Replies:** 0\
**Last updated:** [February 11, 2025, 12:04pm UTC](https://discourse.vtk.org/t/passthroughpointids-for-vtkextractcells/15262 "2025-02-11T12:04:56Z")

</div>

Hi, I’m using the filter provided in vtkExtractCells.h for a Project at work, where I need to extract all 2D cells from an vtkUnstructuredGrid and seperate both remaining vtkUnstructuredGrid by their connected components…

---

## [How do I call renderer.GetActiveCamera() in JavaScript using VTK/WASM?](https://discourse.vtk.org/t/how-do-i-call-renderer-getactivecamera-in-javascript-using-vtk-wasm/15242)

<div class="topic-metadata">

**Author:** [@uv382](https://discourse.vtk.org/u/uv382)\
**Replies:** 6\
**Last updated:** [February 9, 2025, 10:04pm UTC](https://discourse.vtk.org/t/how-do-i-call-renderer-getactivecamera-in-javascript-using-vtk-wasm/15242 "2025-02-09T22:04:52Z")

</div>

I am trying to access the current camera object from the frontend (JavaScript) in a VTK/WASM project. In the “pure-js” example in the trame-vtklocal repository, there is a file called main.js. For the purposes of this q…

---

## [Is it possible to create an overlay on top of the vtkChart?](https://discourse.vtk.org/t/is-it-possible-to-create-an-overlay-on-top-of-the-vtkchart/15214)

<div class="topic-metadata">

**Author:** [@Michael\_Jackson](https://discourse.vtk.org/u/Michael_Jackson)\
**Replies:** 1\
**Last updated:** [January 28, 2025, 7:19pm UTC](https://discourse.vtk.org/t/is-it-possible-to-create-an-overlay-on-top-of-the-vtkchart/15214 "2025-01-28T19:19:50Z")

</div>

Does anyone know if it is possible to create an overlay where we render something arbitrarily on top of a vtkChart? We essentially would like to do a hover effect when some other action in our UI signals we create an ove…

---

## [Switch CGNS reader to create PartitionedDataSetCollection instead of MultIBlockDataSets](https://discourse.vtk.org/t/switch-cgns-reader-to-create-partitioneddatasetcollection-instead-of-multiblockdatasets/15201)

<div class="topic-metadata">

**Author:** [@Alexandre\_Minot](https://discourse.vtk.org/u/Alexandre_Minot)\
**Replies:** 5\
**Last updated:** [January 28, 2025, 6:57am UTC](https://discourse.vtk.org/t/switch-cgns-reader-to-create-partitioneddatasetcollection-instead-of-multiblockdatasets/15201 "2025-01-28T06:57:41Z")

</div>

Currently, the CGNS reader creates MultIBlockDataSets. New tools, like Catalyst2 (conduit source), rely on the new data structure PartitionedDataSetCollection. To align the CGNS source to the Conduit source, I would need…

---

## [CMake Error: VTK::nlohmannjson](https://discourse.vtk.org/t/cmake-error-vtk-nlohmannjson/15170)

<div class="topic-metadata">

**Author:** [@2xB](https://discourse.vtk.org/u/2xB)\
**Replies:** 9\
**Last updated:** [January 21, 2025, 6:21pm UTC](https://discourse.vtk.org/t/cmake-error-vtk-nlohmannjson/15170 "2025-01-21T18:21:22Z")

</div>

Since a few days we get CMake Error at /usr/lib64/cmake/vtk/VTK-targets.cmake:553 (set\_target\_properties): The link interface of target "VTK::nlohmannjson" contains: nlohmann\_json::nlohmann\_json but the target w…

---

## [i didnt get the rendering window output when I run my code](https://discourse.vtk.org/t/i-didnt-get-the-rendering-window-output-when-i-run-my-code/15180)

<div class="topic-metadata">

**Author:** [@manafpv](https://discourse.vtk.org/u/manafpv)\
**Replies:** 4\
**Last updated:** [January 21, 2025, 7:21am UTC](https://discourse.vtk.org/t/i-didnt-get-the-rendering-window-output-when-i-run-my-code/15180 "2025-01-21T07:21:31Z")

</div>

When I use this code ,i am getting output like this i cant see renderd output window , what is the reason #include \<vtk-9.1/vtkVersion.h\> #include \<vtk-9.1/vtkActor.h\> #include \<vtk-9.1/vtkDiskSource.h\> #include \<vt…

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

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