# Support

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

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

**Page:** 53

---

## [Usage of setFileVersion method](https://discourse.vtk.org/t/usage-of-setfileversion-method/10861)

<div class="topic-metadata">

**Author:** [@Ackhyon](https://discourse.vtk.org/u/Ackhyon)\
**Replies:** 3\
**Last updated:** [March 31, 2023, 7:06am UTC](https://discourse.vtk.org/t/usage-of-setfileversion-method/10861 "2023-03-31T07:06:37Z")

</div>

Hi there, First of all, thanks for providing this very useful toolkit! I have a question regarding the way to write legacy PolyData files at the old 4.2 format: I am trying to call the SetFileVersion method of the vtkD…

---

## [Compile and Installation of VTK 9.2.6 with CMake and Visual Studio](https://discourse.vtk.org/t/compile-and-installation-of-vtk-9-2-6-with-cmake-and-visual-studio/11065)

<div class="topic-metadata">

**Author:** [@mnekkach](https://discourse.vtk.org/u/mnekkach)\
**Replies:** 5\
**Last updated:** [March 30, 2023, 10:37pm UTC](https://discourse.vtk.org/t/compile-and-installation-of-vtk-9-2-6-with-cmake-and-visual-studio/11065 "2023-03-30T22:37:36Z")

</div>

Hello, I am trying to compile and install VTK 9.2.6 on Windows 10 using CMake 3.21.3 and Visual Studio 2019. I am using CMake to configure and generate the necessary files to build the project. I am modifying the CMAKE\_…

---

## [Contour plot of 2D array with inetegers or floats](https://discourse.vtk.org/t/contour-plot-of-2d-array-with-inetegers-or-floats/11086)

<div class="topic-metadata">

**Author:** [@Zolo](https://discourse.vtk.org/u/Zolo)\
**Replies:** 1\
**Last updated:** [March 30, 2023, 1:28pm UTC](https://discourse.vtk.org/t/contour-plot-of-2d-array-with-inetegers-or-floats/11086 "2023-03-30T13:28:58Z")

</div>

Hi there, I am trying to write a code snippet which will take a 2D array of integers or floats and create a 2D contour plot. The head slice example is relatively close to what I would like to achieve however I would lik…

---

## [How does the vtkplanewidget set the size of the arrow and control handle(the sphere)?](https://discourse.vtk.org/t/how-does-the-vtkplanewidget-set-the-size-of-the-arrow-and-control-handle-the-sphere/7737)

<div class="topic-metadata">

**Author:** [@wulicheng](https://discourse.vtk.org/u/wulicheng)\
**Replies:** 2\
**Last updated:** [March 30, 2023, 6:21am UTC](https://discourse.vtk.org/t/how-does-the-vtkplanewidget-set-the-size-of-the-arrow-and-control-handle-the-sphere/7737 "2023-03-30T06:21:31Z")

</div>

---

## [vtkImageViewer2 show image fit window](https://discourse.vtk.org/t/vtkimageviewer2-show-image-fit-window/11091)

<div class="topic-metadata">

**Author:** [@842034272](https://discourse.vtk.org/u/842034272)\
**Replies:** 0\
**Last updated:** [March 30, 2023, 3:01am UTC](https://discourse.vtk.org/t/vtkimageviewer2-show-image-fit-window/11091 "2023-03-30T03:01:11Z")

</div>

I use vtkImageViewer2 to display the image, but just open the image, it is always displayed very small, it looks bad

---

## [vtk: how to smooth surface?](https://discourse.vtk.org/t/vtk-how-to-smooth-surface/11084)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 4\
**Last updated:** [March 29, 2023, 4:53pm UTC](https://discourse.vtk.org/t/vtk-how-to-smooth-surface/11084 "2023-03-29T16:53:18Z")

</div>

I have a surface (vtkPolyData), and it looks like: The red color indicates some unsoomth mesh. Is it possible to smooth the unsmooth mesh? The automatic and semi-automatic is accepted. I have tried vtkWindowedSincP…

---

## [vtkcharxy with rectangles](https://discourse.vtk.org/t/vtkcharxy-with-rectangles/11026)

<div class="topic-metadata">

**Author:** [@antoine1](https://discourse.vtk.org/u/antoine1)\
**Replies:** 1\
**Last updated:** [March 27, 2023, 6:19pm UTC](https://discourse.vtk.org/t/vtkcharxy-with-rectangles/11026 "2023-03-27T18:19:01Z")

</div>

Hello, I have a plot on vtkcharXY and i have a qslider (from qt). the slider is a double slider ( or a range slider). The idea is the user can set the double slider to select a window on the plot. To show this window…

---

## [is there have an interface convert vtktransform to eulerangle?](https://discourse.vtk.org/t/is-there-have-an-interface-convert-vtktransform-to-eulerangle/11052)

<div class="topic-metadata">

**Author:** [@marlon.ma](https://discourse.vtk.org/u/marlon.ma)\
**Replies:** 1\
**Last updated:** [March 27, 2023, 1:02pm UTC](https://discourse.vtk.org/t/is-there-have-an-interface-convert-vtktransform-to-eulerangle/11052 "2023-03-27T13:02:21Z")

</div>

is there have an interface convert vtktransform to eulerangle?

---

## [Observer crash after double clicking](https://discourse.vtk.org/t/observer-crash-after-double-clicking/11046)

<div class="topic-metadata">

**Author:** [@Hamedo\_Esk](https://discourse.vtk.org/u/Hamedo_Esk)\
**Replies:** 1\
**Last updated:** [March 27, 2023, 12:40pm UTC](https://discourse.vtk.org/t/observer-crash-after-double-clicking/11046 "2023-03-27T12:40:31Z")

</div>

I made a simple app to track the number of clicks. Everything works fine and the number of clicks is printed as expected, but the observer stops working after performing double clicks. How can i solve this issue? from…

---

## [Why doesn't cell normal changed after cell points reversed?](https://discourse.vtk.org/t/why-doesnt-cell-normal-changed-after-cell-points-reversed/11042)

<div class="topic-metadata">

**Author:** [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)\
**Replies:** 3\
**Last updated:** [March 26, 2023, 11:52am UTC](https://discourse.vtk.org/t/why-doesnt-cell-normal-changed-after-cell-points-reversed/11042 "2023-03-26T11:52:14Z")

</div>

Hello,I have a cude.obj which has a cell with reversed normal like this: # Blender 3.4.1 # www.blender.org o Cube.001 v 1.000000 1.000000 -1.000000 v -1.000000 1.000000 -1.000000 v -1.000000 1.000000 1.000000 v 1.00000…

---

## [libvtkRenderingTk-9.2.so : No such file or directory](https://discourse.vtk.org/t/libvtkrenderingtk-9-2-so-no-such-file-or-directory/10994)

<div class="topic-metadata">

**Author:** [@Assia](https://discourse.vtk.org/u/Assia)\
**Replies:** 18\
**Last updated:** [March 25, 2023, 3:15pm UTC](https://discourse.vtk.org/t/libvtkrenderingtk-9-2-so-no-such-file-or-directory/10994 "2023-03-25T15:15:16Z")

</div>

Dear VTK developers, I am encountering an issue with the libvtkRenderingTk-9.2.so library file when using VTK with Python. Specifically, I am receiving the following error message: libvtkRenderingTk-9.2.so: cannot open…

---

## [Way to detect Shift + left button](https://discourse.vtk.org/t/way-to-detect-shift-left-button/11041)

<div class="topic-metadata">

**Author:** [@Kevin\_Sweeney](https://discourse.vtk.org/u/Kevin_Sweeney)\
**Replies:** 1\
**Last updated:** [March 24, 2023, 10:10pm UTC](https://discourse.vtk.org/t/way-to-detect-shift-left-button/11041 "2023-03-24T22:10:13Z")

</div>

From this: RenderWindowInteractor | vtk.js Is there a way to detect when the left mouse button has been clicked (onLeftButtonPress) and the shift (or other control button) is being held?

---

## [How to freeze an actor in the render and not rotate with the other actors.](https://discourse.vtk.org/t/how-to-freeze-an-actor-in-the-render-and-not-rotate-with-the-other-actors/5871)

<div class="topic-metadata">

**Author:** [@JAHDv](https://discourse.vtk.org/u/JAHDv)\
**Replies:** 6\
**Last updated:** [March 24, 2023, 12:50pm UTC](https://discourse.vtk.org/t/how-to-freeze-an-actor-in-the-render-and-not-rotate-with-the-other-actors/5871 "2023-03-24T12:50:52Z")

</div>

Hi, is there any mechanism to tell the render/Actor not to update the position of an actor inside the render when I rotate? For example, I have 8 sphere actors forming a cube (one sphere per vertex) when I rotate the sc…

---

## [About panning when use Interactor Style Trackball Camera](https://discourse.vtk.org/t/about-panning-when-use-interactor-style-trackball-camera/11031)

<div class="topic-metadata">

**Author:** [@dbtruong](https://discourse.vtk.org/u/dbtruong)\
**Replies:** 0\
**Last updated:** [March 24, 2023, 3:28am UTC](https://discourse.vtk.org/t/about-panning-when-use-interactor-style-trackball-camera/11031 "2023-03-24T03:28:38Z")

</div>

Hello How can I rotate a cone after panning it? I was doing it, but when I rotated it focal point of the camera changed so it wasn’t normal Thanks.

---

## [Implementing Shadows](https://discourse.vtk.org/t/implementing-shadows/4756)

<div class="topic-metadata">

**Author:** [@Darshan\_K](https://discourse.vtk.org/u/Darshan_K)\
**Replies:** 1\
**Last updated:** [March 23, 2023, 10:24am UTC](https://discourse.vtk.org/t/implementing-shadows/4756 "2023-03-23T10:24:40Z")

</div>

Hello, I’m currently working on a project, and I’m facing some issues with lighting. I have started with this minimalist program and work on it: import vtk sphere\_1 = vtk.vtkSphereSource() sphere\_1.SetCenter(25, 0, 0)…

---

## [Antialiasing Error in Setting Opacity of vtkTexturedSphereSource](https://discourse.vtk.org/t/antialiasing-error-in-setting-opacity-of-vtktexturedspheresource/5560)

<div class="topic-metadata">

**Author:** [@EchoVan](https://discourse.vtk.org/u/EchoVan)\
**Replies:** 2\
**Last updated:** [March 23, 2023, 10:10am UTC](https://discourse.vtk.org/t/antialiasing-error-in-setting-opacity-of-vtktexturedspheresource/5560 "2023-03-23T10:10:13Z")

</div>

I try to visualize some 3d scatter using vtkTexturedSphereSource. Everything seems well when I using RenderWindow.SetMultiSamples(12) to anti-aliasing as the users-guide commend. But when I set opacity by RenderWindow.Se…

---

## [Example (or code snippet) for Matplotlib from a C++ application?](https://discourse.vtk.org/t/example-or-code-snippet-for-matplotlib-from-a-c-application/2126)

<div class="topic-metadata">

**Author:** [@cesss](https://discourse.vtk.org/u/cesss)\
**Replies:** 6\
**Last updated:** [March 22, 2023, 5:52am UTC](https://discourse.vtk.org/t/example-or-code-snippet-for-matplotlib-from-a-c-application/2126 "2023-03-22T05:52:58Z")

</div>

If I’m reading it correctly, it is possible for a C++ application to “call” the Matplotlib functionality included in VTK, transparently hiding the Python “plumbing” implied. Is there any code snippet showing, for exampl…

---

## [modules.json and ChartsCore](https://discourse.vtk.org/t/modules-json-and-chartscore/11016)

<div class="topic-metadata">

**Author:** [@Paul\_Harris](https://discourse.vtk.org/u/Paul_Harris)\
**Replies:** 1\
**Last updated:** [March 22, 2023, 4:22am UTC](https://discourse.vtk.org/t/modules-json-and-chartscore/11016 "2023-03-22T04:22:01Z")

</div>

Hi, I noticed in my build folder for 9.2.5 that there is no mention of the ChartsCore module. Is the modules.json supposed to list ALL modules possible? Or does its content depend on the flags in CMake? Or something …

---

## [Questions about layer of vtkRenderer](https://discourse.vtk.org/t/questions-about-layer-of-vtkrenderer/10837)

<div class="topic-metadata">

**Author:** [@tong\_yang](https://discourse.vtk.org/u/tong_yang)\
**Replies:** 9\
**Last updated:** [March 21, 2023, 5:30am UTC](https://discourse.vtk.org/t/questions-about-layer-of-vtkrenderer/10837 "2023-03-21T05:30:48Z")

</div>

Hello, I have a question about the layer of the vtkRenderer. I set two layers/renders for vtkRenderWindow, when the two renders/layers display extent are different, the display is annormal. as shown here. The white …

---

## [ShadowLightsDemo - extents of shadows, light frustum, darkened areas](https://discourse.vtk.org/t/shadowlightsdemo-extents-of-shadows-light-frustum-darkened-areas/3410)

<div class="topic-metadata">

**Author:** [@michele-arrival](https://discourse.vtk.org/u/michele-arrival)\
**Replies:** 3\
**Last updated:** [March 21, 2023, 3:33am UTC](https://discourse.vtk.org/t/shadowlightsdemo-extents-of-shadows-light-frustum-darkened-areas/3410 "2023-03-21T03:33:02Z")

</div>

Hi all, this is my first post in this forum. Long post ahead, because I’ve been trying to learn how lights and shadows work in VTK and i’ve encountered some situations that i cannot explain. I’ve expressed my concerns …

---

## [Python Planes Tutorial Error and Resolution](https://discourse.vtk.org/t/python-planes-tutorial-error-and-resolution/11009)

<div class="topic-metadata">

**Author:** [@JimCAmato](https://discourse.vtk.org/u/JimCAmato)\
**Replies:** 4\
**Last updated:** [March 20, 2023, 10:16pm UTC](https://discourse.vtk.org/t/python-planes-tutorial-error-and-resolution/11009 "2023-03-20T22:16:27Z")

</div>

While working through the python “Planes” tutorial, several errors show up in the console and captions do not appear in the render window. I found that adding import vtkmodules.vtkRenderingFreeType resolves the issue. I …

---

## [How to speed rendering of histogram?](https://discourse.vtk.org/t/how-to-speed-rendering-of-histogram/11006)

<div class="topic-metadata">

**Author:** [@antoine1](https://discourse.vtk.org/u/antoine1)\
**Replies:** 8\
**Last updated:** [March 20, 2023, 4:44pm UTC](https://discourse.vtk.org/t/how-to-speed-rendering-of-histogram/11006 "2023-03-20T16:44:08Z")

</div>

hello, I’m beginner and i just code my first vtk plot link with QT. This plot should represent the histogram of an image. So the input data will just be a std::vector with a size of 65 536. The problem that i encount…

---

## [vtk9.2 vtkOpenFOAMReader Failed to read openFOAM file.](https://discourse.vtk.org/t/vtk9-2-vtkopenfoamreader-failed-to-read-openfoam-file/10987)

<div class="topic-metadata">

**Author:** [@w7v](https://discourse.vtk.org/u/w7v)\
**Replies:** 1\
**Last updated:** [March 20, 2023, 2:44am UTC](https://discourse.vtk.org/t/vtk9-2-vtkopenfoamreader-failed-to-read-openfoam-file/10987 "2023-03-20T02:44:55Z")

</div>

An error occurred when reading openFOAM files in versions after 9.2: corrupted size vs. prev\_size. Crash at line 365 of the vtkStaticCellLinksTemplate.txx: numPts value is 0. In version 9.1 it was successful.

---

## [Why are the cells with reversed normal always black even the Backface property got set?](https://discourse.vtk.org/t/why-are-the-cells-with-reversed-normal-always-black-even-the-backface-property-got-set/11003)

<div class="topic-metadata">

**Author:** [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)\
**Replies:** 2\
**Last updated:** [March 19, 2023, 2:36pm UTC](https://discourse.vtk.org/t/why-are-the-cells-with-reversed-normal-always-black-even-the-backface-property-got-set/11003 "2023-03-19T14:36:06Z")

</div>

Hello,I need to set the one face of the cell with reversed normal blue,and the another face to red.Test code like this: #include \<vtkVersion.h\> #include \<vtkNew.h\> #include \<vtkPolyDataMapper.h\> #include \<vtkProperty.h\>…

---

## [Cmake: impossible to open .h files](https://discourse.vtk.org/t/cmake-impossible-to-open-h-files/10995)

<div class="topic-metadata">

**Author:** [@antoine1](https://discourse.vtk.org/u/antoine1)\
**Replies:** 2\
**Last updated:** [March 19, 2023, 12:26am UTC](https://discourse.vtk.org/t/cmake-impossible-to-open-h-files/10995 "2023-03-19T00:26:47Z")

</div>

Hello, I tried to include vtk to code and to use it but it’s look like cmake was not able to find .h files. i include VTK using this cmake code: set(VTK\_DIR "C:/vtk/VTK-9.2.6-install/lib/cmake/vtk-9.2/") function(add\_…

---

## [How to transparently render only the background](https://discourse.vtk.org/t/how-to-transparently-render-only-the-background/10998)

<div class="topic-metadata">

**Author:** [@shanzeipan](https://discourse.vtk.org/u/shanzeipan)\
**Replies:** 2\
**Last updated:** [March 18, 2023, 7:40am UTC](https://discourse.vtk.org/t/how-to-transparently-render-only-the-background/10998 "2023-03-18T07:40:31Z")

</div>

I’m trying to use vtk on pyqt5. I just need to display the model in the background of my window. The background rendered by Renerer is too ugly. Can I make the background of Renerer transparent?

---

## [Distance beteween polydata ojects](https://discourse.vtk.org/t/distance-beteween-polydata-ojects/7159)

<div class="topic-metadata">

**Author:** [@peterneher](https://discourse.vtk.org/u/peterneher)\
**Replies:** 13\
**Last updated:** [March 17, 2023, 4:32pm UTC](https://discourse.vtk.org/t/distance-beteween-polydata-ojects/7159 "2023-03-17T16:32:42Z")

</div>

Hi everyone. Is there a filter to calculate the smallest distance between to polydata objects? Best, Peter

---

## [Which coordinates of SetNormal and SetOrigin of 2 vtkPlanes I must set from points drawn via vtkPolyLineWidget?](https://discourse.vtk.org/t/which-coordinates-of-setnormal-and-setorigin-of-2-vtkplanes-i-must-set-from-points-drawn-via-vtkpolylinewidget/10960)

<div class="topic-metadata">

**Author:** [@BJladika](https://discourse.vtk.org/u/BJladika)\
**Replies:** 1\
**Last updated:** [March 17, 2023, 1:33am UTC](https://discourse.vtk.org/t/which-coordinates-of-setnormal-and-setorigin-of-2-vtkplanes-i-must-set-from-points-drawn-via-vtkpolylinewidget/10960 "2023-03-17T01:33:14Z")

</div>

I’ve a Volume with mapper vtkGPUVolumeRayCastMapper and vtkFixedPointVolumeRayCastMapper and I wanted to make to try to make a basic scissors (scalpel), decided to start with vtkPolyLineWidget and vtkPolyLineRepresentati…

---

## [Problem with cmake FetchContent](https://discourse.vtk.org/t/problem-with-cmake-fetchcontent/10967)

<div class="topic-metadata">

**Author:** [@BlackCatRuelle](https://discourse.vtk.org/u/BlackCatRuelle)\
**Replies:** 1\
**Last updated:** [March 16, 2023, 6:03pm UTC](https://discourse.vtk.org/t/problem-with-cmake-fetchcontent/10967 "2023-03-16T18:03:14Z")

</div>

Hi, I am trying to cmake’s FetchContent to build VTK with my project. Cmake failed to configure the project. I tried to set the VTK\_DIR to the VTK source dir and it did work either. Here is my CMakeLists.txt file. Could …

---

## [Is it possible to set the different color for front/back face of a cell?](https://discourse.vtk.org/t/is-it-possible-to-set-the-different-color-for-front-back-face-of-a-cell/10947)

<div class="topic-metadata">

**Author:** [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)\
**Replies:** 5\
**Last updated:** [March 16, 2023, 4:29pm UTC](https://discourse.vtk.org/t/is-it-possible-to-set-the-different-color-for-front-back-face-of-a-cell/10947 "2023-03-16T16:29:17Z")

</div>

Hello,we want to use colors to represent the cell normal direction.For example,on the same cell(or ploy),we want to set one face to blue if this face has cell normal towards to camera,and set the another face to red. Ho…

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

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