# Support

**URL:** https://discourse.vtk.org/c/support/6.md?page=114

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

**Page:** 115

---

## [How to understand the depth of a display point?](https://discourse.vtk.org/t/how-to-understand-the-depth-of-a-display-point/4812)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 5\
**Last updated:** [December 16, 2020, 12:08pm UTC](https://discourse.vtk.org/t/how-to-understand-the-depth-of-a-display-point/4812 "2020-12-16T12:08:41Z")

</div>

I am reading the source code of VTK, and there is one concept make me confuzed. In the operation of camera (pan, zoom in/out), there is some code like: vtkCamera \*camera = this-\>CurrentRenderer-\>GetActiveCamera(); …

---

## [Camera operation do not work](https://discourse.vtk.org/t/camera-operation-do-not-work/4813)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 5\
**Last updated:** [December 15, 2020, 1:57pm UTC](https://discourse.vtk.org/t/camera-operation-do-not-work/4813 "2020-12-15T13:57:01Z")

</div>

Now, I display a 2D image by the following code: import vtk img = vtk.vtkDICOMImageReader() img.SetFileName('C:\\\\Users\\\\MLoong\\\\Desktop\\\\dicom\_data\\\\Chang Cheng\\\\TOF\\\\IM\_0174') img.Update() mapper = vtk.vtkImageMapper…

---

## [Vertical flip with the vtkImageData](https://discourse.vtk.org/t/vertical-flip-with-the-vtkimagedata/4818)

<div class="topic-metadata">

**Author:** [@Kim\_William](https://discourse.vtk.org/u/Kim_William)\
**Replies:** 1\
**Last updated:** [December 15, 2020, 3:40am UTC](https://discourse.vtk.org/t/vertical-flip-with-the-vtkimagedata/4818 "2020-12-15T03:40:23Z")

</div>

Hi all. I have a question about vertical flip with the vtkImageData. I would like to display the image buffer received from the camera on the vtkImageViewer2. By referring to some example code, I made a sample code an…

---

## [How to put a vtkContextView into a QVTKOpenGLWidget](https://discourse.vtk.org/t/how-to-put-a-vtkcontextview-into-a-qvtkopenglwidget/4823)

<div class="topic-metadata">

**Author:** [@Carle](https://discourse.vtk.org/u/Carle)\
**Replies:** 1\
**Last updated:** [December 15, 2020, 2:40am UTC](https://discourse.vtk.org/t/how-to-put-a-vtkcontextview-into-a-qvtkopenglwidget/4823 "2020-12-15T02:40:57Z")

</div>

This is my first try using VTK in Qt, I almost copied the codes of VTKExamples/site/Cxx)/Plotting/LinePlot to my Qt program. but got an error “QVTKOpenGLNativeWidget requires a vtkGenericOpenGLRenderWindow. vtkWin32OpenG…

---

## [OpenGLRender error](https://discourse.vtk.org/t/openglrender-error/4809)

<div class="topic-metadata">

**Author:** [@Elise\_B](https://discourse.vtk.org/u/Elise_B)\
**Replies:** 6\
**Last updated:** [December 14, 2020, 4:49pm UTC](https://discourse.vtk.org/t/openglrender-error/4809 "2020-12-14T16:49:28Z")

</div>

Just trying to run the Cylinder Example and getting this example, I have OpenGL in my site-packages… I’m a python beginer, any idea? python3 CylinderExample.py ERROR: In /work/standalone-x64-build/VTK-source/Rendering/…

---

## [No color data saved by vtkVRMLExporter?](https://discourse.vtk.org/t/no-color-data-saved-by-vtkvrmlexporter/4817)

<div class="topic-metadata">

**Author:** [@rw2020](https://discourse.vtk.org/u/rw2020)\
**Replies:** 0\
**Last updated:** [December 13, 2020, 11:39pm UTC](https://discourse.vtk.org/t/no-color-data-saved-by-vtkvrmlexporter/4817 "2020-12-13T23:39:27Z")

</div>

I was using vtkVRMLExporter to save a vtk scene to a VRML file (.wrl). The scene contains objects (tubes) that uses a vtklookuptable for the color assignment. But when I load the wrl file into paraview, it does not show …

---

## [VTK do not show image in some situation](https://discourse.vtk.org/t/vtk-do-not-show-image-in-some-situation/4814)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 0\
**Last updated:** [December 13, 2020, 1:52pm UTC](https://discourse.vtk.org/t/vtk-do-not-show-image-in-some-situation/4814 "2020-12-13T13:52:14Z")

</div>

I am using VTK im my project. In some situations, vtk do not show image and it really make me confuzed. Firstly, the following code work: import vtk, sys from vtk.qt.QVTKRenderWindowInteractor import QVTKRenderWindowIn…

---

## [How show the bone of a serial dicom files!](https://discourse.vtk.org/t/how-show-the-bone-of-a-serial-dicom-files/4802)

<div class="topic-metadata">

**Author:** [@wulicheng](https://discourse.vtk.org/u/wulicheng)\
**Replies:** 4\
**Last updated:** [December 13, 2020, 2:04am UTC](https://discourse.vtk.org/t/how-show-the-bone-of-a-serial-dicom-files/4802 "2020-12-13T02:04:10Z")

</div>

Now I have the same serials of dicom files, How to show only bones when i rendering it using Volume rendering? Like the RadiAnt Dicom Viewer software!!!

---

## [vtkLSDynaReader, i got an error ERROR: In ../vtkExecutive.cxx, line 782](https://discourse.vtk.org/t/vtklsdynareader-i-got-an-error-error-in-vtkexecutive-cxx-line-782/4805)

<div class="topic-metadata">

**Author:** [@Arvin](https://discourse.vtk.org/u/Arvin)\
**Replies:** 0\
**Last updated:** [December 11, 2020, 1:39pm UTC](https://discourse.vtk.org/t/vtklsdynareader-i-got-an-error-error-in-vtkexecutive-cxx-line-782/4805 "2020-12-11T13:39:41Z")

</div>

i just use a example to read the d3plot files, but i got a error ERROR: In C:\\VTK\\VTK-8.2.0\\Common\\ExecutionModel\\vtkExecutive.cxx, line 782 vtkCompositeDataPipeline (0x354580): Algorithm vtkLSDynaReader(0x56dd10) retu…

---

## [RemoveAllObservers do not work](https://discourse.vtk.org/t/removeallobservers-do-not-work/4796)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 2\
**Last updated:** [December 11, 2020, 12:03pm UTC](https://discourse.vtk.org/t/removeallobservers-do-not-work/4796 "2020-12-11T12:03:25Z")

</div>

I want to remove all observers in interactor, but it do not work. My code is: from PyQt5.QtWidgets import \* import sys, os import vtk from vtk.qt.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor def mouseM…

---

## [Wide String Support for VTK Writers](https://discourse.vtk.org/t/wide-string-support-for-vtk-writers/4797)

<div class="topic-metadata">

**Author:** [@mdh](https://discourse.vtk.org/u/mdh)\
**Replies:** 2\
**Last updated:** [December 9, 2020, 10:17pm UTC](https://discourse.vtk.org/t/wide-string-support-for-vtk-writers/4797 "2020-12-09T22:17:43Z")

</div>

In VTK 8, vtkDataWriter::SetFileName() accepts only normal strings and vtkDataWriter::OpenVTKFile() uses ofstream to open the output file for writing. Is there a plan to add wide-character support to these methods in the…

---

## [How to get arbitrarily oblique image from vtkImageData](https://discourse.vtk.org/t/how-to-get-arbitrarily-oblique-image-from-vtkimagedata/4783)

<div class="topic-metadata">

**Author:** [@camel97](https://discourse.vtk.org/u/camel97)\
**Replies:** 1\
**Last updated:** [December 8, 2020, 4:16pm UTC](https://discourse.vtk.org/t/how-to-get-arbitrarily-oblique-image-from-vtkimagedata/4783 "2020-12-08T16:16:42Z")

</div>

Very thankful for all your help! I want to get a 2d image from a 3d vtkImageData. It’s easy to get tangent plane that is paraller to XY(maybe you can use vtkImageViewer2::SetSliceOrientationToXY() ) , but how could I g…

---

## [How to apply mask to a transformed vtkVolume](https://discourse.vtk.org/t/how-to-apply-mask-to-a-transformed-vtkvolume/4791)

<div class="topic-metadata">

**Author:** [@yuhuimoon](https://discourse.vtk.org/u/yuhuimoon)\
**Replies:** 0\
**Last updated:** [December 8, 2020, 11:19am UTC](https://discourse.vtk.org/t/how-to-apply-mask-to-a-transformed-vtkvolume/4791 "2020-12-08T11:19:28Z")

</div>

I can apply a binary mask to a vtkVolume by using SetMaskInput()(in vtkGPUVolumeRayCastMapper class). volumeMapper-\>SetMaskTypeToBinary(); volumeMapper-\>SetMaskInput(imageMask); The vtkVolume has the mask effects(hole)…

---

## [how to cmake VTK with VTKData-9.0.1 and 	VTKLargeData](https://discourse.vtk.org/t/how-to-cmake-vtk-with-vtkdata-9-0-1-and-vtklargedata/4787)

<div class="topic-metadata">

**Author:** [@Yang](https://discourse.vtk.org/u/Yang)\
**Replies:** 0\
**Last updated:** [December 6, 2020, 1:24pm UTC](https://discourse.vtk.org/t/how-to-cmake-vtk-with-vtkdata-9-0-1-and-vtklargedata/4787 "2020-12-06T13:24:50Z")

</div>

I’m new to VTK. i used to build vtk8 with vtk in windows successful, but now,i want to build vtk9 completely, i don’t know where to add the path of VTKData and VTKLargeData when build with cmake in windows.

---

## [Reorient oblique DICOM into pure axial](https://discourse.vtk.org/t/reorient-oblique-dicom-into-pure-axial/4785)

<div class="topic-metadata">

**Author:** [@Net200](https://discourse.vtk.org/u/Net200)\
**Replies:** 1\
**Last updated:** [December 6, 2020, 2:53am UTC](https://discourse.vtk.org/t/reorient-oblique-dicom-into-pure-axial/4785 "2020-12-06T02:53:47Z")

</div>

Is there an easy way to reorient oblique 3D DICOM images into pure axial slices and save the output as nifti file, from command line? If there is no such an easy tool, I am aware of the transform tool in 3DSlicer, but g…

---

## [No module named 'vtkIOExodusPython' on Windows](https://discourse.vtk.org/t/no-module-named-vtkioexoduspython-on-windows/456)

<div class="topic-metadata">

**Author:** [@addisonElliott](https://discourse.vtk.org/u/addisonElliott)\
**Replies:** 5\
**Last updated:** [December 4, 2020, 10:14pm UTC](https://discourse.vtk.org/t/no-module-named-vtkioexoduspython-on-windows/456 "2020-12-04T22:14:59Z")

</div>

Hello, First time poster here. Let me know if this isn’t the correct section for my issue… I am on Windows 10 64-bit using Python 3.7 and Anaconda. I’ve installed vtk v8.2.0 from the conda-forge channel on Anaconda and…

---

## [Disconnect endpoints in vtkPolyData](https://discourse.vtk.org/t/disconnect-endpoints-in-vtkpolydata/4771)

<div class="topic-metadata">

**Author:** [@Jothybasu\_Selvaraj](https://discourse.vtk.org/u/Jothybasu_Selvaraj)\
**Replies:** 2\
**Last updated:** [December 4, 2020, 8:15am UTC](https://discourse.vtk.org/t/disconnect-endpoints-in-vtkpolydata/4771 "2020-12-04T08:15:21Z")

</div>

Hi All, I am trying to create an arc suing vtkPolyData and it works well except I don’t want the ends to be connected. I just want ti to be like ‘C’. I tried to remove the last point but it still connects the ends. H…

---

## [When I load the tiff file, the image is displayed upside down.](https://discourse.vtk.org/t/when-i-load-the-tiff-file-the-image-is-displayed-upside-down/4763)

<div class="topic-metadata">

**Author:** [@Kim\_William](https://discourse.vtk.org/u/Kim_William)\
**Replies:** 2\
**Last updated:** [December 4, 2020, 2:30am UTC](https://discourse.vtk.org/t/when-i-load-the-tiff-file-the-image-is-displayed-upside-down/4763 "2020-12-04T02:30:46Z")

</div>

I have tested to draw an image by using vtkImageReader2 and vtkImageViewer2. Strangely, a bitmap file works well but tiff has a problem When I load the tiff file, the image is displayed upside down. Original Image: o…

---

## [about actor color Interpolate](https://discourse.vtk.org/t/about-actor-color-interpolate/4765)

<div class="topic-metadata">

**Author:** [@DL\_men](https://discourse.vtk.org/u/DL_men)\
**Replies:** 1\
**Last updated:** [December 3, 2020, 1:39pm UTC](https://discourse.vtk.org/t/about-actor-color-interpolate/4765 "2020-12-03T13:39:00Z")

</div>

I colored the actor with the following codes: data = actor.GetMapper().GetInput() data.GetPointData().SetScalars(color\_array) How to make the bounds clearly without Interpolate like the following pic. SetInterpolat…

---

## [How to disable the low pass filter effect on vtkImageViewer2?](https://discourse.vtk.org/t/how-to-disable-the-low-pass-filter-effect-on-vtkimageviewer2/4759)

<div class="topic-metadata">

**Author:** [@Kim\_William](https://discourse.vtk.org/u/Kim_William)\
**Replies:** 2\
**Last updated:** [December 2, 2020, 1:16am UTC](https://discourse.vtk.org/t/how-to-disable-the-low-pass-filter-effect-on-vtkimageviewer2/4759 "2020-12-02T01:16:04Z")

</div>

Hi all :slight\_smile: I have a question about vtkImageViewer2. I have tested loading and drawing an image with the sample code. Link: https://lorensen.github.io/VTKExamples/site/Cxx/Images/StaticImage/ It works well …

---

## [Intersection of 3D mesh with polydata (return only intersecting mesh region)](https://discourse.vtk.org/t/intersection-of-3d-mesh-with-polydata-return-only-intersecting-mesh-region/4747)

<div class="topic-metadata">

**Author:** [@kradan](https://discourse.vtk.org/u/kradan)\
**Replies:** 3\
**Last updated:** [December 1, 2020, 7:13am UTC](https://discourse.vtk.org/t/intersection-of-3d-mesh-with-polydata-return-only-intersecting-mesh-region/4747 "2020-12-01T07:13:02Z")

</div>

Hi, I would appreciate your help with a problem related to finding object intersections. I have a vtkMesh (.vtk, a brain edema), and vtkPolyData (.vtk, diffusion MRI tractography streamlines), and I want to obtain only t…

---

## [How to test if two STL files intersect?](https://discourse.vtk.org/t/how-to-test-if-two-stl-files-intersect/4742)

<div class="topic-metadata">

**Author:** [@sally0226](https://discourse.vtk.org/u/sally0226)\
**Replies:** 4\
**Last updated:** [December 1, 2020, 3:17am UTC](https://discourse.vtk.org/t/how-to-test-if-two-stl-files-intersect/4742 "2020-12-01T03:17:51Z")

</div>

I want to get intersection between two stl files so I use vtkBooleanOperationPolyDataFilter, but it didn’t work well. usually cases work well, but some cases have error this is my code reader1 = vtk.vtkSTLReader() re…

---

## [Clipping by Scalar from CellData / vtkClipDataSet / Python](https://discourse.vtk.org/t/clipping-by-scalar-from-celldata-vtkclipdataset-python/4724)

<div class="topic-metadata">

**Author:** [@Jason1](https://discourse.vtk.org/u/Jason1)\
**Replies:** 2\
**Last updated:** [November 30, 2020, 10:07am UTC](https://discourse.vtk.org/t/clipping-by-scalar-from-celldata-vtkclipdataset-python/4724 "2020-11-30T10:07:13Z")

</div>

Hello, I want to read a .vtu file and clip it so that I can work with the necessary data only. To do so the .vtu contains CellData with a tag which I can use to clip by scalars. After some searching I came to the follow…

---

## [How about interactor using](https://discourse.vtk.org/t/how-about-interactor-using/4730)

<div class="topic-metadata">

**Author:** [@DL\_men](https://discourse.vtk.org/u/DL_men)\
**Replies:** 5\
**Last updated:** [November 30, 2020, 1:14am UTC](https://discourse.vtk.org/t/how-about-interactor-using/4730 "2020-11-30T01:14:26Z")

</div>

vtk.vtkInteractorStyleRubberBandPick This interactor style allows the user to draw a rectangle in the render window by hitting ‘r’ .How can I do event(draw a rectangle) withou hitting ‘r’?

---

## [Link server side camera to local problems](https://discourse.vtk.org/t/link-server-side-camera-to-local-problems/4749)

<div class="topic-metadata">

**Author:** [@Francesc](https://discourse.vtk.org/u/Francesc)\
**Replies:** 1\
**Last updated:** [November 29, 2020, 12:34pm UTC](https://discourse.vtk.org/t/link-server-side-camera-to-local-problems/4749 "2020-11-29T12:34:25Z")

</div>

Hello, I am building an angular app. I am learning about it and using Paraview Lite as a reference. I am building it in Angular because I have more experience in Angular than in Vue. I reach a point which most of it s…

---

## [vtkCollection... am I using it well?](https://discourse.vtk.org/t/vtkcollection-am-i-using-it-well/4732)

<div class="topic-metadata">

**Author:** [@bistek](https://discourse.vtk.org/u/bistek)\
**Replies:** 11\
**Last updated:** [November 28, 2020, 2:51pm UTC](https://discourse.vtk.org/t/vtkcollection-am-i-using-it-well/4732 "2020-11-28T14:51:50Z")

</div>

Hello, I have a Python project where I use (visualize, model, interpolate, etc.) several VTK objects at the same time, including polydata, images, structured grids, etc. At the moment I am collecting all these objects i…

---

## [Generate surface mesh from label mask image volume](https://discourse.vtk.org/t/generate-surface-mesh-from-label-mask-image-volume/4720)

<div class="topic-metadata">

**Author:** [@isuruwi](https://discourse.vtk.org/u/isuruwi)\
**Replies:** 2\
**Last updated:** [November 28, 2020, 2:38am UTC](https://discourse.vtk.org/t/generate-surface-mesh-from-label-mask-image-volume/4720 "2020-11-28T02:38:19Z")

</div>

I have generated a segmentation mask for a CT volume and and saved it as a nifti format. This image volume consists of below set of categories. 0: Background (None of the following organs) 1: Liver 2: Bladder 3: Lung…

---

## [vtkPolyDataConnectivityFilter reverse](https://discourse.vtk.org/t/vtkpolydataconnectivityfilter-reverse/4744)

<div class="topic-metadata">

**Author:** [@EmileSonneveld](https://discourse.vtk.org/u/EmileSonneveld)\
**Replies:** 1\
**Last updated:** [November 27, 2020, 2:26pm UTC](https://discourse.vtk.org/t/vtkpolydataconnectivityfilter-reverse/4744 "2020-11-27T14:26:28Z")

</div>

Hi, I would like to select all clusters except for the one that is close to the SetClosestPoint. Is there away to get the clusters sorted on distance? I played with the following code, but did not find a good combinati…

---

## [How are world coordinates represented in the shader of VTK?](https://discourse.vtk.org/t/how-are-world-coordinates-represented-in-the-shader-of-vtk/4740)

<div class="topic-metadata">

**Author:** [@Jone7](https://discourse.vtk.org/u/Jone7)\
**Replies:** 1\
**Last updated:** [November 27, 2020, 12:22pm UTC](https://discourse.vtk.org/t/how-are-world-coordinates-represented-in-the-shader-of-vtk/4740 "2020-11-27T12:22:50Z")

</div>

Since I want to do some lighting calculations in the Shader, I need the world coordinates of the light source, camera, and vertex, but when I modify the Shader, it seems that I can only get the view coordinates.Is there …

---

## [How to solve the Line plot error?](https://discourse.vtk.org/t/how-to-solve-the-line-plot-error/4691)

<div class="topic-metadata">

**Author:** [@nia38](https://discourse.vtk.org/u/nia38)\
**Replies:** 7\
**Last updated:** [November 27, 2020, 11:40am UTC](https://discourse.vtk.org/t/how-to-solve-the-line-plot-error/4691 "2020-11-27T11:40:58Z")

</div>

I’m referring to an example of a line plot, and if the button is pressed with MFC, it’s printed on picture control. It works normally when the button is pressed for the first time, but if you plot it again, an error wil…

[Previous page](https://discourse.vtk.org/c/support/6.md?page=113)

[Next page](https://discourse.vtk.org/c/support/6.md?page=115)
