# Support

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

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

**Page:** 82

---

## [VTK\_MODULE\_INIT in 9.0.1 ?](https://discourse.vtk.org/t/vtk-module-init-in-9-0-1/5632)

<div class="topic-metadata">

**Author:** [@langer](https://discourse.vtk.org/u/langer)\
**Replies:** 33\
**Last updated:** [March 4, 2022, 11:29pm UTC](https://discourse.vtk.org/t/vtk-module-init-in-9-0-1/5632 "2022-03-04T23:29:34Z")

</div>

In a C++ program that links to VTK, using VTK 8.2 the library was initialized it with #include \<vtkAutoInit.h\> VTK\_MODULE\_INIT(vtkRenderingOpenGL2); VTK\_MODULE\_INIT(vtkRenderingContextOpenGL2); \[etc\] Does that still w…

---

## [rendering problem vtk 8.2 from centos 7 and tesla graphic card](https://discourse.vtk.org/t/rendering-problem-vtk-8-2-from-centos-7-and-tesla-graphic-card/7808)

<div class="topic-metadata">

**Author:** [@Jiteaured](https://discourse.vtk.org/u/Jiteaured)\
**Replies:** 13\
**Last updated:** [March 4, 2022, 4:52pm UTC](https://discourse.vtk.org/t/rendering-problem-vtk-8-2-from-centos-7-and-tesla-graphic-card/7808 "2022-03-04T16:52:55Z")

</div>

Dear All, I use vtk rendering filter to create images from some views. The images are ok on fedora. But on centos 7 and tesla graphic card, after the 2nd images, a crash appear. (Note: the 2 images are ok but I should…

---

## [How to convert 3D numpy array to vtk and save the .vtk file?](https://discourse.vtk.org/t/how-to-convert-3d-numpy-array-to-vtk-and-save-the-vtk-file/7979)

<div class="topic-metadata">

**Author:** [@firminshao25](https://discourse.vtk.org/u/firminshao25)\
**Replies:** 0\
**Last updated:** [March 4, 2022, 8:31am UTC](https://discourse.vtk.org/t/how-to-convert-3d-numpy-array-to-vtk-and-save-the-vtk-file/7979 "2022-03-04T08:31:52Z")

</div>

Hi all,I am new here.Sorry for my little knowledge about VTK. I have a scalar volume (3D numpy array) I want to add some information describing the image and then save it as a .vtk file as follows: I searched s…

---

## [windows MinGW compiler question with Qt and VTK](https://discourse.vtk.org/t/windows-mingw-compiler-question-with-qt-and-vtk/7973)

<div class="topic-metadata">

**Author:** [@S-Explorer](https://discourse.vtk.org/u/S-Explorer)\
**Replies:** 1\
**Last updated:** [March 4, 2022, 7:28am UTC](https://discourse.vtk.org/t/windows-mingw-compiler-question-with-qt-and-vtk/7973 "2022-03-04T07:28:39Z")

</div>

About the problem of minGW compiler on windows (Qt & VTK) edtion: qt:6.2.3 vtk:9.1.0 1. in the begin choose the button BUILD\_SHARED\_LIBS ,when i start compiling, which will generate a lot of inline function erro…

---

## [Locate carotid.vtk and vecAnim1.vtk from AnimateVectors.cxx](https://discourse.vtk.org/t/locate-carotid-vtk-and-vecanim1-vtk-from-animatevectors-cxx/7977)

<div class="topic-metadata">

**Author:** [@george66s](https://discourse.vtk.org/u/george66s)\
**Replies:** 1\
**Last updated:** [March 4, 2022, 6:28am UTC](https://discourse.vtk.org/t/locate-carotid-vtk-and-vecanim1-vtk-from-animatevectors-cxx/7977 "2022-03-04T06:28:09Z")

</div>

Hi, Can anybody help to locate argument files mentioned in the example AnimateVectors.cxx? Thanks! George

---

## [Change opacity of a single atom in vtkMoleculeMapper](https://discourse.vtk.org/t/change-opacity-of-a-single-atom-in-vtkmoleculemapper/1612)

<div class="topic-metadata">

**Author:** [@Jellby](https://discourse.vtk.org/u/Jellby)\
**Replies:** 5\
**Last updated:** [March 4, 2022, 5:12am UTC](https://discourse.vtk.org/t/change-opacity-of-a-single-atom-in-vtkmoleculemapper/1612 "2022-03-04T05:12:26Z")

</div>

I’m using vtkMolecule, with vtkSimpleBondPerceiver and vtkMoleculeMapper to draw simple molecules. Everything works fine, but I would like to change the opacity (or alpha) of a single or a few selected atoms (and associa…

---

## [Documentation install for Utilities/Doxygen problem wiht 9.1.0](https://discourse.vtk.org/t/documentation-install-for-utilities-doxygen-problem-wiht-9-1-0/7955)

<div class="topic-metadata">

**Author:** [@BlueKnight7](https://discourse.vtk.org/u/BlueKnight7)\
**Replies:** 6\
**Last updated:** [March 3, 2022, 10:20pm UTC](https://discourse.vtk.org/t/documentation-install-for-utilities-doxygen-problem-wiht-9-1-0/7955 "2022-03-03T22:20:09Z")

</div>

I built Vtk version 9.1.0 with Docs on. When I try to do the “make install” everything up to the following point installs, then the install breaks: CMake Error at Utilities/Doxygen/cmake\_install.cmake:80 (file): file …

---

## [VTK grid format/ Boundaries of mesh](https://discourse.vtk.org/t/vtk-grid-format-boundaries-of-mesh/7966)

<div class="topic-metadata">

**Author:** [@omarElsayed](https://discourse.vtk.org/u/omarElsayed)\
**Replies:** 0\
**Last updated:** [March 3, 2022, 12:11pm UTC](https://discourse.vtk.org/t/vtk-grid-format-boundaries-of-mesh/7966 "2022-03-03T12:11:14Z")

</div>

I am trying to create a structured grid using vtk in python. The process is straight forward : create points (as numpy array). create cells as list of indices from the points list. How to add boundaries to the m…

---

## [How to show a polyline with arbitrary width and nice joins between the nodes?](https://discourse.vtk.org/t/how-to-show-a-polyline-with-arbitrary-width-and-nice-joins-between-the-nodes/3316)

<div class="topic-metadata">

**Author:** [@normanius](https://discourse.vtk.org/u/normanius)\
**Replies:** 5\
**Last updated:** [March 3, 2022, 12:07pm UTC](https://discourse.vtk.org/t/how-to-show-a-polyline-with-arbitrary-width-and-nice-joins-between-the-nodes/3316 "2022-03-03T12:07:38Z")

</div>

Hi Have a look at the sample below. I’ve got a polyline and want to show that line with an arbitrary width. In the sample, I essentially follow this example to achieve this, for a polyline that I extracted with vtkFe…

---

## [VTKinformation with vector values](https://discourse.vtk.org/t/vtkinformation-with-vector-values/7965)

<div class="topic-metadata">

**Author:** [@naffrancois](https://discourse.vtk.org/u/naffrancois)\
**Replies:** 2\
**Last updated:** [March 3, 2022, 11:57am UTC](https://discourse.vtk.org/t/vtkinformation-with-vector-values/7965 "2022-03-03T11:57:24Z")

</div>

Hello, Could somebody help me using vtkInformationDoubleVectorKey ? I compiled the example given here: https://kitware.github.io/vtk-examples/site/Cxx/PolyData/AttachAttributes/ , works as expected. However I do not qu…

---

## [External vtk 9.0 class with python wrapping (vtkWrapHierarchy)](https://discourse.vtk.org/t/external-vtk-9-0-class-with-python-wrapping-vtkwraphierarchy/4996)

<div class="topic-metadata">

**Author:** [@EMalikova](https://discourse.vtk.org/u/EMalikova)\
**Replies:** 8\
**Last updated:** [March 3, 2022, 9:57am UTC](https://discourse.vtk.org/t/external-vtk-9-0-class-with-python-wrapping-vtkwraphierarchy/4996 "2022-03-03T09:57:39Z")

</div>

Dear vtk users, I am trying to implement the python bindings for vtk class with vtkWrapHierarchy. I use vtk 9.0, compiled from scratch with wrappings tools, python bindings and etc. features enabled. For the first line…

---

## [Delaunay triangulation](https://discourse.vtk.org/t/delaunay-triangulation/5817)

<div class="topic-metadata">

**Author:** [@jamesnoel](https://discourse.vtk.org/u/jamesnoel)\
**Replies:** 6\
**Last updated:** [March 2, 2022, 4:06pm UTC](https://discourse.vtk.org/t/delaunay-triangulation/5817 "2022-03-02T16:06:20Z")

</div>

I have created multiple parallel splines and would like to create a surface delaunay triangulation inbetween points of neighbouring splines. Now the issue is the delaunay also creates triangles between points on the same…

---

## [Compiling VTK 9.1.0 in MSYS2/MinGW64 with gcc 8.3.0 and 11.2.0: error in debug mode.](https://discourse.vtk.org/t/compiling-vtk-9-1-0-in-msys2-mingw64-with-gcc-8-3-0-and-11-2-0-error-in-debug-mode/7940)

<div class="topic-metadata">

**Author:** [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)\
**Replies:** 2\
**Last updated:** [March 2, 2022, 2:13pm UTC](https://discourse.vtk.org/t/compiling-vtk-9-1-0-in-msys2-mingw64-with-gcc-8-3-0-and-11-2-0-error-in-debug-mode/7940 "2022-03-02T14:13:24Z")

</div>

Greetings, I’m getting this error when compiling VTK 9.1.0 in debug mode (release mode compiles just fine): CMakeFiles\\IOLegacy.dir/objects.a(vtkCompositeDataReader.cxx.obj): In function \`vtkCompositeDataReader::ReadCo…

---

## [Method to generate vector using camera location as origin from mouse click](https://discourse.vtk.org/t/method-to-generate-vector-using-camera-location-as-origin-from-mouse-click/7943)

<div class="topic-metadata">

**Author:** [@Yavol\_Foxxen](https://discourse.vtk.org/u/Yavol_Foxxen)\
**Replies:** 1\
**Last updated:** [March 2, 2022, 6:06am UTC](https://discourse.vtk.org/t/method-to-generate-vector-using-camera-location-as-origin-from-mouse-click/7943 "2022-03-02T06:06:21Z")

</div>

i am familiar with getting camera position in world.(x,y,z) but getting (i,j,k) vector based on mouse click evades me. trying to be able to click on an arbitrary point on a sphere defined with a center and a radius. the …

---

## [How to save the VTK created components in memory?](https://discourse.vtk.org/t/how-to-save-the-vtk-created-components-in-memory/7944)

<div class="topic-metadata">

**Author:** [@rockydut](https://discourse.vtk.org/u/rockydut)\
**Replies:** 1\
**Last updated:** [March 1, 2022, 11:35am UTC](https://discourse.vtk.org/t/how-to-save-the-vtk-created-components-in-memory/7944 "2022-03-01T11:35:21Z")

</div>

I want to use VTK to create many components, such as cylinder, polydata, unstructured grid and so on. Of course, these components are easy to be created by VTK, but how to save these different types of components in memo…

---

## [no libvtkRenderingTk with pip install vtk](https://discourse.vtk.org/t/no-libvtkrenderingtk-with-pip-install-vtk/5613)

<div class="topic-metadata">

**Author:** [@itan](https://discourse.vtk.org/u/itan)\
**Replies:** 18\
**Last updated:** [March 1, 2022, 6:18am UTC](https://discourse.vtk.org/t/no-libvtkrenderingtk-with-pip-install-vtk/5613 "2022-03-01T06:18:07Z")

</div>

Hi, I am on ubuntu 20.04 and trying to build a small GUI with Python 3.8.5, VTK 9.0.1 and Tkinter. Using VTK and Tkinter separately both work well, but I am having difficulties combining them. I have tried it with a vtk…

---

## [Compute the air zone or negative mesh](https://discourse.vtk.org/t/compute-the-air-zone-or-negative-mesh/7915)

<div class="topic-metadata">

**Author:** [@DFlyer](https://discourse.vtk.org/u/DFlyer)\
**Replies:** 5\
**Last updated:** [March 1, 2022, 12:55am UTC](https://discourse.vtk.org/t/compute-the-air-zone-or-negative-mesh/7915 "2022-03-01T00:55:50Z")

</div>

I have a varying height mesh hovering over a structured mesh (a plane). I need a mesh/surface that crops the air zone between them. Attached a figure for reference. Method tried : Create lines from the plane and use…

---

## [Shared libraries can't be redistributed since they refer to their build path](https://discourse.vtk.org/t/shared-libraries-cant-be-redistributed-since-they-refer-to-their-build-path/7892)

<div class="topic-metadata">

**Author:** [@Martin3d](https://discourse.vtk.org/u/Martin3d)\
**Replies:** 2\
**Last updated:** [February 28, 2022, 10:10am UTC](https://discourse.vtk.org/t/shared-libraries-cant-be-redistributed-since-they-refer-to-their-build-path/7892 "2022-02-28T10:10:21Z")

</div>

Hi everyone, I am building VTK 9.1 for Java for few platforms as I could not find VTK java build on CDash (I hope I am not wrong). I make this open and available for download to anyone. My problem is that I recently no…

---

## [Re-close the surface of combined meshs](https://discourse.vtk.org/t/re-close-the-surface-of-combined-meshs/7928)

<div class="topic-metadata">

**Author:** [@syj](https://discourse.vtk.org/u/syj)\
**Replies:** 0\
**Last updated:** [February 28, 2022, 7:45am UTC](https://discourse.vtk.org/t/re-close-the-surface-of-combined-meshs/7928 "2022-02-28T07:45:04Z")

</div>

Hi guys, I’m trying to do a clip on any closed mesh using a sphere, and get a closed mesh after clip. And here is my try: clip the mesh using vtk.vtkClipPolyData() with a sphere get the sphere polys inside the to-be-…

---

## [Disable caption widget anchor point picking and dragging](https://discourse.vtk.org/t/disable-caption-widget-anchor-point-picking-and-dragging/7883)

<div class="topic-metadata">

**Author:** [@Kent](https://discourse.vtk.org/u/Kent)\
**Replies:** 4\
**Last updated:** [February 25, 2022, 4:11pm UTC](https://discourse.vtk.org/t/disable-caption-widget-anchor-point-picking-and-dragging/7883 "2022-02-25T16:11:23Z")

</div>

Hi, I am trying to disable anchor point picking and dragging for a caption widget. I found this article on stack overflow: The responses seem to indicate that the proposed solutions do not necessarily work. Is ther…

---

## [vtkPlotLine wrong width visualization](https://discourse.vtk.org/t/vtkplotline-wrong-width-visualization/7924)

<div class="topic-metadata">

**Author:** [@Mezitor](https://discourse.vtk.org/u/Mezitor)\
**Replies:** 0\
**Last updated:** [February 25, 2022, 3:00pm UTC](https://discourse.vtk.org/t/vtkplotline-wrong-width-visualization/7924 "2022-02-25T15:00:35Z")

</div>

Hello! I am trying to visualize a 2D plot. Y range = 3790, step = 0.1 And I need plot to be thicker. But for some reason when m\_Width = 1 plot looks great, but when I’m starting to increase width, it’s becoming someth…

---

## [Add points to polyline](https://discourse.vtk.org/t/add-points-to-polyline/7914)

<div class="topic-metadata">

**Author:** [@Julienchz](https://discourse.vtk.org/u/Julienchz)\
**Replies:** 5\
**Last updated:** [February 25, 2022, 2:37pm UTC](https://discourse.vtk.org/t/add-points-to-polyline/7914 "2022-02-25T14:37:56Z")

</div>

Hello, I have a vtkPoints and a vtkPolyline. And I would like to add a point to my vtkPoints with the points connected by lines. I manage to do it at initialization but when I am trying to do it later, it doesn’t work. …

---

## [vtkXMLPUnstructuredGridWriter.h is missing](https://discourse.vtk.org/t/vtkxmlpunstructuredgridwriter-h-is-missing/7922)

<div class="topic-metadata">

**Author:** [@Marshdweller](https://discourse.vtk.org/u/Marshdweller)\
**Replies:** 3\
**Last updated:** [February 25, 2022, 1:28pm UTC](https://discourse.vtk.org/t/vtkxmlpunstructuredgridwriter-h-is-missing/7922 "2022-02-25T13:28:45Z")

</div>

I am trying to link an existing software to VTK9.1, and keep getting a compile-time error “vtkXMLPUnstructuredGridWriter.h not found”. It is indeed missing from the …/include directory, although vtkXMLPUnstructuredGridRe…

---

## [Crash during offscreen rendering of QVTKNativeWidget window](https://discourse.vtk.org/t/crash-during-offscreen-rendering-of-qvtknativewidget-window/7899)

<div class="topic-metadata">

**Author:** [@andreasbuykx](https://discourse.vtk.org/u/andreasbuykx)\
**Replies:** 1\
**Last updated:** [February 24, 2022, 4:19pm UTC](https://discourse.vtk.org/t/crash-during-offscreen-rendering-of-qvtknativewidget-window/7899 "2022-02-24T16:19:36Z")

</div>

Our application gives opengl errors when making offscreen images of the QVTKNativeWidget. Saving images uses a second offscreen render window, because we want the image to have a different screen size than the widget’s …

---

## [Using VTK with unity for reading .VTU files but not Visualizing. Mac OS](https://discourse.vtk.org/t/using-vtk-with-unity-for-reading-vtu-files-but-not-visualizing-mac-os/7894)

<div class="topic-metadata">

**Author:** [@Saquan\_Anthony](https://discourse.vtk.org/u/Saquan_Anthony)\
**Replies:** 4\
**Last updated:** [February 24, 2022, 2:20pm UTC](https://discourse.vtk.org/t/using-vtk-with-unity-for-reading-vtu-files-but-not-visualizing-mac-os/7894 "2022-02-24T14:20:56Z")

</div>

Hello, Working on a project in Unity and looking to be able to read and visualize VTU files that are compressed with “vtkZLibDataCompressor” and use a binary format for the byte information. Currently I can read and vi…

---

## [How to calculate position in MPR?](https://discourse.vtk.org/t/how-to-calculate-position-in-mpr/7909)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 0\
**Last updated:** [February 24, 2022, 7:23am UTC](https://discourse.vtk.org/t/how-to-calculate-position-in-mpr/7909 "2022-02-24T07:23:46Z")

</div>

I am implementing MPR (multiplanar reformation) in my project. I have finish all the calculation except the position. For example, the RadiAnt display position as: I understand the charact of R/L/A/P/S/I as: R: righ…

---

## [Can not find vtkVolumeRayCastMIPFunction in vtk 9.1](https://discourse.vtk.org/t/can-not-find-vtkvolumeraycastmipfunction-in-vtk-9-1/7908)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 0\
**Last updated:** [February 24, 2022, 6:35am UTC](https://discourse.vtk.org/t/can-not-find-vtkvolumeraycastmipfunction-in-vtk-9-1/7908 "2022-02-24T06:35:21Z")

</div>

I want to implement maximum intensity projection in my project, and vtkVolumeRayCastMIPFunction is what I want. However, I can not find it in vtk 9.1. Is there any method can replace vtkVolumeRayCastMIPFunction? Or how c…

---

## [CubeAxesActor Label Format](https://discourse.vtk.org/t/cubeaxesactor-label-format/7097)

<div class="topic-metadata">

**Author:** [@BastianJuelich](https://discourse.vtk.org/u/BastianJuelich)\
**Replies:** 2\
**Last updated:** [February 23, 2022, 10:28am UTC](https://discourse.vtk.org/t/cubeaxesactor-label-format/7097 "2022-02-23T10:28:58Z")

</div>

Hey all, i am trying to set the Label Format to only int, not scientific notation like shown in the attached picture: I tried: cube\_axes\_actor.SetXLabelFormat("%-#5d") but this doesnt change anything. Does anyone …

---

## [NEED help~ An error in linux](https://discourse.vtk.org/t/need-help-an-error-in-linux/7838)

<div class="topic-metadata">

**Author:** [@Clifford](https://discourse.vtk.org/u/Clifford)\
**Replies:** 5\
**Last updated:** [February 23, 2022, 8:45am UTC](https://discourse.vtk.org/t/need-help-an-error-in-linux/7838 "2022-02-23T08:45:16Z")

</div>

When I run a python program (use vtk) in my pc, it works successfully, however, when I post it on my server then comes with this error, does anybody knows how to fix it? Thanks so much! I truly have no idea with this. …

---

## [Enabling/disabling filters in a pipeline](https://discourse.vtk.org/t/enabling-disabling-filters-in-a-pipeline/7889)

<div class="topic-metadata">

**Author:** [@sboogert](https://discourse.vtk.org/u/sboogert)\
**Replies:** 1\
**Last updated:** [February 22, 2022, 2:35pm UTC](https://discourse.vtk.org/t/enabling-disabling-filters-in-a-pipeline/7889 "2022-02-22T14:35:17Z")

</div>

I have an application (Geant4) where I would like to give users the ability to enable or disable filters in a pipeline. For example polydata → clean → triangle → normal → feature → … Is there a simple way to disable th…

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

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