# Latest

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

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

**Page:** 95

---

## [How to display the vtkSmartVolumeMapper with isosurface?](https://discourse.vtk.org/t/how-to-display-the-vtksmartvolumemapper-with-isosurface/10961)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 1\
**Last updated:** [March 14, 2023, 3:51pm UTC](https://discourse.vtk.org/t/how-to-display-the-vtksmartvolumemapper-with-isosurface/10961 "2023-03-14T15:51:40Z")

</div>

Now, I want to use the isosurface with vtkSmartVolumeMapper. My code is: import vtkmodules.all as vtk import time reader = vtk.vtkDICOMImageReader() reader.SetDirectoryName('D:\\\\TestData\\\\20210811095000100001') reader.U…

---

## [VTK + Java + Mac + Swing](https://discourse.vtk.org/t/vtk-java-mac-swing/2794)

<div class="topic-metadata">

**Author:** [@martinspel](https://discourse.vtk.org/u/martinspel)\
**Replies:** 6\
**Last updated:** [March 14, 2023, 1:48pm UTC](https://discourse.vtk.org/t/vtk-java-mac-swing/2794 "2023-03-14T13:48:23Z")

</div>

Compiling on a Mac (Catalina) with Java bindings, the following error is produced: 2020-03-10 18:39:49.820 java\[89250:2491420\] WARNING: NSWindow drag regions should only be invalidated on the Main Thread! when launching…

---

## [Set dtype of written Nifti image](https://discourse.vtk.org/t/set-dtype-of-written-nifti-image/10923)

<div class="topic-metadata">

**Author:** [@Valentin\_Regueiro](https://discourse.vtk.org/u/Valentin_Regueiro)\
**Replies:** 2\
**Last updated:** [March 14, 2023, 9:55am UTC](https://discourse.vtk.org/t/set-dtype-of-written-nifti-image/10923 "2023-03-14T09:55:47Z")

</div>

Hi, I am working on exporting a segmentation as a nifti image, for which I use the vtkNiftiImageWriter. These nifti images have structured dtype:= \[(R, uint8) (G, uint8), (b, uint8), (A, uint8)\] Now, I am interfacing …

---

## [Possible bug in hardware selector with sphereMapper](https://discourse.vtk.org/t/possible-bug-in-hardware-selector-with-spheremapper/10590)

<div class="topic-metadata">

**Author:** [@Pierre-yves\_Meyer](https://discourse.vtk.org/u/Pierre-yves_Meyer)\
**Replies:** 8\
**Last updated:** [March 14, 2023, 9:04am UTC](https://discourse.vtk.org/t/possible-bug-in-hardware-selector-with-spheremapper/10590 "2023-03-14T09:04:37Z")

</div>

Hello, I’m trying to adapt the vtk.js hardware selector example to work with vtkSphereMapper as below, instead of vtkGlyph3DMapper. Due to a high number of vertices (more than 300 000) in my model, vtkGlyph3DMapper with…

---

## [Is it a bug about vtkDistanceWidget？](https://discourse.vtk.org/t/is-it-a-bug-about-vtkdistancewidget/10958)

<div class="topic-metadata">

**Author:** [@marlon.ma](https://discourse.vtk.org/u/marlon.ma)\
**Replies:** 1\
**Last updated:** [March 14, 2023, 6:08am UTC](https://discourse.vtk.org/t/is-it-a-bug-about-vtkdistancewidget/10958 "2023-03-14T06:08:51Z")

</div>

I encountered a problem. I used the vtkDistanceWidget. I found that when two instances appear in the window, if there is no problem with clicking the second instance and blank, the events of both instances can be trigger…

---

## [Removing prop handles](https://discourse.vtk.org/t/removing-prop-handles/10954)

<div class="topic-metadata">

**Author:** [@Manju](https://discourse.vtk.org/u/Manju)\
**Replies:** 0\
**Last updated:** [March 13, 2023, 11:07am UTC](https://discourse.vtk.org/t/removing-prop-handles/10954 "2023-03-13T11:07:15Z")

</div>

I have an image actor on which different tools like distance or angle may be placed. Trying to integrate a feature where user can remove individual tools by clicking on them. It is Qt IDE language c++. Below is my code s…

---

## [Hello all, is it possible to set the length and width of vtk.js rectangular widget?](https://discourse.vtk.org/t/hello-all-is-it-possible-to-set-the-length-and-width-of-vtk-js-rectangular-widget/10577)

<div class="topic-metadata">

**Author:** [@Sneha-pk](https://discourse.vtk.org/u/Sneha-pk)\
**Replies:** 5\
**Last updated:** [March 12, 2023, 11:32pm UTC](https://discourse.vtk.org/t/hello-all-is-it-possible-to-set-the-length-and-width-of-vtk-js-rectangular-widget/10577 "2023-03-12T23:32:29Z")

</div>

I am trying to set the dimensions of the rectangular widget before actual interaction starts and draw a rectangular widget as per the dimensions set by the user. const handleROI = widgetManager.addWidget(widgetROI); …

---

## [What happened to vtk.js version 26](https://discourse.vtk.org/t/what-happened-to-vtk-js-version-26/10938)

<div class="topic-metadata">

**Author:** [@stoune](https://discourse.vtk.org/u/stoune)\
**Replies:** 6\
**Last updated:** [March 12, 2023, 5:23pm UTC](https://discourse.vtk.org/t/what-happened-to-vtk-js-version-26/10938 "2023-03-12T17:23:52Z")

</div>

I have a vtk.js project that I have created and I have kept updating vtk.js versions after that, (the last was vtk.js 25.14.2), All worked just fine! In that project I display a vtkResliceCursorWidget + a vtkPolyData, i…

---

## [How to use the 'install' folder after a VTK build](https://discourse.vtk.org/t/how-to-use-the-install-folder-after-a-vtk-build/10932)

<div class="topic-metadata">

**Author:** [@totte\_karlsson](https://discourse.vtk.org/u/totte_karlsson)\
**Replies:** 4\
**Last updated:** [March 10, 2023, 10:45pm UTC](https://discourse.vtk.org/t/how-to-use-the-install-folder-after-a-vtk-build/10932 "2023-03-10T22:45:36Z")

</div>

Hello, We are trying to setup our applications, that uses VTK (9.1), to be automatically built by our build system, Gitlab. Before that, however, we are trying to build manually. When building the ‘install’ target of V…

---

## [render-\>GetZ(x,y) error](https://discourse.vtk.org/t/render-getz-x-y-error/10908)

<div class="topic-metadata">

**Author:** [@Ren](https://discourse.vtk.org/u/Ren)\
**Replies:** 1\
**Last updated:** [March 10, 2023, 10:21pm UTC](https://discourse.vtk.org/t/render-getz-x-y-error/10908 "2023-03-10T22:21:51Z")

</div>

Dear People, I use render-\>GetZ(x, y) to get the Z value of my mouse in screen, but it can’t work, it will give an error in vtk window vtkOpenGLState.cxx:203 WARN| Error in cache state for GL\_READ\_FRAMEBUFFER\_BINDING …

---

## [Rendering to offscreen buffer of a different size than render window](https://discourse.vtk.org/t/rendering-to-offscreen-buffer-of-a-different-size-than-render-window/10836)

<div class="topic-metadata">

**Author:** [@tchen87](https://discourse.vtk.org/u/tchen87)\
**Replies:** 1\
**Last updated:** [March 10, 2023, 6:19pm UTC](https://discourse.vtk.org/t/rendering-to-offscreen-buffer-of-a-different-size-than-render-window/10836 "2023-03-10T18:19:42Z")

</div>

I have an odd stereo rendering pipeline where I need to pass left and right images rendered at 2K to a weaver object, and then display the weaver output at 4K. Thus I want my final render window to be 4K in size, but I w…

---

## [Add vtkDataset::GetPoints function](https://discourse.vtk.org/t/add-vtkdataset-getpoints-function/10920)

<div class="topic-metadata">

**Author:** [@spyridon97](https://discourse.vtk.org/u/spyridon97)\
**Replies:** 18\
**Last updated:** [March 10, 2023, 3:29pm UTC](https://discourse.vtk.org/t/add-vtkdataset-getpoints-function/10920 "2023-03-10T15:29:16Z")

</div>

Hello everyone I would like to add a vtkDataSet::GetPoints function that computes the points array and return it. I would like to do that to avoid using GetPoint() since it performs a computation at each call for vtkIm…

---

## [Why vtkGenericRenderWindow keeps creating 2 canvas?](https://discourse.vtk.org/t/why-vtkgenericrenderwindow-keeps-creating-2-canvas/10937)

<div class="topic-metadata">

**Author:** [@stoune](https://discourse.vtk.org/u/stoune)\
**Replies:** 1\
**Last updated:** [March 10, 2023, 3:11pm UTC](https://discourse.vtk.org/t/why-vtkgenericrenderwindow-keeps-creating-2-canvas/10937 "2023-03-10T15:11:50Z")

</div>

I was working normally with vtk.js but today when I created a new project, I don’t know why when I render my renderwindow, it creates two canvas like in the code sandbox below

---

## [vtk.js shading with fringe interpolation](https://discourse.vtk.org/t/vtk-js-shading-with-fringe-interpolation/10931)

<div class="topic-metadata">

**Author:** [@wayne-christopher-an](https://discourse.vtk.org/u/wayne-christopher-an)\
**Replies:** 2\
**Last updated:** [March 10, 2023, 2:41pm UTC](https://discourse.vtk.org/t/vtk-js-shading-with-fringe-interpolation/10931 "2023-03-10T14:41:57Z")

</div>

I would like to show an image in vtk.js with “fringe” shading, as shown below, but I can’t figure out how to do it. I can specify Gouraud or Phong interpolation on the actor property but it’s continuous, not discrete. …

---

## [vtkCornerAnnotation Why do I use this to make the program become stuck？](https://discourse.vtk.org/t/vtkcornerannotation-why-do-i-use-this-to-make-the-program-become-stuck/10934)

<div class="topic-metadata">

**Author:** [@marlon.ma](https://discourse.vtk.org/u/marlon.ma)\
**Replies:** 1\
**Last updated:** [March 10, 2023, 2:04pm UTC](https://discourse.vtk.org/t/vtkcornerannotation-why-do-i-use-this-to-make-the-program-become-stuck/10934 "2023-03-10T14:04:39Z")

</div>

Am I using it incorrectly? I just call SetText and update it. It has a great impact on my program performance.

---

## [GLTF export and texture to PNG](https://discourse.vtk.org/t/gltf-export-and-texture-to-png/10930)

<div class="topic-metadata">

**Author:** [@ashishgupta79](https://discourse.vtk.org/u/ashishgupta79)\
**Replies:** 0\
**Last updated:** [March 9, 2023, 4:45pm UTC](https://discourse.vtk.org/t/gltf-export-and-texture-to-png/10930 "2023-03-09T16:45:17Z")

</div>

I have a vtk structured grid with single scalar points data (temperature values). I am taking a planar slice out of it using vtk cutter and supplying it a constant z plane. Then, I am exporting that slice out to a gltf f…

---

## [VTK build for android without OpenGL and Rendering](https://discourse.vtk.org/t/vtk-build-for-android-without-opengl-and-rendering/10921)

<div class="topic-metadata">

**Author:** [@mukulys](https://discourse.vtk.org/u/mukulys)\
**Replies:** 2\
**Last updated:** [March 9, 2023, 1:06am UTC](https://discourse.vtk.org/t/vtk-build-for-android-without-opengl-and-rendering/10921 "2023-03-09T01:06:32Z")

</div>

Hello, I am trying to build VTK 6.3.0 for Android. I wish to disable all the Rendering modules and build it without OpenGL. I saw the file vtkAndroid.cmake and it contains two builds. One is the minimal build on the hos…

---

## [vtkResampleWithDataSet is taking too much time](https://discourse.vtk.org/t/vtkresamplewithdataset-is-taking-too-much-time/10922)

<div class="topic-metadata">

**Author:** [@ashishgupta79](https://discourse.vtk.org/u/ashishgupta79)\
**Replies:** 1\
**Last updated:** [March 8, 2023, 11:47pm UTC](https://discourse.vtk.org/t/vtkresamplewithdataset-is-taking-too-much-time/10922 "2023-03-08T23:47:19Z")

</div>

Hi In my python script, I am using vtkResampleWithDataSet to resample one structured grid points data on to the coordinates of the other structured grid. My code snippet is shown below: resampler = vtk.vtkResampleWi…

---

## [GLEW could not be initialized: Missing GL version ubuntu 20.04](https://discourse.vtk.org/t/glew-could-not-be-initialized-missing-gl-version-ubuntu-20-04/10870)

<div class="topic-metadata">

**Author:** [@sotodela](https://discourse.vtk.org/u/sotodela)\
**Replies:** 3\
**Last updated:** [March 8, 2023, 7:45pm UTC](https://discourse.vtk.org/t/glew-could-not-be-initialized-missing-gl-version-ubuntu-20-04/10870 "2023-03-08T19:45:47Z")

</div>

Hi, Previously I was able to run my programs using vtk on python 3.8, after installing GPU drivers it stopped working and I get the error message “ERR| vtkXOpenGLRenderWindow (0x5194010): GLEW could not be initialized: …

---

## [embed visualization with vtk.js in a personal blog (hexo)](https://discourse.vtk.org/t/embed-visualization-with-vtk-js-in-a-personal-blog-hexo/10888)

<div class="topic-metadata">

**Author:** [@hyharry](https://discourse.vtk.org/u/hyharry)\
**Replies:** 7\
**Last updated:** [March 8, 2023, 7:16pm UTC](https://discourse.vtk.org/t/embed-visualization-with-vtk-js-in-a-personal-blog-hexo/10888 "2023-03-08T19:16:09Z")

</div>

Dear Experts, I am maintaining a personal blog with hexo framework. Now I would like to showcase some of my past simulation result via vtk.js. I am able to run the vanilla vtk example. However, I fail to render it in my…

---

## [Slice Domain Definition?](https://discourse.vtk.org/t/slice-domain-definition/10917)

<div class="topic-metadata">

**Author:** [@davidshq](https://discourse.vtk.org/u/davidshq)\
**Replies:** 0\
**Last updated:** [March 8, 2023, 2:36pm UTC](https://discourse.vtk.org/t/slice-domain-definition/10917 "2023-03-08T14:36:13Z")

</div>

Hoping to clarify some definitions… A slice is a subset of a larger dataset (e.g. a slice of a 3D image is a 2D image). A slice domain is the set of all possible slices that could be extract from a larger dataset. Are…

---

## [Are there any prebuilt python wheel with openmp support?](https://discourse.vtk.org/t/are-there-any-prebuilt-python-wheel-with-openmp-support/10906)

<div class="topic-metadata">

**Author:** [@turtleizzy](https://discourse.vtk.org/u/turtleizzy)\
**Replies:** 7\
**Last updated:** [March 8, 2023, 1:23pm UTC](https://discourse.vtk.org/t/are-there-any-prebuilt-python-wheel-with-openmp-support/10906 "2023-03-08T13:23:02Z")

</div>

It seems official python wheels were built without parallelization (openmp or tbb) support even if a handful of filters had vtkSMPTools support.

---

## [vtkImageCroppingWidget question with react](https://discourse.vtk.org/t/vtkimagecroppingwidget-question-with-react/10903)

<div class="topic-metadata">

**Author:** [@GraphicsDeveloper3D](https://discourse.vtk.org/u/GraphicsDeveloper3D)\
**Replies:** 2\
**Last updated:** [March 7, 2023, 6:12pm UTC](https://discourse.vtk.org/t/vtkimagecroppingwidget-question-with-react/10903 "2023-03-07T18:12:55Z")

</div>

Hello forum, I have a question for cropping widget in react: In the following code, the cropping widget does not show up. Do I need to bind the widget to any div? Is there any code sample that I can look into? I wrote …

---

## [How does vtkTimeStamp::GetMTime() work?](https://discourse.vtk.org/t/how-does-vtktimestamp-getmtime-work/10909)

<div class="topic-metadata">

**Author:** [@mau\_igna\_06](https://discourse.vtk.org/u/mau_igna_06)\
**Replies:** 1\
**Last updated:** [March 7, 2023, 2:34pm UTC](https://discourse.vtk.org/t/how-does-vtktimestamp-getmtime-work/10909 "2023-03-07T14:34:47Z")

</div>

Here is my test code: from time import sleep t = vtk.vtkTimeStamp() t.Modified() print(t.GetMTime()) sleep(3) # so next time should be 3 seconds later t.Modified() print(t.GetMTime()) It outputs: 255513 255514 So why…

---

## [How to use remote module in Python？](https://discourse.vtk.org/t/how-to-use-remote-module-in-python/10907)

<div class="topic-metadata">

**Author:** [@guyqqcom](https://discourse.vtk.org/u/guyqqcom)\
**Replies:** 1\
**Last updated:** [March 7, 2023, 9:06am UTC](https://discourse.vtk.org/t/how-to-use-remote-module-in-python/10907 "2023-03-07T09:06:47Z")

</div>

Hi all. I want to use Powercrust and PoissonReconstruction in Python. The version of VTK I am using is 9.0.3. I configured VTK\_MODULE\_ENABLE\_VTK\_PoissonReconstruction and VTK\_MODULE\_ENABLE\_VTK\_Powercrust to WANT in CMake…

---

## [How to display volume rendering of large volume Images](https://discourse.vtk.org/t/how-to-display-volume-rendering-of-large-volume-images/10375)

<div class="topic-metadata">

**Author:** [@tong\_yang](https://discourse.vtk.org/u/tong_yang)\
**Replies:** 10\
**Last updated:** [March 7, 2023, 7:50am UTC](https://discourse.vtk.org/t/how-to-display-volume-rendering-of-large-volume-images/10375 "2023-03-07T07:50:04Z")

</div>

Hello, I have been learning VTK for one year. This is my first question. I met some questions about the visualization of large capacity images, about 50GB，100GB，500GB，1TB. These are some TIFF microscopic images, so the i…

---

## [3D volume data from react using vtkImageData](https://discourse.vtk.org/t/3d-volume-data-from-react-using-vtkimagedata/10844)

<div class="topic-metadata">

**Author:** [@GraphicsDeveloper3D](https://discourse.vtk.org/u/GraphicsDeveloper3D)\
**Replies:** 2\
**Last updated:** [March 6, 2023, 8:16pm UTC](https://discourse.vtk.org/t/3d-volume-data-from-react-using-vtkimagedata/10844 "2023-03-06T20:16:34Z")

</div>

Hello VTK support. I am new to vtk.js. I am trying to render a plain 3d volume data in react app - following examples, but it’s not working. Here is my code: import { useRef, useEffect } from 'react'; import '@kitware…

---

## [vtkWidget enabling and disabling](https://discourse.vtk.org/t/vtkwidget-enabling-and-disabling/10901)

<div class="topic-metadata">

**Author:** [@sboogert](https://discourse.vtk.org/u/sboogert)\
**Replies:** 1\
**Last updated:** [March 6, 2023, 7:20pm UTC](https://discourse.vtk.org/t/vtkwidget-enabling-and-disabling/10901 "2023-03-06T19:20:26Z")

</div>

I have a large visualisation application using QT (Geant4) and I would like to allow users to enable and disable various widgets based on QT user interaction. So I have absolutely no problem getting vtkNew\<vtkImplici…

---

## [vtkProbeFilter or vtkResampleWithDataset?](https://discourse.vtk.org/t/vtkprobefilter-or-vtkresamplewithdataset/10876)

<div class="topic-metadata">

**Author:** [@rexthor](https://discourse.vtk.org/u/rexthor)\
**Replies:** 3\
**Last updated:** [March 6, 2023, 3:03pm UTC](https://discourse.vtk.org/t/vtkprobefilter-or-vtkresamplewithdataset/10876 "2023-03-06T15:03:54Z")

</div>

I have a vtkStructuredGrid that I would like to sample with a vtkPlaneSource. Which would be more appropriate vtkProbeFilter or vtkResampleWithDataset? (I only care about point values - I don’t have any cell values that …

---

## [Using Pyside6-6.4.0.1, when the promotion of the control to a subclass of the QVTKRenderWindowInteractor in Qt, the QWebEngineView instance object of the same interface fails?](https://discourse.vtk.org/t/using-pyside6-6-4-0-1-when-the-promotion-of-the-control-to-a-subclass-of-the-qvtkrenderwindowinteractor-in-qt-the-qwebengineview-instance-object-of-the-same-interface-fails/10873)

<div class="topic-metadata">

**Author:** [@cheng](https://discourse.vtk.org/u/cheng)\
**Replies:** 1\
**Last updated:** [March 6, 2023, 1:39pm UTC](https://discourse.vtk.org/t/using-pyside6-6-4-0-1-when-the-promotion-of-the-control-to-a-subclass-of-the-qvtkrenderwindowinteractor-in-qt-the-qwebengineview-instance-object-of-the-same-interface-fails/10873 "2023-03-06T13:39:30Z")

</div>

Using Pyside6-6.4.0.1, when the promotion of the control to a subclass of the QVTKRenderWindowInteractor in Qt, the QWebEngineView instance object of the same interface fails?https://gitlab.kitware.com/vtk/vtk/-/issues/1…

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

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