# Support

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

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

**Page:** 75

---

## [How to write a 2d image into a vtk file?](https://discourse.vtk.org/t/how-to-write-a-2d-image-into-a-vtk-file/8666)

<div class="topic-metadata">

**Author:** [@Clifford](https://discourse.vtk.org/u/Clifford)\
**Replies:** 5\
**Last updated:** [June 9, 2022, 11:16am UTC](https://discourse.vtk.org/t/how-to-write-a-2d-image-into-a-vtk-file/8666 "2022-06-09T11:16:43Z")

</div>

I use matplotlib to draw my results, and it looks like: Is there any way to write them into a .vtk file and looks like a 3D graph?

---

## [Adding Text to a vtkchartXY](https://discourse.vtk.org/t/adding-text-to-a-vtkchartxy/5156)

<div class="topic-metadata">

**Author:** [@sigigastelum](https://discourse.vtk.org/u/sigigastelum)\
**Replies:** 1\
**Last updated:** [June 9, 2022, 6:27am UTC](https://discourse.vtk.org/t/adding-text-to-a-vtkchartxy/5156 "2022-06-09T06:27:49Z")

</div>

Hello everyone, I am brand new to using VTK and I am interested in it’s 2D plotting capabilities. I am running the scatterplot example: https://lorensen.github.io/VTKExamples/site/Cxx/Plotting/ScatterPlot/ Everything …

---

## [A faster way to get ray intersection result](https://discourse.vtk.org/t/a-faster-way-to-get-ray-intersection-result/8387)

<div class="topic-metadata">

**Author:** [@veltia](https://discourse.vtk.org/u/veltia)\
**Replies:** 6\
**Last updated:** [June 9, 2022, 3:16am UTC](https://discourse.vtk.org/t/a-faster-way-to-get-ray-intersection-result/8387 "2022-06-09T03:16:45Z")

</div>

Hi all, I wanted to get the coordinate rersult of the ray intersection with a polydata/actor I tried with vtkOBBTree and vtkModifiedBSPTree, I could get the correct result coordinate with both, but they seem take too l…

---

## [vtk How to dynamic input character?](https://discourse.vtk.org/t/vtk-how-to-dynamic-input-character/8684)

<div class="topic-metadata">

**Author:** [@wulicheng](https://discourse.vtk.org/u/wulicheng)\
**Replies:** 0\
**Last updated:** [June 9, 2022, 2:55am UTC](https://discourse.vtk.org/t/vtk-how-to-dynamic-input-character/8684 "2022-06-09T02:55:05Z")

</div>

like the title, I want to input some annotation on the slicer of the vtkImageData. But I do not know how to do?

---

## [Problem updating 3D scene when data changes](https://discourse.vtk.org/t/problem-updating-3d-scene-when-data-changes/8672)

<div class="topic-metadata">

**Author:** [@whereismymoney](https://discourse.vtk.org/u/whereismymoney)\
**Replies:** 2\
**Last updated:** [June 8, 2022, 9:33pm UTC](https://discourse.vtk.org/t/problem-updating-3d-scene-when-data-changes/8672 "2022-06-08T21:33:21Z")

</div>

Hello we are migrating from VTK 6.0.0 to VTK 8.2.0, and encountering some problems. We have found that some problems can be fixed like this: renderer-\>RemoveActor(act); act-\>GetMapper()-\>Update(); renderer-\>AddActor(…

---

## [issue with vtkOpenGLRenderWindow on linux with vtk=9.1](https://discourse.vtk.org/t/issue-with-vtkopenglrenderwindow-on-linux-with-vtk-9-1/8576)

<div class="topic-metadata">

**Author:** [@lauramurgatroyd](https://discourse.vtk.org/u/lauramurgatroyd)\
**Replies:** 4\
**Last updated:** [June 8, 2022, 2:40pm UTC](https://discourse.vtk.org/t/issue-with-vtkopenglrenderwindow-on-linux-with-vtk-9-1/8576 "2022-06-08T14:40:45Z")

</div>

I am trying to run a minimal example with python and vtk which was adapted from this link but with PySide2 instead of Qt4. This works fine on my windows machine, with any vtk 9.x.x version. However, on linux I can run …

---

## [Problem with the Installing of VTK in Ubuntu](https://discourse.vtk.org/t/problem-with-the-installing-of-vtk-in-ubuntu/8658)

<div class="topic-metadata">

**Author:** [@YMAkib](https://discourse.vtk.org/u/YMAkib)\
**Replies:** 9\
**Last updated:** [June 8, 2022, 8:01am UTC](https://discourse.vtk.org/t/problem-with-the-installing-of-vtk-in-ubuntu/8658 "2022-06-08T08:01:04Z")

</div>

I am facing the following problem. Can Anyone please help? Thank you. Update the VERSION argument \<min\> value or use a ...\<max\> suffix to tell CMake that the project does not need compatibility with older versions. …

---

## [how to use VtkVolume and vtkGPUVolumeRayCastMapper to display inside the Aorta? Is it the matter of camera and ray direction?](https://discourse.vtk.org/t/how-to-use-vtkvolume-and-vtkgpuvolumeraycastmapper-to-display-inside-the-aorta-is-it-the-matter-of-camera-and-ray-direction/8600)

<div class="topic-metadata">

**Author:** [@yujhuang](https://discourse.vtk.org/u/yujhuang)\
**Replies:** 15\
**Last updated:** [June 7, 2022, 7:01am UTC](https://discourse.vtk.org/t/how-to-use-vtkvolume-and-vtkgpuvolumeraycastmapper-to-display-inside-the-aorta-is-it-the-matter-of-camera-and-ray-direction/8600 "2022-06-07T07:01:23Z")

</div>

So here is an example of Endoscope feature of 3D Slicer: And here is an example from Endosize: My Question is: If I wanna do endoscope by VtkVolume, what should I be Awared of? (I tried some vtkVolume examples, i…

---

## [how to draw a a simple cross line in vtkresliceimageviewer](https://discourse.vtk.org/t/how-to-draw-a-a-simple-cross-line-in-vtkresliceimageviewer/8668)

<div class="topic-metadata">

**Author:** [@liuyongsheng-joshua](https://discourse.vtk.org/u/liuyongsheng-joshua)\
**Replies:** 1\
**Last updated:** [June 5, 2022, 5:56pm UTC](https://discourse.vtk.org/t/how-to-draw-a-a-simple-cross-line-in-vtkresliceimageviewer/8668 "2022-06-05T17:56:06Z")

</div>

hi, all i am a vtk beginner. i am trying to draw a simple crossline in the vtk example of fourpane view’s vtkresliceimageviwer pane to indicate the other two view’s slice index. but i don\`t find a right way to solve …

---

## [How to place seed widget exactly on the image but not above it?](https://discourse.vtk.org/t/how-to-place-seed-widget-exactly-on-the-image-but-not-above-it/8662)

<div class="topic-metadata">

**Author:** [@xxyyy159](https://discourse.vtk.org/u/xxyyy159)\
**Replies:** 2\
**Last updated:** [June 5, 2022, 2:54pm UTC](https://discourse.vtk.org/t/how-to-place-seed-widget-exactly-on-the-image-but-not-above-it/8662 "2022-06-05T14:54:10Z")

</div>

Hi, I want to select some points on image. So I implement the seed widget to help me select the points I want. But I found out the seed was placed above the image not on the image. Some images below showing the issue. T…

---

## [Actor picking failure with wxVTKRenderWindowInteractor](https://discourse.vtk.org/t/actor-picking-failure-with-wxvtkrenderwindowinteractor/8621)

<div class="topic-metadata">

**Author:** [@bart](https://discourse.vtk.org/u/bart)\
**Replies:** 1\
**Last updated:** [June 5, 2022, 10:47am UTC](https://discourse.vtk.org/t/actor-picking-failure-with-wxvtkrenderwindowinteractor/8621 "2022-06-05T10:47:28Z")

</div>

Hi forum, I’ve built a wxwidgets app using wxVTKRenderWindowInteractor over the last years and for the first time I am hitting a wall. Actor picking fails in the wxVTKRenderWindowInteractor, i.e. clicks in the window at…

---

## [Wheels for python 3.10 available on pypi?](https://discourse.vtk.org/t/wheels-for-python-3-10-available-on-pypi/8649)

<div class="topic-metadata">

**Author:** [@johmue](https://discourse.vtk.org/u/johmue)\
**Replies:** 5\
**Last updated:** [June 2, 2022, 6:55pm UTC](https://discourse.vtk.org/t/wheels-for-python-3-10-available-on-pypi/8649 "2022-06-02T18:55:01Z")

</div>

May I suggest putting vtk-9.1.0 wheels for python-3.10 to pypi? I have to say it is meanwhile quite some limitation for python packages depending on vtk to be tied to python-3.9. Any chance that this will happen soonish? …

---

## [Thread safety of vtkMPIController::SetGlobalController()](https://discourse.vtk.org/t/thread-safety-of-vtkmpicontroller-setglobalcontroller/8650)

<div class="topic-metadata">

**Author:** [@acbauer](https://discourse.vtk.org/u/acbauer)\
**Replies:** 1\
**Last updated:** [June 2, 2022, 5:57pm UTC](https://discourse.vtk.org/t/thread-safety-of-vtkmpicontroller-setglobalcontroller/8650 "2022-06-02T17:57:08Z")

</div>

Hi, I’m playing around with trying to do some pipeline processing with MPI parallelism in detached threads. As an example, I have 20 MPI processes and on 5 of them I detach a thread with their own vtkMPIController (with…

---

## [How to add annotation on vtkChartXY](https://discourse.vtk.org/t/how-to-add-annotation-on-vtkchartxy/8556)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 8\
**Last updated:** [June 2, 2022, 8:06am UTC](https://discourse.vtk.org/t/how-to-add-annotation-on-vtkchartxy/8556 "2022-06-02T08:06:29Z")

</div>

I want to add an annotation on vtkChartXY. The annotation is vtkTextActor. My code is: import vtkmodules.all as vtk import numpy as np colors = vtk.vtkNamedColors() table = vtk.vtkTable() arrX = vtk.vtkFloatArray() a…

---

## [Process hardware cliping using implicit function](https://discourse.vtk.org/t/process-hardware-cliping-using-implicit-function/8635)

<div class="topic-metadata">

**Author:** [@xxyyy159](https://discourse.vtk.org/u/xxyyy159)\
**Replies:** 4\
**Last updated:** [June 2, 2022, 4:09am UTC](https://discourse.vtk.org/t/process-hardware-cliping-using-implicit-function/8635 "2022-06-02T04:09:45Z")

</div>

vtkAbstractMapper provides a function,SetClippingPlanes, to cut the actor at hardware level,which might be several magnitudes faster. But I can’t set implicit function to it to get specific shape like below. vtkNew\<v…

---

## [Bounding volume of cylinder path](https://discourse.vtk.org/t/bounding-volume-of-cylinder-path/8498)

<div class="topic-metadata">

**Author:** [@kruvva](https://discourse.vtk.org/u/kruvva)\
**Replies:** 19\
**Last updated:** [June 1, 2022, 4:41pm UTC](https://discourse.vtk.org/t/bounding-volume-of-cylinder-path/8498 "2022-06-01T16:41:54Z")

</div>

Hello All, I am trying to build a volumetric polydata traversed by a cylinder along given path. I am currently creating cylinders at every point in the path and appending them using vtkAppendPolyData. But this gives be …

---

## [best strategy for drawing on vtkImagePlaneWidget](https://discourse.vtk.org/t/best-strategy-for-drawing-on-vtkimageplanewidget/8603)

<div class="topic-metadata">

**Author:** [@soren](https://discourse.vtk.org/u/soren)\
**Replies:** 5\
**Last updated:** [May 31, 2022, 3:17pm UTC](https://discourse.vtk.org/t/best-strategy-for-drawing-on-vtkimageplanewidget/8603 "2022-05-31T15:17:57Z")

</div>

Hi, I would like to draw pixel ROIs on a volume visualized with vtkImagePlaneWidget using the built in cursor. Currently I have set up 2 vtkImagePlaneWidgets, one for the image and one for the ROI. The ROI widget simply…

---

## [How to get rid of this tipples on the volume?](https://discourse.vtk.org/t/how-to-get-rid-of-this-tipples-on-the-volume/8201)

<div class="topic-metadata">

**Author:** [@xxyyy159](https://discourse.vtk.org/u/xxyyy159)\
**Replies:** 2\
**Last updated:** [May 31, 2022, 1:57am UTC](https://discourse.vtk.org/t/how-to-get-rid-of-this-tipples-on-the-volume/8201 "2022-05-31T01:57:05Z")

</div>

Hi, I downloaded the code from here-\>medicalDemo4 and modified a little. The ripples(dont know how to name it) intensified but I dont know how to get rid of it. Here are what I modified. from vtkFixedPointVolumeRa…

---

## [vtkQuadric SetCoefficients change not executed in C++, but is in Python](https://discourse.vtk.org/t/vtkquadric-setcoefficients-change-not-executed-in-c-but-is-in-python/8622)

<div class="topic-metadata">

**Author:** [@Spacetracker](https://discourse.vtk.org/u/Spacetracker)\
**Replies:** 2\
**Last updated:** [May 30, 2022, 8:51pm UTC](https://discourse.vtk.org/t/vtkquadric-setcoefficients-change-not-executed-in-c-but-is-in-python/8622 "2022-05-30T20:51:39Z")

</div>

I modified the ImplicitQuadric vtk-example in Python to morph the surface within a loop by changing the SetCoefficients for vtkQuadric functions for a vtkImplicitBoolean. I ported this code to C++ and the first Surface …

---

## [How to get the intersection between two splines?](https://discourse.vtk.org/t/how-to-get-the-intersection-between-two-splines/8633)

<div class="topic-metadata">

**Author:** [@Jaafar\_Nasrabadi](https://discourse.vtk.org/u/Jaafar_Nasrabadi)\
**Replies:** 0\
**Last updated:** [May 30, 2022, 7:42pm UTC](https://discourse.vtk.org/t/how-to-get-the-intersection-between-two-splines/8633 "2022-05-30T19:42:50Z")

</div>

I am trying to get intersections between two splines.I convert the splines to tube then use vtktrianglefilter and then get the intersection with vtkintersectionpolydatafilter. I want to get intersection points respective…

---

## [Setting up Center of Mass on Prop3d object without moving the object](https://discourse.vtk.org/t/setting-up-center-of-mass-on-prop3d-object-without-moving-the-object/8559)

<div class="topic-metadata">

**Author:** [@Marone](https://discourse.vtk.org/u/Marone)\
**Replies:** 1\
**Last updated:** [May 30, 2022, 10:09am UTC](https://discourse.vtk.org/t/setting-up-center-of-mass-on-prop3d-object-without-moving-the-object/8559 "2022-05-30T10:09:31Z")

</div>

I am trying to set a centre of mass with SetOrientation() function and then apply RotationWXYZ() on the object. The thing is when I use SetOrientation on the object it moves it. I only want to set centre of mass around w…

---

## [Accurately cutting loops out of 3D PolyData](https://discourse.vtk.org/t/accurately-cutting-loops-out-of-3d-polydata/8625)

<div class="topic-metadata">

**Author:** [@whophil](https://discourse.vtk.org/u/whophil)\
**Replies:** 0\
**Last updated:** [May 29, 2022, 9:19pm UTC](https://discourse.vtk.org/t/accurately-cutting-loops-out-of-3d-polydata/8625 "2022-05-29T21:19:34Z")

</div>

I am trying to accurately cut loops out of a 3D PolyData with a loop which lies on the surface (or very close to it). Similar topics have been discussed a number of times before: Punching a polygonal hole into a trian…

---

## [build VTK-9.1.0 to webassembly](https://discourse.vtk.org/t/build-vtk-9-1-0-to-webassembly/7895)

<div class="topic-metadata">

**Author:** [@reichtiger](https://discourse.vtk.org/u/reichtiger)\
**Replies:** 8\
**Last updated:** [May 29, 2022, 1:05pm UTC](https://discourse.vtk.org/t/build-vtk-9-1-0-to-webassembly/7895 "2022-05-29T13:05:11Z")

</div>

Hello, Nice to update to VTK-9.1.0 on Windows11 . But when I compile it via dockcross/web-wasm:20220202, it raise error like below :wink: /VTK-9.1.0/Rendering/ContextOpenGL2/vtkOpenGLContextBufferId.cxx:142:21: error:…

---

## [VTK9/OSMesa21/LLVM12 MacOS Crash](https://discourse.vtk.org/t/vtk9-osmesa21-llvm12-macos-crash/8545)

<div class="topic-metadata">

**Author:** [@Spacetracker](https://discourse.vtk.org/u/Spacetracker)\
**Replies:** 2\
**Last updated:** [May 27, 2022, 9:24pm UTC](https://discourse.vtk.org/t/vtk9-osmesa21-llvm12-macos-crash/8545 "2022-05-27T21:24:22Z")

</div>

I have built several generations of VTK with OSMesa for offscreen rendering on Linux servers, and several versions of VTK on MacOS for Cocoa from source over the years. I recently built VTK with the latest versions abov…

---

## [How to get VTK headers from VTK\_LIBRARIES returned by cmake find\_package()?](https://discourse.vtk.org/t/how-to-get-vtk-headers-from-vtk-libraries-returned-by-cmake-find-package/8608)

<div class="topic-metadata">

**Author:** [@Tomasso](https://discourse.vtk.org/u/Tomasso)\
**Replies:** 4\
**Last updated:** [May 27, 2022, 6:22pm UTC](https://discourse.vtk.org/t/how-to-get-vtk-headers-from-vtk-libraries-returned-by-cmake-find-package/8608 "2022-05-27T18:22:06Z")

</div>

I’m running cmake version 3.23.0-rc1, on ubuntu 20.04. I built vtk-9.0 from source; cmake, make, then ‘make install’. Now I am trying to find the VTK package for my own application, using cmake’s find\_package(VTK). The a…

---

## [How to understand the time tag in dicom?](https://discourse.vtk.org/t/how-to-understand-the-time-tag-in-dicom/8595)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 7\
**Last updated:** [May 27, 2022, 1:34am UTC](https://discourse.vtk.org/t/how-to-understand-the-time-tag-in-dicom/8595 "2022-05-27T01:34:58Z")

</div>

The dicom provide many time tags, for example: 0008, 0022: Acquisition Date 0008, 0023: Content Date 0008, 002A: Acquisition DateTime 0008, 0032: Acquisition Time 0008, 0033: Content Time In my thought, there are nearl…

---

## [How to read the given mesh data in vtk file and write it into obj file format](https://discourse.vtk.org/t/how-to-read-the-given-mesh-data-in-vtk-file-and-write-it-into-obj-file-format/8602)

<div class="topic-metadata">

**Author:** [@KALEEMULLAHJANKHAN](https://discourse.vtk.org/u/KALEEMULLAHJANKHAN)\
**Replies:** 1\
**Last updated:** [May 26, 2022, 1:10pm UTC](https://discourse.vtk.org/t/how-to-read-the-given-mesh-data-in-vtk-file-and-write-it-into-obj-file-format/8602 "2022-05-26T13:10:33Z")

</div>

Hello Team, I have data in mesh vtk file as given below, How can I read and convert it to obj file format. I am just copying some part of the data for convenience. Thanks in advance CELLS 20 70 1 0 1 1 1 2 1 3 1 4 …

---

## [how to rendering volume and transparent polygon together with a correct order?](https://discourse.vtk.org/t/how-to-rendering-volume-and-transparent-polygon-together-with-a-correct-order/8599)

<div class="topic-metadata">

**Author:** [@SnowWindSaveYou](https://discourse.vtk.org/u/SnowWindSaveYou)\
**Replies:** 0\
**Last updated:** [May 26, 2022, 12:56am UTC](https://discourse.vtk.org/t/how-to-rendering-volume-and-transparent-polygon-together-with-a-correct-order/8599 "2022-05-26T00:56:42Z")

</div>

after i set the opacity value for my polygon, the volume will always rendering above the polygon. used vtkPolyDataMapper & vtkGPUVolumeRayCastMapper

---

## [Header files with the same name](https://discourse.vtk.org/t/header-files-with-the-same-name/8549)

<div class="topic-metadata">

**Author:** [@amaclean](https://discourse.vtk.org/u/amaclean)\
**Replies:** 5\
**Last updated:** [May 25, 2022, 1:31pm UTC](https://discourse.vtk.org/t/header-files-with-the-same-name/8549 "2022-05-25T13:31:10Z")

</div>

I am getting a list of files by modules in the VTK source and I note that vtkFilterPolicy.h occurs in both Accelerators\\Vtkm\\DataModeland Accelerators\\Vtkm\\Core. The files only differ in line 20. Out of 2997 headers thi…

---

## [why the hidden part can be shown when edge visibility is on](https://discourse.vtk.org/t/why-the-hidden-part-can-be-shown-when-edge-visibility-is-on/8584)

<div class="topic-metadata">

**Author:** [@Ren](https://discourse.vtk.org/u/Ren)\
**Replies:** 0\
**Last updated:** [May 25, 2022, 2:29am UTC](https://discourse.vtk.org/t/why-the-hidden-part-can-be-shown-when-edge-visibility-is-on/8584 "2022-05-25T02:29:23Z")

</div>

Hello, I use lookuptable to hide some parts, but if SetEdgeVisibility, the edge of hidden part will be drawn.

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

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