# Development

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

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

**Page:** 17

---

## [GetCellPoints and thread safety](https://discourse.vtk.org/t/getcellpoints-and-thread-safety/12809)

<div class="topic-metadata">

**Author:** [@dyollb](https://discourse.vtk.org/u/dyollb)\
**Replies:** 3\
**Last updated:** [November 30, 2023, 8:23am UTC](https://discourse.vtk.org/t/getcellpoints-and-thread-safety/12809 "2023-11-30T08:23:02Z")

</div>

After upgrading from vtk 8.0 to 9.2.6 several of our tests started becoming flaky. It turns out that in some cases (e.g. interpolation) we are calling GetCellPoints(vtkIdType id, vtkIdType npts, vtkIdType\* pts) of a vtk…

---

## [读取.slc文件提示错误](https://discourse.vtk.org/t/slc/8552)

<div class="topic-metadata">

**Author:** [@zhenhuashao](https://discourse.vtk.org/u/zhenhuashao)\
**Replies:** 2\
**Last updated:** [November 26, 2023, 1:04am UTC](https://discourse.vtk.org/t/slc/8552 "2023-11-26T01:04:31Z")

</div>

\#!/usr/bin/env python # noinspection PyUnresolvedReferences import vtkmodules.vtkInteractionStyle # noinspection PyUnresolvedReferences import vtkmodules.vtkRenderingOpenGL2 from vtkmodules.vtkCommonColor import vtkName…

---

## [Rotating an object around it's origin after translation](https://discourse.vtk.org/t/rotating-an-object-around-its-origin-after-translation/12759)

<div class="topic-metadata">

**Author:** [@kimia\_ghodoosi](https://discourse.vtk.org/u/kimia_ghodoosi)\
**Replies:** 7\
**Last updated:** [November 25, 2023, 9:53pm UTC](https://discourse.vtk.org/t/rotating-an-object-around-its-origin-after-translation/12759 "2023-11-25T21:53:03Z")

</div>

Hi! I want to translate my object and then rotate it around the translated origin not the main origin of the page’s coordinate.I don’t know how i can solve the problem. can any one help me?(my code is shown below) the…

---

## [Invalid shadow shape affected by the aspect ratio of the window](https://discourse.vtk.org/t/invalid-shadow-shape-affected-by-the-aspect-ratio-of-the-window/12000)

<div class="topic-metadata">

**Author:** [@sohnishi](https://discourse.vtk.org/u/sohnishi)\
**Replies:** 2\
**Last updated:** [November 24, 2023, 11:24am UTC](https://discourse.vtk.org/t/invalid-shadow-shape-affected-by-the-aspect-ratio-of-the-window/12000 "2023-11-24T11:24:24Z")

</div>

I’ve compiled and executed the Shadow example(https://examples.vtk.org/site/Cxx/Rendering/Shadows/). However, Shadows were correct only when the window aspect ratio is 1. The window size can be adjusted at Shadows.cxx:…

---

## [vtkImagePlaneWidget and vtkImageReslice on vtkGenericOpenGLRenderWindow](https://discourse.vtk.org/t/vtkimageplanewidget-and-vtkimagereslice-on-vtkgenericopenglrenderwindow/12721)

<div class="topic-metadata">

**Author:** [@mdeepakcdac](https://discourse.vtk.org/u/mdeepakcdac)\
**Replies:** 2\
**Last updated:** [November 21, 2023, 12:51am UTC](https://discourse.vtk.org/t/vtkimageplanewidget-and-vtkimagereslice-on-vtkgenericopenglrenderwindow/12721 "2023-11-21T00:51:55Z")

</div>

Hai everyone, I’ve incorporated a DICOM series into vtkMarchingCubes and subsequently added it to the renderer as an actor. This renderer was then placed into the vtkGenericOpenGLRenderWindow. Following that, I added a …

---

## [vtkGenericOpenGLRenderWindow vtkOrientationMarkerWidget crash](https://discourse.vtk.org/t/vtkgenericopenglrenderwindow-vtkorientationmarkerwidget-crash/12646)

<div class="topic-metadata">

**Author:** [@xjjgjmeng](https://discourse.vtk.org/u/xjjgjmeng)\
**Replies:** 15\
**Last updated:** [November 20, 2023, 9:52am UTC](https://discourse.vtk.org/t/vtkgenericopenglrenderwindow-vtkorientationmarkerwidget-crash/12646 "2023-11-20T09:52:12Z")

</div>

I ran the example of the file vtk-examples/src/Cxx/Widgets/OrientationMarkerWidget.cxx at master · Kitware/vtk-examples · GitHub and the program ran very well, but I just changed vtkRenderWindow to vtkGenericOpenGLRe…

---

## [VTK failed to build due to error LNK2019 and error LNK1120 on Windows with msvc](https://discourse.vtk.org/t/vtk-failed-to-build-due-to-error-lnk2019-and-error-lnk1120-on-windows-with-msvc/11671)

<div class="topic-metadata">

**Author:** [@Zhaojun-Liu](https://discourse.vtk.org/u/Zhaojun-Liu)\
**Replies:** 16\
**Last updated:** [November 18, 2023, 1:26am UTC](https://discourse.vtk.org/t/vtk-failed-to-build-due-to-error-lnk2019-and-error-lnk1120-on-windows-with-msvc/11671 "2023-11-18T01:26:54Z")

</div>

VTK failed to build due to error LNK2019 and error LNK1120 on Windows with msvc, could anyone help look at this issue? Thanks. Repro steps: git clone https://gitlab.kitware.com/vtk/vtk F:\\gitP\\vtk\\vtk git -C “F:\\gitP\\…

---

## [How can I save a 3D scene as an mrc file](https://discourse.vtk.org/t/how-can-i-save-a-3d-scene-as-an-mrc-file/12704)

<div class="topic-metadata">

**Author:** [@v4Miguel](https://discourse.vtk.org/u/v4Miguel)\
**Replies:** 1\
**Last updated:** [November 17, 2023, 4:22am UTC](https://discourse.vtk.org/t/how-can-i-save-a-3d-scene-as-an-mrc-file/12704 "2023-11-17T04:22:27Z")

</div>

Hello. I am creating a window using vtk that allows moving the density map of a membrane protein and establishing it on an axis, I want to know how I can save the protein once the user has placed it in the correct place…

---

## [Legacy VTK 9.01 Compatability:](https://discourse.vtk.org/t/legacy-vtk-9-01-compatability/12649)

<div class="topic-metadata">

**Author:** [@ramen\_newdals](https://discourse.vtk.org/u/ramen_newdals)\
**Replies:** 1\
**Last updated:** [November 17, 2023, 4:06am UTC](https://discourse.vtk.org/t/legacy-vtk-9-01-compatability/12649 "2023-11-17T04:06:29Z")

</div>

Hello All, I have an old VTK based filter that I have working in VTK 9.2+, but when I deploy it to a system that only has VTK 9.0.1 I get the following build error: error: no matching function for call to ‘vtkCellLinks:…

---

## [Crash when using mouse on Poly data being loaded](https://discourse.vtk.org/t/crash-when-using-mouse-on-poly-data-being-loaded/12609)

<div class="topic-metadata">

**Author:** [@totte\_karlsson](https://discourse.vtk.org/u/totte_karlsson)\
**Replies:** 2\
**Last updated:** [November 16, 2023, 8:10pm UTC](https://discourse.vtk.org/t/crash-when-using-mouse-on-poly-data-being-loaded/12609 "2023-11-16T20:10:55Z")

</div>

Hello, We have an application that loads data with many poly lines. In short, if hundred data sets are loaded, each one having ~1 - 100k poly lines, one by one, the program randomly crashes if the user uses the mouse t…

---

## [Is there a way to detect feature points of volume(vtkImageData) like in mesh(vtkPolyData)?](https://discourse.vtk.org/t/is-there-a-way-to-detect-feature-points-of-volume-vtkimagedata-like-in-mesh-vtkpolydata/12730)

<div class="topic-metadata">

**Author:** [@gongwaner](https://discourse.vtk.org/u/gongwaner)\
**Replies:** 0\
**Last updated:** [November 16, 2023, 9:55am UTC](https://discourse.vtk.org/t/is-there-a-way-to-detect-feature-points-of-volume-vtkimagedata-like-in-mesh-vtkpolydata/12730 "2023-11-16T09:55:11Z")

</div>

Hi guys, I’m trying to detect feature points from given input imagedata. More specifically, given CT scan of an object with visually-obvious concave and concave parts, return concave points and convex points. The only …

---

## [Need Help with VTK Project: Loading Medical Images and draw line on it, vtkImagedata, vtklinewidget2 qt and cpp](https://discourse.vtk.org/t/need-help-with-vtk-project-loading-medical-images-and-draw-line-on-it-vtkimagedata-vtklinewidget2-qt-and-cpp/12376)

<div class="topic-metadata">

**Author:** [@mdeepakcdac](https://discourse.vtk.org/u/mdeepakcdac)\
**Replies:** 3\
**Last updated:** [November 16, 2023, 5:44am UTC](https://discourse.vtk.org/t/need-help-with-vtk-project-loading-medical-images-and-draw-line-on-it-vtkimagedata-vtklinewidget2-qt-and-cpp/12376 "2023-11-16T05:44:13Z")

</div>

I’m working on a project that involves loading medical image data in VTK (Visualization Toolkit), using Qt and C++, and rendering it using VTKImageViewer2. Additionally, I need to draw a line on the displayed image using…

---

## [How to get the depth of 3D image?](https://discourse.vtk.org/t/how-to-get-the-depth-of-3d-image/12690)

<div class="topic-metadata">

**Author:** [@learn\_forever](https://discourse.vtk.org/u/learn_forever)\
**Replies:** 1\
**Last updated:** [November 14, 2023, 4:28am UTC](https://discourse.vtk.org/t/how-to-get-the-depth-of-3d-image/12690 "2023-11-14T04:28:34Z")

</div>

Hi: I rendered a 3D image using vtk. The result looks as follows: I want to get a depth map for abve image. Currently I used vtkWorldPointPicker to pick each pixel on the screen, and then got the real position throu…

---

## [Raycasting sparse TSDF](https://discourse.vtk.org/t/raycasting-sparse-tsdf/12694)

<div class="topic-metadata">

**Author:** [@Jens\_Munk\_Hansen](https://discourse.vtk.org/u/Jens_Munk_Hansen)\
**Replies:** 3\
**Last updated:** [November 13, 2023, 10:39pm UTC](https://discourse.vtk.org/t/raycasting-sparse-tsdf/12694 "2023-11-13T22:39:07Z")

</div>

Hi Developers I am developing a real-time application where I want to perform raycasting on a block-sparse truncated signed distance field (TSDF). For this purpose my though is to use the multi-volume ray cast mapper, w…

---

## [Why was it decided for vtkAbstractArray::Resize to not modify MaxId?](https://discourse.vtk.org/t/why-was-it-decided-for-vtkabstractarray-resize-to-not-modify-maxid/12678)

<div class="topic-metadata">

**Author:** [@jaswantp](https://discourse.vtk.org/u/jaswantp)\
**Replies:** 5\
**Last updated:** [November 13, 2023, 3:54pm UTC](https://discourse.vtk.org/t/why-was-it-decided-for-vtkabstractarray-resize-to-not-modify-maxid/12678 "2023-11-13T15:54:15Z")

</div>

Current behavior When asked to grow current allocation, vtkAbstractArray::Resize will reallocate space for the number of tuples using vtkGenericDataArray::ReallocateTuples and leave MaxId untouched. On the other hand, w…

---

## [find grid intersection points with VTK in 3D dicom CT and MR images for distortion analysis](https://discourse.vtk.org/t/find-grid-intersection-points-with-vtk-in-3d-dicom-ct-and-mr-images-for-distortion-analysis/12668)

<div class="topic-metadata">

**Author:** [@gregthom992](https://discourse.vtk.org/u/gregthom992)\
**Replies:** 0\
**Last updated:** [November 9, 2023, 9:36pm UTC](https://discourse.vtk.org/t/find-grid-intersection-points-with-vtk-in-3d-dicom-ct-and-mr-images-for-distortion-analysis/12668 "2023-11-09T21:36:11Z")

</div>

Hello I am trying to implement a 3D MRI geometric distortion analysis tool. My inputs are: CT scan (3D) slices of the MRI phantom which has rods that intersect forming a grid MRI (3D) slices of the same phantom The …

---

## [delete the polydata noises with connectivity filter](https://discourse.vtk.org/t/delete-the-polydata-noises-with-connectivity-filter/12644)

<div class="topic-metadata">

**Author:** [@kimia\_ghodoosi](https://discourse.vtk.org/u/kimia_ghodoosi)\
**Replies:** 0\
**Last updated:** [November 8, 2023, 11:50am UTC](https://discourse.vtk.org/t/delete-the-polydata-noises-with-connectivity-filter/12644 "2023-11-08T11:50:41Z")

</div>

Hi! I want to delete noises from my polydata with connectivity filter.I think first I should specify all regions and then delete undesired regions, and finally, just have the largest region. But I don’t know how I can a…

---

## [How to filled my surface in vtk](https://discourse.vtk.org/t/how-to-filled-my-surface-in-vtk/12615)

<div class="topic-metadata">

**Author:** [@Loic\_Azegha](https://discourse.vtk.org/u/Loic_Azegha)\
**Replies:** 4\
**Last updated:** [November 6, 2023, 4:25pm UTC](https://discourse.vtk.org/t/how-to-filled-my-surface-in-vtk/12615 "2023-11-06T16:25:12Z")

</div>

I’d like to generate a solid surface on vtk but when I enter the following code ctrl\_points, color\_points = get\_data() surface\_polydata = vtk.vtkPolyData() surface\_points = vtk.vtkPoints() surface\_cells = vtk.vtkCellA…

---

## [Enhancing VTK's Image Testing Framework: A Transition to SSIM and Lab Channels](https://discourse.vtk.org/t/enhancing-vtks-image-testing-framework-a-transition-to-ssim-and-lab-channels/12584)

<div class="topic-metadata">

**Author:** [@Yohann\_Bearzi](https://discourse.vtk.org/u/Yohann_Bearzi)\
**Replies:** 4\
**Last updated:** [November 6, 2023, 7:24pm UTC](https://discourse.vtk.org/t/enhancing-vtks-image-testing-framework-a-transition-to-ssim-and-lab-channels/12584 "2023-11-06T19:24:24Z")

</div>

The Visualization Toolkit (VTK) has relied on an RGB-based image testing framework that uses a patch-based comparison technique. While generally effective, this approach has shown limitations, especially in identifying s…

---

## [How to debug this error when program is running?](https://discourse.vtk.org/t/how-to-debug-this-error-when-program-is-running/12488)

<div class="topic-metadata">

**Author:** [@Dylan](https://discourse.vtk.org/u/Dylan)\
**Replies:** 36\
**Last updated:** [November 1, 2023, 1:12pm UTC](https://discourse.vtk.org/t/how-to-debug-this-error-when-program-is-running/12488 "2023-11-01T13:12:05Z")

</div>

SymGetLineFromAddr64 returned error code 487 at BaseThreadInitThunk ERROR: In D:\\APP\\VTK-8.2.0\\Rendering\\OpenGL2\\vtkOpenGLImageSliceMapper.cxx, line 485 vtkOpenGLImageSliceMapper (02A30300): failed after RenderPolygon …

---

## [Render series of 3D VTK files as 4D animation and interact with it simultaneously](https://discourse.vtk.org/t/render-series-of-3d-vtk-files-as-4d-animation-and-interact-with-it-simultaneously/12597)

<div class="topic-metadata">

**Author:** [@KSJ](https://discourse.vtk.org/u/KSJ)\
**Replies:** 0\
**Last updated:** [November 1, 2023, 3:47am UTC](https://discourse.vtk.org/t/render-series-of-3d-vtk-files-as-4d-animation-and-interact-with-it-simultaneously/12597 "2023-11-01T03:47:55Z")

</div>

I am working on a Qt project that involves using VTK to load multiple 3D .vtk files and display them as continuously changing data like 4D. I have successfully implemented the loop to load and display these files in a co…

---

## [inflating a part of an object in VTK](https://discourse.vtk.org/t/inflating-a-part-of-an-object-in-vtk/12375)

<div class="topic-metadata">

**Author:** [@kimia\_ghodoosi](https://discourse.vtk.org/u/kimia_ghodoosi)\
**Replies:** 12\
**Last updated:** [October 31, 2023, 9:25am UTC](https://discourse.vtk.org/t/inflating-a-part-of-an-object-in-vtk/12375 "2023-10-31T09:25:37Z")

</div>

Hi everyone! How can I inflate a part of an object by getting an input from user in VTK using C++?(something like what I attached here)

---

## [Python box selection not working](https://discourse.vtk.org/t/python-box-selection-not-working/12580)

<div class="topic-metadata">

**Author:** [@valentinecrt11](https://discourse.vtk.org/u/valentinecrt11)\
**Replies:** 0\
**Last updated:** [October 31, 2023, 6:56am UTC](https://discourse.vtk.org/t/python-box-selection-not-working/12580 "2023-10-31T06:56:24Z")

</div>

Hello, I’m using Python 3.10 to build my program. For the control style, I override the vtkInteractorStyleRubberBandPick class. Next, I want to be able to frame the actors in the scene and get the id of the selected cell…

---

## [Python: read unstructured to Numpy array](https://discourse.vtk.org/t/python-read-unstructured-to-numpy-array/12564)

<div class="topic-metadata">

**Author:** [@scivision](https://discourse.vtk.org/u/scivision)\
**Replies:** 0\
**Last updated:** [October 29, 2023, 3:22pm UTC](https://discourse.vtk.org/t/python-read-unstructured-to-numpy-array/12564 "2023-10-29T15:22:01Z")

</div>

I can read a .vtu file and get the nodes and data. I would like to add a filter CellCenters so I get the parametric cell centers. I need to setup a filter to do this, but I’m new to VTK in Python and unfamiliar with the …

---

## [VTK VolumeRendering.How to process .txt file data](https://discourse.vtk.org/t/vtk-volumerendering-how-to-process-txt-file-data/12553)

<div class="topic-metadata">

**Author:** [@cityW](https://discourse.vtk.org/u/cityW)\
**Replies:** 3\
**Last updated:** [October 27, 2023, 2:43pm UTC](https://discourse.vtk.org/t/vtk-volumerendering-how-to-process-txt-file-data/12553 "2023-10-27T14:43:51Z")

</div>

Hello everyone, I am a beginner to VTK.I’m trying to volume render with vtk C++ in VS. My teacher sent me a txt file and asked me to perform volume rendering on the data inside. In the past few days, I have studied s…

---

## [vtkPointInterpolator gives new arrays](https://discourse.vtk.org/t/vtkpointinterpolator-gives-new-arrays/12293)

<div class="topic-metadata">

**Author:** [@Ankush\_Jain](https://discourse.vtk.org/u/Ankush_Jain)\
**Replies:** 1\
**Last updated:** [October 27, 2023, 7:56am UTC](https://discourse.vtk.org/t/vtkpointinterpolator-gives-new-arrays/12293 "2023-10-27T07:56:21Z")

</div>

I have the following function: def interpolateToGrid( mesh: vtkPolyData, grid: vtkStructuredGrid, gridSize ): # Perform the interpolation interpolator = vtkPointInterpolator() gaussianKernel = vtkGaussi…

---

## [Is vtkSufaceNets3D exposed to python?](https://discourse.vtk.org/t/is-vtksufacenets3d-exposed-to-python/12547)

<div class="topic-metadata">

**Author:** [@natsu\_mizu](https://discourse.vtk.org/u/natsu_mizu)\
**Replies:** 2\
**Last updated:** [October 26, 2023, 10:18pm UTC](https://discourse.vtk.org/t/is-vtksufacenets3d-exposed-to-python/12547 "2023-10-26T22:18:07Z")

</div>

Hi, I’m interested in using vtkSurfaceNets3D mentioned in “Really Fast Isocontouring” article of the Kitware blog. However, python vtk module seems not have vtkSurfaceNets3D. I found only vtkSurfaceNets2D. Is there any…

---

## [BVTKNodes - photorealistic rendering of VTK data in Blender](https://discourse.vtk.org/t/bvtknodes-photorealistic-rendering-of-vtk-data-in-blender/3268)

<div class="topic-metadata">

**Author:** [@tkeskita](https://discourse.vtk.org/u/tkeskita)\
**Replies:** 42\
**Last updated:** [October 25, 2023, 5:54pm UTC](https://discourse.vtk.org/t/bvtknodes-photorealistic-rendering-of-vtk-data-in-blender/3268 "2023-10-25T17:54:46Z")

</div>

Hello all scientific visualization people interested in photorealistic rendering! I’ve been upgrading this amazing add-on for Blender \>2.80 called BVTKNodes, originally created by Silvano Imboden and further developed b…

---

## [Adding secondary rays and complex illumination methods to volumetric rendering](https://discourse.vtk.org/t/adding-secondary-rays-and-complex-illumination-methods-to-volumetric-rendering/8214)

<div class="topic-metadata">

**Author:** [@gthev](https://discourse.vtk.org/u/gthev)\
**Replies:** 21\
**Last updated:** [October 25, 2023, 5:53pm UTC](https://discourse.vtk.org/t/adding-secondary-rays-and-complex-illumination-methods-to-volumetric-rendering/8214 "2023-10-25T17:53:40Z")

</div>

Hi all, With Timothée Chabat and Francois Mazen, we’re currently working on developing new shaders for the vtkGPUVolumeRayCastMapper class in order to have a more realistic volumetric rendering. We are trying to integra…

---

## [Unconnected meshes of finite elements](https://discourse.vtk.org/t/unconnected-meshes-of-finite-elements/12522)

<div class="topic-metadata">

**Author:** [@lucasteixeirag](https://discourse.vtk.org/u/lucasteixeirag)\
**Replies:** 0\
**Last updated:** [October 23, 2023, 7:26pm UTC](https://discourse.vtk.org/t/unconnected-meshes-of-finite-elements/12522 "2023-10-23T19:26:57Z")

</div>

Hello everyone. I’m working on a finite elements software. It basically works like this for now: I have a 3D model of a structure (a cube in a .step file), and I want to mesh it. I have a vtkUnstructuredGrid that represe…

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

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