# Latest

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

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

**Page:** 217

---

## [OpenGL State errors with QVTKOpenGLStereoWidget using VTK master](https://discourse.vtk.org/t/opengl-state-errors-with-qvtkopenglstereowidget-using-vtk-master/3112)

<div class="topic-metadata">

**Author:** [@tchen87](https://discourse.vtk.org/u/tchen87)\
**Replies:** 1\
**Last updated:** [April 23, 2020, 4:55pm UTC](https://discourse.vtk.org/t/opengl-state-errors-with-qvtkopenglstereowidget-using-vtk-master/3112 "2020-04-23T16:55:28Z")

</div>

I have an stereo application utilizing QT and running well on VTK8.1 using QVTKWidget. When switching to VTK8.2, I see a number of VTK errors every time a call is made to vtkRenderer::Render() (see discussion here) Howe…

---

## [Error while passing a VTK object in VmtkNetworkExtraction](https://discourse.vtk.org/t/error-while-passing-a-vtk-object-in-vmtknetworkextraction/3131)

<div class="topic-metadata">

**Author:** [@Deepa](https://discourse.vtk.org/u/Deepa)\
**Replies:** 1\
**Last updated:** [April 23, 2020, 3:52pm UTC](https://discourse.vtk.org/t/error-while-passing-a-vtk-object-in-vmtknetworkextraction/3131 "2020-04-23T15:52:07Z")

</div>

Hello Everyone, I’m trying to skeletonize a 3D volume n VMTK using the following code in python vmtkCommand = '''vmtksurfacereader -ifile foo.stl --pipe vmtksurfacewriter -ofile foo\_net.vtp''' p = pyp…

---

## [How to customize Z-buffer with several Polydata](https://discourse.vtk.org/t/how-to-customize-z-buffer-with-several-polydata/3129)

<div class="topic-metadata">

**Author:** [@BotellaA](https://discourse.vtk.org/u/BotellaA)\
**Replies:** 2\
**Last updated:** [April 23, 2020, 3:32pm UTC](https://discourse.vtk.org/t/how-to-customize-z-buffer-with-several-polydata/3129 "2020-04-23T15:32:39Z")

</div>

I have several Polydata representing surfaces in the same camera. They are in contact at their boundaries. I can see the polydata mesh that is supposed to be hidden. I tried to change the ClippingRange but it did not cha…

---

## [How to build examples in VTK 9.0.0-rc2 source](https://discourse.vtk.org/t/how-to-build-examples-in-vtk-9-0-0-rc2-source/3092)

<div class="topic-metadata">

**Author:** [@opoplawski](https://discourse.vtk.org/u/opoplawski)\
**Replies:** 4\
**Last updated:** [April 23, 2020, 1:34pm UTC](https://discourse.vtk.org/t/how-to-build-examples-in-vtk-9-0-0-rc2-source/3092 "2020-04-23T13:34:41Z")

</div>

I’m working on updating the Fedora VTK package to 9.0.0-rc2 and I’m having difficulty with the examples. It does not appear that the examples are built by simply running “make” anymore. Is this expected? My cmake comm…

---

## [How to set which Anatomical plane the imported image is](https://discourse.vtk.org/t/how-to-set-which-anatomical-plane-the-imported-image-is/3101)

<div class="topic-metadata">

**Author:** [@Yongun\_Lee](https://discourse.vtk.org/u/Yongun_Lee)\
**Replies:** 12\
**Last updated:** [April 23, 2020, 12:44pm UTC](https://discourse.vtk.org/t/how-to-set-which-anatomical-plane-the-imported-image-is/3101 "2020-04-23T12:44:16Z")

</div>

I learned through the ‘vtkFourPaneViewer’ example and the ‘vtkImageImport’ example, and finally I can import the Axial image into the vtkImageViewer to view the MPR and 3D View. However, if I import a Sagittal image, th…

---

## [How can I sample a 3D volume using vtk Fixed Point Volume Ray Cast Mapper](https://discourse.vtk.org/t/how-can-i-sample-a-3d-volume-using-vtk-fixed-point-volume-ray-cast-mapper/3126)

<div class="topic-metadata">

**Author:** [@spencermanwell](https://discourse.vtk.org/u/spencermanwell)\
**Replies:** 0\
**Last updated:** [April 23, 2020, 12:11am UTC](https://discourse.vtk.org/t/how-can-i-sample-a-3d-volume-using-vtk-fixed-point-volume-ray-cast-mapper/3126 "2020-04-23T00:11:58Z")

</div>

Hello VTK users, I am doing some quantitative work that requires that I sample every voxel along parallel rays that pass through a 3D volume, with (ideally) one ray passing through each of the voxels facing the camera. …

---

## [Intersection between a mesh and a volume](https://discourse.vtk.org/t/intersection-between-a-mesh-and-a-volume/3120)

<div class="topic-metadata">

**Author:** [@hannah](https://discourse.vtk.org/u/hannah)\
**Replies:** 2\
**Last updated:** [April 21, 2020, 7:01pm UTC](https://discourse.vtk.org/t/intersection-between-a-mesh-and-a-volume/3120 "2020-04-21T19:01:18Z")

</div>

Hello, I want to know if there is any solution to find the intersection between a mesh and a volume and colour the intersected area by using VTK? I am almost new with VTK, and any help could be helpful. Thanks

---

## [Relation between vtkImageData WL and vtkImageActor WL](https://discourse.vtk.org/t/relation-between-vtkimagedata-wl-and-vtkimageactor-wl/2934)

<div class="topic-metadata">

**Author:** [@flaviu2](https://discourse.vtk.org/u/flaviu2)\
**Replies:** 19\
**Last updated:** [April 21, 2020, 2:36pm UTC](https://discourse.vtk.org/t/relation-between-vtkimagedata-wl-and-vtkimageactor-wl/2934 "2020-04-21T14:36:37Z")

</div>

What is the relation between Window Level from vtkImageData and Window Level from vtkImageActor ? vtkImageProperty class has 2 members: double ColorWindow; double ColorLevel; and they are initialized with 255 and 1…

---

## [question about forum structure](https://discourse.vtk.org/t/question-about-forum-structure/3067)

<div class="topic-metadata">

**Author:** [@Joe](https://discourse.vtk.org/u/Joe)\
**Replies:** 2\
**Last updated:** [April 21, 2020, 1:35pm UTC](https://discourse.vtk.org/t/question-about-forum-structure/3067 "2020-04-21T13:35:55Z")

</div>

May I ask if The discourse vtk forum employs people to answer questions as part of their job role in addition to volunteers? thank you

---

## [How does one specify Mesa's GL should be used when compiling VTK (9.0.0.rc2)](https://discourse.vtk.org/t/how-does-one-specify-mesas-gl-should-be-used-when-compiling-vtk-9-0-0-rc2/3114)

<div class="topic-metadata">

**Author:** [@biagas](https://discourse.vtk.org/u/biagas)\
**Replies:** 2\
**Last updated:** [April 21, 2020, 1:22pm UTC](https://discourse.vtk.org/t/how-does-one-specify-mesas-gl-should-be-used-when-compiling-vtk-9-0-0-rc2/3114 "2020-04-21T13:22:35Z")

</div>

I am on a linux system whose system GL version is insufficient for VTK. I have compiled Mesa-17.2.8 (with LLVM 5.0.0) I have tried adding to the cmake command when building VTK: -DOPENGL\_INCLUDE\_DIR=/path/to/mesa/incl…

---

## [Rotate AxesActor to align axes to three vectors](https://discourse.vtk.org/t/rotate-axesactor-to-align-axes-to-three-vectors/3078)

<div class="topic-metadata">

**Author:** [@goflo](https://discourse.vtk.org/u/goflo)\
**Replies:** 1\
**Last updated:** [April 21, 2020, 1:01pm UTC](https://discourse.vtk.org/t/rotate-axesactor-to-align-axes-to-three-vectors/3078 "2020-04-21T13:01:12Z")

</div>

Hi, I need to add multiple AxesActors to represent the local coordinate systems of elements. For each element I have a coordinate system which is defined by three direction unit vectors (vx, vy, vz) and an origin point …

---

## [Build examples and Qt does not work on VTK 9.0.0.rc2 and VTK 9.0.0.rc3 and Ubuntu 18.04](https://discourse.vtk.org/t/build-examples-and-qt-does-not-work-on-vtk-9-0-0-rc2-and-vtk-9-0-0-rc3-and-ubuntu-18-04/3118)

<div class="topic-metadata">

**Author:** [@idhamari](https://discourse.vtk.org/u/idhamari)\
**Replies:** 4\
**Last updated:** [April 21, 2020, 11:58am UTC](https://discourse.vtk.org/t/build-examples-and-qt-does-not-work-on-vtk-9-0-0-rc2-and-vtk-9-0-0-rc3-and-ubuntu-18-04/3118 "2020-04-21T11:58:10Z")

</div>

I thought I should post here as well. source: https://gitlab.kitware.com/vtk/vtk/-/issues/17862 I tried both VTK 9.0.0.rc2 and VTK 9.0.0.rc3 on my Ubuntu 18.04 using CMake 3.14.4 and nothing works. There are no exampl…

---

## [Cut polyData with ImagePlaneWidget](https://discourse.vtk.org/t/cut-polydata-with-imageplanewidget/3115)

<div class="topic-metadata">

**Author:** [@rds15](https://discourse.vtk.org/u/rds15)\
**Replies:** 0\
**Last updated:** [April 21, 2020, 1:28am UTC](https://discourse.vtk.org/t/cut-polydata-with-imageplanewidget/3115 "2020-04-21T01:28:16Z")

</div>

Hello, I am using 3 orthogonal ImagePlaneWidgets that are tied to 3 ResliceImageViewers to show each plane. Similar to the FourPaneViewer example. There are also a few sphere actors in the imagePlaneWidgets’ space. Wh…

---

## [vtk8.2 build/run problems on Mac with Java](https://discourse.vtk.org/t/vtk8-2-build-run-problems-on-mac-with-java/932)

<div class="topic-metadata">

**Author:** [@Gilthalas](https://discourse.vtk.org/u/Gilthalas)\
**Replies:** 31\
**Last updated:** [April 20, 2020, 2:54pm UTC](https://discourse.vtk.org/t/vtk8-2-build-run-problems-on-mac-with-java/932 "2020-04-20T14:54:55Z")

</div>

I can successfully build vtk8.2 on mac. However, when I go to run the JoglConeRendering demo, I get the attached core dump. hs\_err\_pid93111.log (77.8 KB) If I run things with the vtk8.1 prepackaged jar and libs that @S…

---

## [Retrieving vtkChartXY data from mouse click](https://discourse.vtk.org/t/retrieving-vtkchartxy-data-from-mouse-click/3031)

<div class="topic-metadata">

**Author:** [@dwventer](https://discourse.vtk.org/u/dwventer)\
**Replies:** 13\
**Last updated:** [April 20, 2020, 12:35pm UTC](https://discourse.vtk.org/t/retrieving-vtkchartxy-data-from-mouse-click/3031 "2020-04-20T12:35:57Z")

</div>

I’m trying to get the selected data point from where a user clicked on the chart with a mouse. I manage to get the mouse click event with the following code: vtkSmartPointer \<vtkCallbackCommand\> callback = vtkSmartPoin…

---

## [Is there QVTKOpenGLWidget for python?](https://discourse.vtk.org/t/is-there-qvtkopenglwidget-for-python/2103)

<div class="topic-metadata">

**Author:** [@Andreimd02](https://discourse.vtk.org/u/Andreimd02)\
**Replies:** 1\
**Last updated:** [April 20, 2020, 7:16am UTC](https://discourse.vtk.org/t/is-there-qvtkopenglwidget-for-python/2103 "2020-04-20T07:16:26Z")

</div>

Hi, everyone, I have a problem to use the Contour Widget. Basically I have a QVTKRenderWindowInteractor to make my aplication embed in QT, but the Contour Widget doesn’t work on QVTKRenderWindowInteractor. Looking here …

---

## [VTK 9.0.0RC2: Does not work on Linux with TBB 2019 Update9 or newer](https://discourse.vtk.org/t/vtk-9-0-0rc2-does-not-work-on-linux-with-tbb-2019-update9-or-newer/3079)

<div class="topic-metadata">

**Author:** [@lukas](https://discourse.vtk.org/u/lukas)\
**Replies:** 4\
**Last updated:** [April 20, 2020, 6:57am UTC](https://discourse.vtk.org/t/vtk-9-0-0rc2-does-not-work-on-linux-with-tbb-2019-update9-or-newer/3079 "2020-04-20T06:57:47Z")

</div>

Hi all, I’ve been trying VTK9.0RC2 with TBB on Ubuntu 19.10 and there seems to be a problem when VTK is build with TBB\_2019\_Update9 or newer. When using this combination of VTK and TBB to build a VTK Example (e.g. Diag…

---

## [Creating VR user interface](https://discourse.vtk.org/t/creating-vr-user-interface/3102)

<div class="topic-metadata">

**Author:** [@1118](https://discourse.vtk.org/u/1118)\
**Replies:** 1\
**Last updated:** [April 20, 2020, 6:31am UTC](https://discourse.vtk.org/t/creating-vr-user-interface/3102 "2020-04-20T06:31:31Z")

</div>

Hi. I have been playing around ParaView Open VR plugin with VIVE VR equipment. I like how ParaView QT GUI is rendered inside the VR render window. But for the project we are working on, we need to make our own simple U…

---

## [How to change the length of the contour on the Z axis when drawing the profile through coordinate points](https://discourse.vtk.org/t/how-to-change-the-length-of-the-contour-on-the-z-axis-when-drawing-the-profile-through-coordinate-points/3100)

<div class="topic-metadata">

**Author:** [@huatianyu](https://discourse.vtk.org/u/huatianyu)\
**Replies:** 0\
**Last updated:** [April 20, 2020, 1:28am UTC](https://discourse.vtk.org/t/how-to-change-the-length-of-the-contour-on-the-z-axis-when-drawing-the-profile-through-coordinate-points/3100 "2020-04-20T01:28:58Z")

</div>

data: \[ \[-0.62, 49.33, 29.5\], \[0.63, 49.33, 29.5\], \[1.88, 49.33, 29.5\], \[3.13, 49.31, 29.5\], \[4.38, 49.31, 29.5\], \[5.63, 49.33, 29.5\], \[6.88, 49.33, 29.5\], \[8.13, 49.33, 29.5\], \[9.38, 49.33, 29.5\], \[10.63, 49…

---

## [Python rendering scene to VR](https://discourse.vtk.org/t/python-rendering-scene-to-vr/340)

<div class="topic-metadata">

**Author:** [@banesullivan](https://discourse.vtk.org/u/banesullivan)\
**Replies:** 12\
**Last updated:** [April 20, 2020, 1:21am UTC](https://discourse.vtk.org/t/python-rendering-scene-to-vr/340 "2020-04-20T01:21:25Z")

</div>

Is it possible to implement a way to send a rendering scene (made in Python) to VR kind of like ParaView’s “Send to OpenVR” button? If so, I’m definitely going to try to implement this for vtki

---

## [How can I get this result use vtk 8.2？ When i pick a actor, will draw it's outline.](https://discourse.vtk.org/t/how-can-i-get-this-result-use-vtk-8-2-when-i-pick-a-actor-will-draw-its-outline/3097)

<div class="topic-metadata">

**Author:** [@nabor-wang](https://discourse.vtk.org/u/nabor-wang)\
**Replies:** 0\
**Last updated:** [April 19, 2020, 1:34pm UTC](https://discourse.vtk.org/t/how-can-i-get-this-result-use-vtk-8-2-when-i-pick-a-actor-will-draw-its-outline/3097 "2020-04-19T13:34:39Z")

</div>

The image is show what i want. The middle actor is in selected state.It show the actor outline. I search some topics, but i also don’t know how to do it. Use shader and add to pass? I am new for VTK. Thanks for your help…

---

## [Trouble with New() function when using Emscripten](https://discourse.vtk.org/t/trouble-with-new-function-when-using-emscripten/3080)

<div class="topic-metadata">

**Author:** [@claretb](https://discourse.vtk.org/u/claretb)\
**Replies:** 2\
**Last updated:** [April 19, 2020, 7:57am UTC](https://discourse.vtk.org/t/trouble-with-new-function-when-using-emscripten/3080 "2020-04-19T07:57:45Z")

</div>

I’m trying to port my project to WebAssembly with Emscripten. I used this source of VTK and some external libraries. And when I compiling a test project, I get the following warnings: warning: undefined symbol: \_ZN15vtk…

---

## [Save figure as PNG or PDF](https://discourse.vtk.org/t/save-figure-as-png-or-pdf/3088)

<div class="topic-metadata">

**Author:** [@Jaouane](https://discourse.vtk.org/u/Jaouane)\
**Replies:** 1\
**Last updated:** [April 18, 2020, 6:48pm UTC](https://discourse.vtk.org/t/save-figure-as-png-or-pdf/3088 "2020-04-18T18:48:21Z")

</div>

Dear Sir / Madam I am beginner in vtkplotter.dolfin by using Python. How I can save a figure as PNG or PDF format Thank you in advance for your help

---

## [Compute volume of a TubeFilter](https://discourse.vtk.org/t/compute-volume-of-a-tubefilter/3090)

<div class="topic-metadata">

**Author:** [@masgro](https://discourse.vtk.org/u/masgro)\
**Replies:** 0\
**Last updated:** [April 18, 2020, 5:02pm UTC](https://discourse.vtk.org/t/compute-volume-of-a-tubefilter/3090 "2020-04-18T17:02:12Z")

</div>

I’m using tubeFilter with clapping along a spline, and I’m trying to compute the volume inside the resulting tube… I read somewhere I can use massProperty to get that volume, but I’m failing to “convert” tubeFilter to m…

---

## [Retrieving Interpolation Image of Reslice Output with TextureVisibilityOff()](https://discourse.vtk.org/t/retrieving-interpolation-image-of-reslice-output-with-texturevisibilityoff/3083)

<div class="topic-metadata">

**Author:** [@Aaron\_Nowack](https://discourse.vtk.org/u/Aaron_Nowack)\
**Replies:** 1\
**Last updated:** [April 17, 2020, 11:00pm UTC](https://discourse.vtk.org/t/retrieving-interpolation-image-of-reslice-output-with-texturevisibilityoff/3083 "2020-04-17T23:00:17Z")

</div>

I’m creating an application which slices through a 3D volume and displays an overlay of the slice in a corner. I use a vtkImagePlaneWidget for interacting with the slice, and vtkLogoRepresentation to display the 2D slice…

---

## [Which Qt and VTK for QVTKOpenGLWidget?](https://discourse.vtk.org/t/which-qt-and-vtk-for-qvtkopenglwidget/1588)

<div class="topic-metadata">

**Author:** [@Gib\_Bogle](https://discourse.vtk.org/u/Gib_Bogle)\
**Replies:** 14\
**Last updated:** [April 17, 2020, 4:41pm UTC](https://discourse.vtk.org/t/which-qt-and-vtk-for-qvtkopenglwidget/1588 "2020-04-17T16:41:49Z")

</div>

In an attempt to avoid the segfault I’m getting with QVTKWidget (Qt-4.8, VTK-5.10) I am planning to upgrade to a version of VTK that includes QVTKOpenGLWidget. In which VTK version did this widget first appear? Will I …

---

## [How to Include 2D Image as Overlay in a 3D Scene](https://discourse.vtk.org/t/how-to-include-2d-image-as-overlay-in-a-3d-scene/3075)

<div class="topic-metadata">

**Author:** [@Aaron\_Nowack](https://discourse.vtk.org/u/Aaron_Nowack)\
**Replies:** 2\
**Last updated:** [April 17, 2020, 4:23pm UTC](https://discourse.vtk.org/t/how-to-include-2d-image-as-overlay-in-a-3d-scene/3075 "2020-04-17T16:23:09Z")

</div>

In the example ChartsOn3DScene a 2D Chart is displayed on top of a 3D scene which can be interacted with. I’m trying to do something similar, but instead of displaying a Chart, to show an image, which persists and does…

---

## [Glitches when passing from QVTKWidget to QVTKOpenGLWidget](https://discourse.vtk.org/t/glitches-when-passing-from-qvtkwidget-to-qvtkopenglwidget/3068)

<div class="topic-metadata">

**Author:** [@embeddedmz](https://discourse.vtk.org/u/embeddedmz)\
**Replies:** 5\
**Last updated:** [April 17, 2020, 2:42pm UTC](https://discourse.vtk.org/t/glitches-when-passing-from-qvtkwidget-to-qvtkopenglwidget/3068 "2020-04-17T14:42:42Z")

</div>

Hi, There’s this project I’m using in one of my company’s product https://github.com/OpenGeoscience/vtkMap it’s a slippy map. In applications/weatherstations, there’s an example of a Qt application using that project. …

---

## [vtkimplicitModeller very slow or making holes](https://discourse.vtk.org/t/vtkimplicitmodeller-very-slow-or-making-holes/3070)

<div class="topic-metadata">

**Author:** [@zandarina](https://discourse.vtk.org/u/zandarina)\
**Replies:** 3\
**Last updated:** [April 17, 2020, 1:43pm UTC](https://discourse.vtk.org/t/vtkimplicitmodeller-very-slow-or-making-holes/3070 "2020-04-17T13:43:27Z")

</div>

Hi, I am trying to create a distance map and get the contour close to the surface (a few mm from the zero level of the contour). So I got the bounds of the polydata I modified it with the bounds considering the thic…

---

## [Problem with java bindings in VTK 9](https://discourse.vtk.org/t/problem-with-java-bindings-in-vtk-9/2883)

<div class="topic-metadata">

**Author:** [@Marcin\_Krotkiewski](https://discourse.vtk.org/u/Marcin_Krotkiewski)\
**Replies:** 61\
**Last updated:** [April 17, 2020, 12:39pm UTC](https://discourse.vtk.org/t/problem-with-java-bindings-in-vtk-9/2883 "2020-04-17T12:39:06Z")

</div>

Hi, I compiled the 9.0.0-rc1 with Java bindings. It seems that the bindings generator skips some functions, which were otherwise available in the VTK8.2 bindings. One particular example is vtkScalarBarRepresentation.jav…

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

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