# Latest

**URL:** https://discourse.vtk.org/latest.md?page=89

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

**Page:** 90

---

## [System.AccessViolationException](https://discourse.vtk.org/t/system-accessviolationexception/11059)

<div class="topic-metadata">

**Author:** [@Micromegas](https://discourse.vtk.org/u/Micromegas)\
**Replies:** 8\
**Last updated:** [April 24, 2023, 8:20am UTC](https://discourse.vtk.org/t/system-accessviolationexception/11059 "2023-04-24T08:20:03Z")

</div>

Hallo @ll, we are using VTK (Version: 9.0.1.1009) as Graphic API and have problems with a System.AccessViolationException : Attempt to read or write protected memory, which keeps occurring randomly, sometimes after 30 m…

---

## [vtkImplicitArrays error with java wrappings](https://discourse.vtk.org/t/vtkimplicitarrays-error-with-java-wrappings/10936)

<div class="topic-metadata">

**Author:** [@Kostas\_Politis](https://discourse.vtk.org/u/Kostas_Politis)\
**Replies:** 6\
**Last updated:** [April 24, 2023, 7:14am UTC](https://discourse.vtk.org/t/vtkimplicitarrays-error-with-java-wrappings/10936 "2023-04-24T07:14:46Z")

</div>

Hello all, I was just compiling VTK (master) with Enable CommonImplicitArrays and noticed that the Java wrapping give a link error \[17797/21487\] Linking CXX shared library lib\\java\\vtk-Windows-AMD64\\vtkFiltersReduction…

---

## [vtk map scala to target color, but vtkLookupTable works not ok.](https://discourse.vtk.org/t/vtk-map-scala-to-target-color-but-vtklookuptable-works-not-ok/11225)

<div class="topic-metadata">

**Author:** [@LightSun](https://discourse.vtk.org/u/LightSun)\
**Replies:** 1\
**Last updated:** [April 24, 2023, 3:41am UTC](https://discourse.vtk.org/t/vtk-map-scala-to-target-color-but-vtklookuptable-works-not-ok/11225 "2023-04-24T03:41:46Z")

</div>

Hello , I am new to VTK. I have a problem with display 3d image data. the color display is not my want. I have a nifti image data with only four scala values: 0 ,1, 2, 3. And I want 0 map to black, and 1 map to red, …

---

## [Qt5 future in VTK](https://discourse.vtk.org/t/qt5-future-in-vtk/10218)

<div class="topic-metadata">

**Author:** [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)\
**Replies:** 12\
**Last updated:** [April 24, 2023, 3:40am UTC](https://discourse.vtk.org/t/qt5-future-in-vtk/10218 "2023-04-24T03:40:30Z")

</div>

So 5.15 is EOL in May 2023 (without a paid subscription). It’s probably time to start thinking about what this means for VTK (and ParaView for that matter). VTK has had Qt6 as an option for a while, but CI hasn’t been d…

---

## [vtkCaptionRepresentation does not support Chinese](https://discourse.vtk.org/t/vtkcaptionrepresentation-does-not-support-chinese/11255)

<div class="topic-metadata">

**Author:** [@mmXIO](https://discourse.vtk.org/u/mmXIO)\
**Replies:** 3\
**Last updated:** [April 24, 2023, 3:35am UTC](https://discourse.vtk.org/t/vtkcaptionrepresentation-does-not-support-chinese/11255 "2023-04-24T03:35:31Z")

</div>

When I pass in the Chinese parameter in SetCaption, the running result does not show my Chinese, is it not supported in UTF-8 format? Is there any good workaround?

---

## [Vtk Output error with netcdf file](https://discourse.vtk.org/t/vtk-output-error-with-netcdf-file/11214)

<div class="topic-metadata">

**Author:** [@Cave1212](https://discourse.vtk.org/u/Cave1212)\
**Replies:** 1\
**Last updated:** [April 24, 2023, 3:29am UTC](https://discourse.vtk.org/t/vtk-output-error-with-netcdf-file/11214 "2023-04-24T03:29:17Z")

</div>

Im trying to render a netcdf file i got these included #include \<vtkNetCDFReader.h\> #include \<vtkSmartPointer.h\> #include \<vtkDataSetMapper.h\> #include \<vtkActor.h\> #include \<vtkAlgorithm.h\> #include \<vtkRenderer.h\> #in…

---

## [import vtk.qt is not found](https://discourse.vtk.org/t/import-vtk-qt-is-not-found/11211)

<div class="topic-metadata">

**Author:** [@zyad](https://discourse.vtk.org/u/zyad)\
**Replies:** 1\
**Last updated:** [April 24, 2023, 3:25am UTC](https://discourse.vtk.org/t/import-vtk-qt-is-not-found/11211 "2023-04-24T03:25:46Z")

</div>

I am new to qt vtk i ma trying to add from vtk.qt.QVTKRenderWindowInteractorPython import QVTKRenderWindowInteractor i have tried a lot to pip reinstall vtk but still vtk qt module not found Traceback (most recent call …

---

## [keep getting errors when including netcdf #include \<vtkNetCDFCFReader.h\>](https://discourse.vtk.org/t/keep-getting-errors-when-including-netcdf-include-vtknetcdfcfreader-h/11190)

<div class="topic-metadata">

**Author:** [@Cave1212](https://discourse.vtk.org/u/Cave1212)\
**Replies:** 1\
**Last updated:** [April 24, 2023, 3:25am UTC](https://discourse.vtk.org/t/keep-getting-errors-when-including-netcdf-include-vtknetcdfcfreader-h/11190 "2023-04-24T03:25:03Z")

</div>

im new to vtk i just installed vtk When i run my C++ program with #include \<vtkNetCDFCFReader.h\> i keep getting this error Build started... 1\>------ Build started: Project: bolt, Configuration: Release x64 ------ 1\>bol…

---

## [vtk+ qt + realsense sdk ?](https://discourse.vtk.org/t/vtk-qt-realsense-sdk/11123)

<div class="topic-metadata">

**Author:** [@saravana](https://discourse.vtk.org/u/saravana)\
**Replies:** 1\
**Last updated:** [April 24, 2023, 3:21am UTC](https://discourse.vtk.org/t/vtk-qt-realsense-sdk/11123 "2023-04-24T03:21:16Z")

</div>

Hello peeps, I have set up a minimum working Qt+Vtk application and I have been trying to stream a realsense image stream in a QVtkWindow like this, where i have set up the realsense stream loop in a separate QThread : r…

---

## [Problem rendering surfaces after upgrading to VTK 8.2.0](https://discourse.vtk.org/t/problem-rendering-surfaces-after-upgrading-to-vtk-8-2-0/11070)

<div class="topic-metadata">

**Author:** [@whereismymoney](https://discourse.vtk.org/u/whereismymoney)\
**Replies:** 3\
**Last updated:** [April 24, 2023, 3:18am UTC](https://discourse.vtk.org/t/problem-rendering-surfaces-after-upgrading-to-vtk-8-2-0/11070 "2023-04-24T03:18:57Z")

</div>

After upgrading our application from VTK 6.0.0 to VTK 8.2.0 we have a problem with artifacts (“cross-hatching,” “Moire patterns,” “aliasing”) when zooming in on details. This is for vtkCamera::ParallelProjectionOn() F…

---

## [windows m1 arm64 status](https://discourse.vtk.org/t/windows-m1-arm64-status/10941)

<div class="topic-metadata">

**Author:** [@bart](https://discourse.vtk.org/u/bart)\
**Replies:** 2\
**Last updated:** [April 24, 2023, 3:11am UTC](https://discourse.vtk.org/t/windows-m1-arm64-status/10941 "2023-04-24T03:11:42Z")

</div>

Hi all, Running windows 11 in vmware on apple M1. Build with visual studio 17.5.1. Fails with plenty of build errors of the type below |Error|C1189|#error: Byte order of target CPU unknown.|CommonCore|C:\\Users\\win11…

---

## [Robot feature request for merges](https://discourse.vtk.org/t/robot-feature-request-for-merges/10656)

<div class="topic-metadata">

**Author:** [@dgobbi](https://discourse.vtk.org/u/dgobbi)\
**Replies:** 4\
**Last updated:** [April 24, 2023, 2:53am UTC](https://discourse.vtk.org/t/robot-feature-request-for-merges/10656 "2023-04-24T02:53:59Z")

</div>

This is for devs and contributors. As we all know, the MR robot is not only noisy, but also doesn’t always give the best advice. And usually we cut it some slack because it’s just a robot and is therefore blameless for…

---

## [how to set the camera to a fixed focus camera](https://discourse.vtk.org/t/how-to-set-the-camera-to-a-fixed-focus-camera/11168)

<div class="topic-metadata">

**Author:** [@xu\_siang](https://discourse.vtk.org/u/xu_siang)\
**Replies:** 3\
**Last updated:** [April 22, 2023, 7:43am UTC](https://discourse.vtk.org/t/how-to-set-the-camera-to-a-fixed-focus-camera/11168 "2023-04-22T07:43:59Z")

</div>

Hi everyone, I want to know is there any function in vtk that can set the camera to a fixed focus camera? I want the focal length to be a fixed constant which won’t change when I move my camera. I use python vtk 8.2.0. …

---

## [Question about Emscripten example from the source code](https://discourse.vtk.org/t/question-about-emscripten-example-from-the-source-code/11037)

<div class="topic-metadata">

**Author:** [@ldsrogan](https://discourse.vtk.org/u/ldsrogan)\
**Replies:** 1\
**Last updated:** [April 21, 2023, 4:51pm UTC](https://discourse.vtk.org/t/question-about-emscripten-example-from-the-source-code/11037 "2023-04-21T16:51:47Z")

</div>

I’ve tried to use cmake with the defined CMakeList.txt in the Examples/Emscripten/Cxx/Cone, but I wasn’t able to build and run successfully… Do anyone has idea what’s wrong? I didn’t use the docker, but instead I used e…

---

## [Sort points on line in PolyData](https://discourse.vtk.org/t/sort-points-on-line-in-polydata/3851)

<div class="topic-metadata">

**Author:** [@jrwrigh](https://discourse.vtk.org/u/jrwrigh)\
**Replies:** 28\
**Last updated:** [April 21, 2023, 3:21pm UTC](https://discourse.vtk.org/t/sort-points-on-line-in-polydata/3851 "2023-04-21T15:21:55Z")

</div>

So I have a PolyData object of lines generated from extracting feature edges from a 2D unstructured grid and then cutting out portions of the feature edges I didn’t want. In my example, the original grid was just a squa…

---

## [Hardware Selector with transparency returning wrong attribute ID/prop ID](https://discourse.vtk.org/t/hardware-selector-with-transparency-returning-wrong-attribute-id-prop-id/11270)

<div class="topic-metadata">

**Author:** [@rmar](https://discourse.vtk.org/u/rmar)\
**Replies:** 7\
**Last updated:** [April 21, 2023, 3:12pm UTC](https://discourse.vtk.org/t/hardware-selector-with-transparency-returning-wrong-attribute-id-prop-id/11270 "2023-04-21T15:12:56Z")

</div>

Hello, I am looking for some help to make hardware selector return correct attributeID and propID in the presence of opacity. Very basically, I am trying to select faces of a polydata using the hardware selector, but am…

---

## [How I can to split 3d vtk data to 2d series?](https://discourse.vtk.org/t/how-i-can-to-split-3d-vtk-data-to-2d-series/2347)

<div class="topic-metadata">

**Author:** [@Larisa](https://discourse.vtk.org/u/Larisa)\
**Replies:** 16\
**Last updated:** [April 21, 2023, 12:04am UTC](https://discourse.vtk.org/t/how-i-can-to-split-3d-vtk-data-to-2d-series/2347 "2023-04-21T00:04:24Z")

</div>

Hello. I try to prepare data for cnn (convolutional neural network) - metastatis brain cancer MRI. I have for each patient series of dicom files (slices) and vtk file (points and polygons). In the viewer I see file wi…

---

## [Pipeline within a filter: vtkDepthImageToPointCloud](https://discourse.vtk.org/t/pipeline-within-a-filter-vtkdepthimagetopointcloud/11269)

<div class="topic-metadata">

**Author:** [@Jens\_Munk\_Hansen](https://discourse.vtk.org/u/Jens_Munk_Hansen)\
**Replies:** 2\
**Last updated:** [April 20, 2023, 7:05pm UTC](https://discourse.vtk.org/t/pipeline-within-a-filter-vtkdepthimagetopointcloud/11269 "2023-04-20T19:05:55Z")

</div>

Hi Developers I had some trouble getting vtkDepthImageToPointCloud to update when the camera is updated. I create instead a homemade vtkSceneSource, which contains a vtkRenderWindow and allow the user to set both a vtkC…

---

## [Working with a HDF file in VTK](https://discourse.vtk.org/t/working-with-a-hdf-file-in-vtk/11233)

<div class="topic-metadata">

**Author:** [@Chaitanya\_Kolluru](https://discourse.vtk.org/u/Chaitanya_Kolluru)\
**Replies:** 14\
**Last updated:** [April 20, 2023, 4:21pm UTC](https://discourse.vtk.org/t/working-with-a-hdf-file-in-vtk/11233 "2023-04-20T16:21:00Z")

</div>

I have a 3D image stack, saved on disk as a set of individual 2D image files. I have around 3000 such image files, each about 10 MB, so the total data set is about 30 GB. The datasets can be larger than that, and will no…

---

## [create separated regions from polydata](https://discourse.vtk.org/t/create-separated-regions-from-polydata/10409)

<div class="topic-metadata">

**Author:** [@PBrockmann](https://discourse.vtk.org/u/PBrockmann)\
**Replies:** 26\
**Last updated:** [April 20, 2023, 3:00pm UTC](https://discourse.vtk.org/t/create-separated-regions-from-polydata/10409 "2023-04-20T15:00:08Z")

</div>

Hi, I describe here a problem I am facing to. It follows a question that I had asked here as: get a continuous line from a polydata structure Today, I would like to produce maps with filled polygons (that may have hole…

---

## [A quesition about RenderLargeImage](https://discourse.vtk.org/t/a-quesition-about-renderlargeimage/2198)

<div class="topic-metadata">

**Author:** [@sorlik](https://discourse.vtk.org/u/sorlik)\
**Replies:** 2\
**Last updated:** [April 20, 2023, 2:59pm UTC](https://discourse.vtk.org/t/a-quesition-about-renderlargeimage/2198 "2023-04-20T14:59:23Z")

</div>

I need to export the scene as a high-definition image, but the image is tiled through vtkRenderLargeImage(Use tiling to generate a large rendering). How can I export the high-definition image by filling? Thanks.

---

## [Function to change view mode to ZPlane](https://discourse.vtk.org/t/function-to-change-view-mode-to-zplane/11126)

<div class="topic-metadata">

**Author:** [@Kevin\_Sweeney](https://discourse.vtk.org/u/Kevin_Sweeney)\
**Replies:** 7\
**Last updated:** [April 20, 2023, 1:20pm UTC](https://discourse.vtk.org/t/function-to-change-view-mode-to-zplane/11126 "2023-04-20T13:20:46Z")

</div>

I am creating a view instance in itkwidgets (i.e. projection\_view = itkwidgets.view(geometries=None, background=\[0.0, 0.0, 0.0\])) and want to be able to, at a later stage, set the view mode to ZPlane. How do I do this t…

---

## [Issue with opacity and enabling/disabling visibility of glyphs](https://discourse.vtk.org/t/issue-with-opacity-and-enabling-disabling-visibility-of-glyphs/11258)

<div class="topic-metadata">

**Author:** [@chrisiou](https://discourse.vtk.org/u/chrisiou)\
**Replies:** 0\
**Last updated:** [April 19, 2023, 3:42pm UTC](https://discourse.vtk.org/t/issue-with-opacity-and-enabling-disabling-visibility-of-glyphs/11258 "2023-04-19T15:42:26Z")

</div>

Hello everyone! I am using vtkTensorGlyph for visualizing hundreds of thousands of voxeloid cells and vtkLookUpTable to change the color and the opacity of each glyph. I need to be able of enabling/disabling the visibil…

---

## [Nearest neighbour(closest point) search using vtkKdTree](https://discourse.vtk.org/t/nearest-neighbour-closest-point-search-using-vtkkdtree/11250)

<div class="topic-metadata">

**Author:** [@liuzhongshu](https://discourse.vtk.org/u/liuzhongshu)\
**Replies:** 2\
**Last updated:** [April 20, 2023, 2:51am UTC](https://discourse.vtk.org/t/nearest-neighbour-closest-point-search-using-vtkkdtree/11250 "2023-04-20T02:51:14Z")

</div>

I am using vtk’s kdtree to search closest point, here is a simple example that, to my surprise, returned a value that was not what I was expecting import vtk points = vtk.vtkPoints() points.InsertNextPoint(1, 0, 0) poi…

---

## [Why my vtk does not contain time series?](https://discourse.vtk.org/t/why-my-vtk-does-not-contain-time-series/11246)

<div class="topic-metadata">

**Author:** [@Clifford](https://discourse.vtk.org/u/Clifford)\
**Replies:** 0\
**Last updated:** [April 18, 2023, 7:40pm UTC](https://discourse.vtk.org/t/why-my-vtk-does-not-contain-time-series/11246 "2023-04-18T19:40:57Z")

</div>

I create my data through apply\_inverse(), from mne python, I want to write my data into a vtk file with a time series, however I can only get a static vtk file, don’t know where does wrong. Thanks for your help! Here is…

---

## [How to draw arrow for cell normal(not point normal)](https://discourse.vtk.org/t/how-to-draw-arrow-for-cell-normal-not-point-normal/10948)

<div class="topic-metadata">

**Author:** [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)\
**Replies:** 11\
**Last updated:** [April 18, 2023, 5:33pm UTC](https://discourse.vtk.org/t/how-to-draw-arrow-for-cell-normal-not-point-normal/10948 "2023-04-18T17:33:30Z")

</div>

Hello,use these code: /\* \* @Creator : alex \* @Create at : Jan 6, 2022 5:53:08 PM \* @Modified by : alex \* @Modified at : Jan 6, 2022 5:53:08 PM \* @Description : SphereCellNormal.cpp \*/ #include \<vtkVersion.h\> #…

---

## [Convert vessel centerline from vtkPolyData to a Nifti binary mask](https://discourse.vtk.org/t/convert-vessel-centerline-from-vtkpolydata-to-a-nifti-binary-mask/8844)

<div class="topic-metadata">

**Author:** [@RomanStriker](https://discourse.vtk.org/u/RomanStriker)\
**Replies:** 11\
**Last updated:** [April 18, 2023, 4:25pm UTC](https://discourse.vtk.org/t/convert-vessel-centerline-from-vtkpolydata-to-a-nifti-binary-mask/8844 "2023-04-18T16:25:21Z")

</div>

Hi, I have generated a center line for a sample of hepatic vessel tree in form of vertices and edges. I converted the vertices and edges to a vtkGraph and then used vtkGraphToPolyData() to convert it into vtkPolyData. …

---

## [vtk polydata to binary mask](https://discourse.vtk.org/t/vtk-polydata-to-binary-mask/11244)

<div class="topic-metadata">

**Author:** [@HuiLin0220](https://discourse.vtk.org/u/HuiLin0220)\
**Replies:** 0\
**Last updated:** [April 18, 2023, 4:21pm UTC](https://discourse.vtk.org/t/vtk-polydata-to-binary-mask/11244 "2023-04-18T16:21:50Z")

</div>

I have a patient’s cardiac MRI scan (Dicom file) and its corresponding LA label in a VTK format. I wrote a code to convert the VTK file to binary mask images (like nrrd, nii.gz,etc.) I want the generated binary mask map …

---

## [How can i display netcdf data as rgb instead of this tan color](https://discourse.vtk.org/t/how-can-i-display-netcdf-data-as-rgb-instead-of-this-tan-color/11229)

<div class="topic-metadata">

**Author:** [@Cave1212](https://discourse.vtk.org/u/Cave1212)\
**Replies:** 0\
**Last updated:** [April 17, 2023, 3:27pm UTC](https://discourse.vtk.org/t/how-can-i-display-netcdf-data-as-rgb-instead-of-this-tan-color/11229 "2023-04-17T15:27:28Z")

</div>

I have this code that renders netcdf data vtkSmartPointer\<vtkNetCDFCFReader\> reader = vtkSmartPointer\<vtkNetCDFCFReader\>::New(); reader-\>SetFileName("C:/Users/admin/Desktop/BOLTgui/BOLT/SEAFLUX-OSB-CDR\_V02R00\_SST\_D…

---

## [About custom cutting and drawing lines](https://discourse.vtk.org/t/about-custom-cutting-and-drawing-lines/11222)

<div class="topic-metadata">

**Author:** [@HWsir](https://discourse.vtk.org/u/HWsir)\
**Replies:** 1\
**Last updated:** [April 18, 2023, 1:32pm UTC](https://discourse.vtk.org/t/about-custom-cutting-and-drawing-lines/11222 "2023-04-18T13:32:28Z")

</div>

I plan to create a plane parallel to the screen and draw lines on this plane and then do the cutting operation. I have two questions. How do I get the normal vector of the current window plane? How does vtk create a p…

[Previous page](https://discourse.vtk.org/latest.md?page=88)

[Next page](https://discourse.vtk.org/latest.md?page=90)
