# Support

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

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

**Page:** 93

---

## [Visualize vtkStructuredGrid as volume](https://discourse.vtk.org/t/visualize-vtkstructuredgrid-as-volume/7004)

<div class="topic-metadata">

**Author:** [@brnk](https://discourse.vtk.org/u/brnk)\
**Replies:** 3\
**Last updated:** [November 3, 2021, 2:33pm UTC](https://discourse.vtk.org/t/visualize-vtkstructuredgrid-as-volume/7004 "2021-11-03T14:33:36Z")

</div>

I have a vtkStructuredGrid whose points are not distributed on a uniform rectangular grid. I want to use the volume rendering capabilities like opacity transfer functions. To achieve that, I have to convert the vtkStruc…

---

## [weird meshing with delaunay\_2d (python)](https://discourse.vtk.org/t/weird-meshing-with-delaunay-2d-python/6970)

<div class="topic-metadata">

**Author:** [@Texas](https://discourse.vtk.org/u/Texas)\
**Replies:** 2\
**Last updated:** [November 3, 2021, 12:15pm UTC](https://discourse.vtk.org/t/weird-meshing-with-delaunay-2d-python/6970 "2021-11-03T12:15:48Z")

</div>

Hello, I am trying to mesh a cloud of point and I have 1 cloud that gives trouble (context under) : for anyone wanting to reproduce the bug, you just have to copy past what is under (i manually extrated those data t…

---

## [install VTK with cmake error: No such module "vtkkwiml" needed by "vtkCommonCore"](https://discourse.vtk.org/t/install-vtk-with-cmake-error-no-such-module-vtkkwiml-needed-by-vtkcommoncore/7056)

<div class="topic-metadata">

**Author:** [@user1](https://discourse.vtk.org/u/user1)\
**Replies:** 0\
**Last updated:** [November 3, 2021, 12:24pm UTC](https://discourse.vtk.org/t/install-vtk-with-cmake-error-no-such-module-vtkkwiml-needed-by-vtkcommoncore/7056 "2021-11-03T12:24:57Z")

</div>

Ubuntu 18.04,VTK 8.2 – Performing Test CMAKE\_HAVE\_LIBC\_PTHREAD - Failed CMake Error at CMakeLists.txt:73 (add\_subdirectory): add\_subdirectory given source “Remote” which is not an existing directory. CMake Error at …

---

## [Module Upgradation](https://discourse.vtk.org/t/module-upgradation/7043)

<div class="topic-metadata">

**Author:** [@Taimour](https://discourse.vtk.org/u/Taimour)\
**Replies:** 2\
**Last updated:** [November 3, 2021, 11:27am UTC](https://discourse.vtk.org/t/module-upgradation/7043 "2021-11-03T11:27:37Z")

</div>

Previously, my project worked fine with vtk580. Now I want to upgrade to latest version. When I try to do I get error vtkCommon.lib not found. I have looked an not found the file in my folder. Can I anyone suggest solut…

---

## [No module named 'vtkCommonCorePython' - import vtk](https://discourse.vtk.org/t/no-module-named-vtkcommoncorepython-import-vtk/7039)

<div class="topic-metadata">

**Author:** [@BrazilForever11](https://discourse.vtk.org/u/BrazilForever11)\
**Replies:** 1\
**Last updated:** [November 3, 2021, 5:55am UTC](https://discourse.vtk.org/t/no-module-named-vtkcommoncorepython-import-vtk/7039 "2021-11-03T05:55:46Z")

</div>

I am on Windows 10, Python 3.7.11, conda 4.10.3. I ran both conda install vtk and pip install vtk, and they ran fine. When I try import vtk I get back: ImportError Traceback (most recen…

---

## [VTK8.2+Qt5.15.2 In AddObserver function call Render() "received signal SIGSEGV, Segmentation fault."](https://discourse.vtk.org/t/vtk8-2-qt5-15-2-in-addobserver-function-call-render-received-signal-sigsegv-segmentation-fault/7051)

<div class="topic-metadata">

**Author:** [@Makmanfu](https://discourse.vtk.org/u/Makmanfu)\
**Replies:** 0\
**Last updated:** [November 3, 2021, 3:20am UTC](https://discourse.vtk.org/t/vtk8-2-qt5-15-2-in-addobserver-function-call-render-received-signal-sigsegv-segmentation-fault/7051 "2021-11-03T03:20:23Z")

</div>

Debug info gdb ./test\_qt\_vtk (gdb) r Starting program: /home/frp/1-Code/test\_qt\_vtk/build/test\_qt\_vtk \[Thread debugging using libthread\_db enabled\] Using host libthread\_db library "/lib/x86\_64-linux-gnu/libthread\_db.so…

---

## [vtkPoissonDiskSampler with STLs](https://discourse.vtk.org/t/vtkpoissondisksampler-with-stls/7045)

<div class="topic-metadata">

**Author:** [@mrwsl](https://discourse.vtk.org/u/mrwsl)\
**Replies:** 2\
**Last updated:** [November 2, 2021, 2:36pm UTC](https://discourse.vtk.org/t/vtkpoissondisksampler-with-stls/7045 "2021-11-02T14:36:55Z")

</div>

I adjusted the PolyDataPointSampler to use the PoissonDiskSampler (lines 45-48): vtkNew\<vtkPoissonDiskSampler\> sample; sample-\>SetInputData(polyData); sample-\>SetRadius(1); sample-\>Update(); std::cout \<\< "# of…

---

## [Colour Lines / Triangles etc different colours](https://discourse.vtk.org/t/colour-lines-triangles-etc-different-colours/7033)

<div class="topic-metadata">

**Author:** [@Kevin\_Sweeney](https://discourse.vtk.org/u/Kevin_Sweeney)\
**Replies:** 1\
**Last updated:** [November 2, 2021, 1:59pm UTC](https://discourse.vtk.org/t/colour-lines-triangles-etc-different-colours/7033 "2021-11-02T13:59:15Z")

</div>

Hello, I was wondering if anyone could share an example where something like this was performed in Python. I am looking at colouring the lines / triangles etc. different colours. https://kitware.github.io/vtk-examples/s…

---

## [If I could get the scalar value of a point/cell (in world coordinate) on the rendering of 3d vtkImageData?](https://discourse.vtk.org/t/if-i-could-get-the-scalar-value-of-a-point-cell-in-world-coordinate-on-the-rendering-of-3d-vtkimagedata/7032)

<div class="topic-metadata">

**Author:** [@YuezhenQin](https://discourse.vtk.org/u/YuezhenQin)\
**Replies:** 1\
**Last updated:** [November 2, 2021, 1:51pm UTC](https://discourse.vtk.org/t/if-i-could-get-the-scalar-value-of-a-point-cell-in-world-coordinate-on-the-rendering-of-3d-vtkimagedata/7032 "2021-11-02T13:51:27Z")

</div>

imageData-\>GetOutput()-\>GetPointData()-\>GetArray(“ImageScalars”); I also tried the following code: int\* dimension = connector-\>GetOutput()-\>GetDimensions(); for (int x = 0; x \< dimension\[0\]; x++) { double\* pixel = s…

---

## [vtkimagedata direction martix](https://discourse.vtk.org/t/vtkimagedata-direction-martix/7041)

<div class="topic-metadata">

**Author:** [@bistek](https://discourse.vtk.org/u/bistek)\
**Replies:** 3\
**Last updated:** [November 2, 2021, 1:48pm UTC](https://discourse.vtk.org/t/vtkimagedata-direction-martix/7041 "2021-11-02T13:48:43Z")

</div>

Hello, I am using vtkCutter to cut a 3D vtkImageData with an arbitrarily-oriented vtkPlane, and then I wish to use vtkProbeFilter to resample the vtkPolyData obtained from vtkCutter as a regular-spacing 2D vtkImage. As …

---

## [Replace coordinates (vtkPoints) of vtkPolyData fast](https://discourse.vtk.org/t/replace-coordinates-vtkpoints-of-vtkpolydata-fast/6999)

<div class="topic-metadata">

**Author:** [@AlexG](https://discourse.vtk.org/u/AlexG)\
**Replies:** 2\
**Last updated:** [November 2, 2021, 9:56am UTC](https://discourse.vtk.org/t/replace-coordinates-vtkpoints-of-vtkpolydata-fast/6999 "2021-11-02T09:56:19Z")

</div>

I would need some tips or ideas on how to reset a volume (vtkPolyData). More specifically, I create a line (vtkPolyLine) using a start and end point which I expand to a 3D cylinder using a vtkTubeFilter. Now I move the …

---

## [How to get the actually clicked actor in an assembly?](https://discourse.vtk.org/t/how-to-get-the-actually-clicked-actor-in-an-assembly/7027)

<div class="topic-metadata">

**Author:** [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)\
**Replies:** 0\
**Last updated:** [November 1, 2021, 10:20am UTC](https://discourse.vtk.org/t/how-to-get-the-actually-clicked-actor-in-an-assembly/7027 "2021-11-01T10:20:25Z")

</div>

Hello,I have an assembly which is consisted of 3 actors,and vtkPropPicker is used for picking.I can get the clicked assembly,but how to determine which actor is actually clicked?

---

## [vtkPNGWriter to stream](https://discourse.vtk.org/t/vtkpngwriter-to-stream/7029)

<div class="topic-metadata">

**Author:** [@Olivier](https://discourse.vtk.org/u/Olivier)\
**Replies:** 2\
**Last updated:** [November 1, 2021, 3:35pm UTC](https://discourse.vtk.org/t/vtkpngwriter-to-stream/7029 "2021-11-01T15:35:30Z")

</div>

Hi dear friends, I want to make a screenshot of a VTK Renderer into a PNG stream. Way to go is obviously vtkNew\<vtkRenderLargeImage\> renderLarge; renderLarge-\>SetInput(renderer); vtkNew\<vtkPNGWriter\> writer; writer-\>S…

---

## [Installing VTK in Ubuntu 18.04 LTS](https://discourse.vtk.org/t/installing-vtk-in-ubuntu-18-04-lts/6977)

<div class="topic-metadata">

**Author:** [@mn14cat](https://discourse.vtk.org/u/mn14cat)\
**Replies:** 8\
**Last updated:** [October 30, 2021, 8:48am UTC](https://discourse.vtk.org/t/installing-vtk-in-ubuntu-18-04-lts/6977 "2021-10-30T08:48:03Z")

</div>

Hello all I am trying to downgrade my version of VTK from 6.3.0 to 5.10.1 so that I can use some python utilities (namely pyFoam) however when I try to compile the VTK5.10.1 I get the following error: CMake Error at CM…

---

## [Computation of the Rotation Transform between two positions](https://discourse.vtk.org/t/computation-of-the-rotation-transform-between-two-positions/6996)

<div class="topic-metadata">

**Author:** [@Luis\_Carlos\_Carneiro](https://discourse.vtk.org/u/Luis_Carlos_Carneiro)\
**Replies:** 1\
**Last updated:** [October 29, 2021, 5:07pm UTC](https://discourse.vtk.org/t/computation-of-the-rotation-transform-between-two-positions/6996 "2021-10-29T17:07:29Z")

</div>

Dear All, When I display a MHD (3D Skull) file with VTK it appears in one rotation/angle(s) position. But I want that initially it will in another angle(s) position. How can I position in another angle(s) and record th…

---

## [VTK Python rendering window not responding with basic scene](https://discourse.vtk.org/t/vtk-python-rendering-window-not-responding-with-basic-scene/7019)

<div class="topic-metadata">

**Author:** [@ronzim](https://discourse.vtk.org/u/ronzim)\
**Replies:** 0\
**Last updated:** [October 29, 2021, 3:28pm UTC](https://discourse.vtk.org/t/vtk-python-rendering-window-not-responding-with-basic-scene/7019 "2021-10-29T15:28:36Z")

</div>

Hello there, I’ve implemented a basic scene using vtkpython. When I call vtkRenderWindow.Render() the window appears correctly, but freezes at first interaction (not responding). My code: import vtk import time cone =…

---

## [VtkPolyData clip](https://discourse.vtk.org/t/vtkpolydata-clip/7006)

<div class="topic-metadata">

**Author:** [@Hanxin\_Hua](https://discourse.vtk.org/u/Hanxin_Hua)\
**Replies:** 5\
**Last updated:** [October 29, 2021, 3:04pm UTC](https://discourse.vtk.org/t/vtkpolydata-clip/7006 "2021-10-29T15:04:58Z")

</div>

Hi everyone, I have a problem. So in the image, the white part is a polydata of an iso surface. And I defined the implicit function of a sphere and cut it. vtkNew\<vtkClipPolyData\> isoClip; skinClip-\>SetInputData(…

---

## [Overrall performances on a very simple scene, disappoiting/weird results ...](https://discourse.vtk.org/t/overrall-performances-on-a-very-simple-scene-disappoiting-weird-results/7015)

<div class="topic-metadata">

**Author:** [@Olivier](https://discourse.vtk.org/u/Olivier)\
**Replies:** 8\
**Last updated:** [October 29, 2021, 12:36pm UTC](https://discourse.vtk.org/t/overrall-performances-on-a-very-simple-scene-disappoiting-weird-results/7015 "2021-10-29T12:36:28Z")

</div>

Hi dear friends, I’m very new to VTK, and I’m currently testing/stressing it to evaluate its potential for replacing our current OpenGL frontend. The setup is quite simple : Windows 10 Latest VTK compiled with VS2022…

---

## [Access data on GPU directly with OpenGL-based volume mapper](https://discourse.vtk.org/t/access-data-on-gpu-directly-with-opengl-based-volume-mapper/7013)

<div class="topic-metadata">

**Author:** [@brnk](https://discourse.vtk.org/u/brnk)\
**Replies:** 0\
**Last updated:** [October 29, 2021, 8:40am UTC](https://discourse.vtk.org/t/access-data-on-gpu-directly-with-opengl-based-volume-mapper/7013 "2021-10-29T08:40:15Z")

</div>

I have an algorithm running on the GPU and I want to visualize its output matrix of size 1000 x 100 x 100 as a volume using a maximum intensity projection. Currently, I am copying the data back to the host, initialize a v…

---

## [Mesh tags](https://discourse.vtk.org/t/mesh-tags/7011)

<div class="topic-metadata">

**Author:** [@hamid\_badi](https://discourse.vtk.org/u/hamid_badi)\
**Replies:** 0\
**Last updated:** [October 29, 2021, 8:30am UTC](https://discourse.vtk.org/t/mesh-tags/7011 "2021-10-29T08:30:03Z")

</div>

Hello, I use gmsh which supports physical tags for geometric entities, this information is exported as a scalar “CELL\_DATA” in the vtk file but i don’t know how to see this information in the multiblock inspector. I re…

---

## [Please helpfor reslice questions](https://discourse.vtk.org/t/please-helpfor-reslice-questions/7009)

<div class="topic-metadata">

**Author:** [@Dgg820502](https://discourse.vtk.org/u/Dgg820502)\
**Replies:** 0\
**Last updated:** [October 29, 2021, 3:53am UTC](https://discourse.vtk.org/t/please-helpfor-reslice-questions/7009 "2021-10-29T03:53:13Z")

</div>

origin = planeNew.GetOrigin() planeNew.SetNormal(1, 0, 0) clipedData = vtk.vtkPolyData() clipedData.DeepCopy(cliper.GetOutput()) #################################### cutter = vtk.vtkC…

---

## [Shader compilation issue](https://discourse.vtk.org/t/shader-compilation-issue/7008)

<div class="topic-metadata">

**Author:** [@nickc](https://discourse.vtk.org/u/nickc)\
**Replies:** 0\
**Last updated:** [October 28, 2021, 9:59pm UTC](https://discourse.vtk.org/t/shader-compilation-issue/7008 "2021-10-28T21:59:13Z")

</div>

Hi all, I apologize in advance - I’m not a VTK / GLSL expert. I am running into a compilation issue with a Qt5.6 project using VTK 8.0 on MacOS 10.15.7. I’m getting version errors every time I try to call the Compile f…

---

## [Visualize complex-valued 3D volume](https://discourse.vtk.org/t/visualize-complex-valued-3d-volume/6982)

<div class="topic-metadata">

**Author:** [@brnk](https://discourse.vtk.org/u/brnk)\
**Replies:** 5\
**Last updated:** [October 28, 2021, 11:13am UTC](https://discourse.vtk.org/t/visualize-complex-valued-3d-volume/6982 "2021-10-28T11:13:03Z")

</div>

I have a three-dimensional complex-valued matrix of size NX x NY x NZ whose values are stored as a flat vector of size NX \* NY \* NZ \* 2 (factor 2 for real and imaginary parts). Each element in the matrix corresponds to …

---

## [Multiple renderers in same renderwindow - get event only from the one that was interacted with](https://discourse.vtk.org/t/multiple-renderers-in-same-renderwindow-get-event-only-from-the-one-that-was-interacted-with/6775)

<div class="topic-metadata">

**Author:** [@codeling](https://discourse.vtk.org/u/codeling)\
**Replies:** 1\
**Last updated:** [October 28, 2021, 8:35am UTC](https://discourse.vtk.org/t/multiple-renderers-in-same-renderwindow-get-event-only-from-the-one-that-was-interacted-with/6775 "2021-10-28T08:35:50Z")

</div>

My issue: I want to react on the event that a user interacted with a specific vtkRenderer in a vtkRenderWindow with multiple renderers, each with a separate viewport. For that purpose, I am observing the vtkCommand::En…

---

## [Plotting Toolpath of 3D Printer as Arrows in VTK](https://discourse.vtk.org/t/plotting-toolpath-of-3d-printer-as-arrows-in-vtk/6928)

<div class="topic-metadata">

**Author:** [@BastianJuelich](https://discourse.vtk.org/u/BastianJuelich)\
**Replies:** 3\
**Last updated:** [October 27, 2021, 7:38pm UTC](https://discourse.vtk.org/t/plotting-toolpath-of-3d-printer-as-arrows-in-vtk/6928 "2021-10-27T19:38:11Z")

</div>

Hey, as i am currently working on visualizing the “Toolpath” for a 3d printing machine i am interested if this is possible with vtk (pretty sure it is…) So the Data i have is in a .cli File (COMMON LAYER INTERFACE (CLI…

---

## [Problem with vtkSelectEnclosedPoints](https://discourse.vtk.org/t/problem-with-vtkselectenclosedpoints/6988)

<div class="topic-metadata">

**Author:** [@mrwsl](https://discourse.vtk.org/u/mrwsl)\
**Replies:** 4\
**Last updated:** [October 27, 2021, 1:54pm UTC](https://discourse.vtk.org/t/problem-with-vtkselectenclosedpoints/6988 "2021-10-27T13:54:12Z")

</div>

Hi there, I’m loading STL files which come from various CAD Software. My goal is to create a grid of points in the x,y-plane at the top of the STL. I do this by creating the pattern according to the STL’s bounds and get…

---

## [how to get vtkImageViewer2 PlaneAxes differently and convert output image to bitmap or bitmapsource](https://discourse.vtk.org/t/how-to-get-vtkimageviewer2-planeaxes-differently-and-convert-output-image-to-bitmap-or-bitmapsource/6992)

<div class="topic-metadata">

**Author:** [@Javad\_Hosseini](https://discourse.vtk.org/u/Javad_Hosseini)\
**Replies:** 0\
**Last updated:** [October 27, 2021, 1:35pm UTC](https://discourse.vtk.org/t/how-to-get-vtkimageviewer2-planeaxes-differently-and-convert-output-image-to-bitmap-or-bitmapsource/6992 "2021-10-27T13:35:45Z")

</div>

what im trying to do is a way to get image produced by vtkImageViewer and process on it. i have done this so far but it seems not working: vtkImageData data = \_viewer.GetInput(); Bitmap bitmap = data.ToBitmap(); i ge…

---

## [Move point but keep the mesh (python)](https://discourse.vtk.org/t/move-point-but-keep-the-mesh-python/6990)

<div class="topic-metadata">

**Author:** [@Texas](https://discourse.vtk.org/u/Texas)\
**Replies:** 0\
**Last updated:** [October 27, 2021, 1:18pm UTC](https://discourse.vtk.org/t/move-point-but-keep-the-mesh-python/6990 "2021-10-27T13:18:30Z")

</div>

Main question : I would like to know if it is possible to move a point in one direction but keep the mesh in vtk-Python (see image below, with an example of 4 points moved) I am new to vtk and would like to know if some…

---

## [Is there any way to export vtkPolyData to step,iges or brep](https://discourse.vtk.org/t/is-there-any-way-to-export-vtkpolydata-to-step-iges-or-brep/6986)

<div class="topic-metadata">

**Author:** [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)\
**Replies:** 0\
**Last updated:** [October 27, 2021, 11:30am UTC](https://discourse.vtk.org/t/is-there-any-way-to-export-vtkpolydata-to-step-iges-or-brep/6986 "2021-10-27T11:30:39Z")

</div>

Hello,any way to do it,directly or indirectly?

---

## [Can I get cell Ids by cell type and points](https://discourse.vtk.org/t/can-i-get-cell-ids-by-cell-type-and-points/6980)

<div class="topic-metadata">

**Author:** [@huaweiping](https://discourse.vtk.org/u/huaweiping)\
**Replies:** 0\
**Last updated:** [October 27, 2021, 7:45am UTC](https://discourse.vtk.org/t/can-i-get-cell-ids-by-cell-type-and-points/6980 "2021-10-27T07:45:03Z")

</div>

Hi, I have a dataset with 50050050 points and related point data. I have done some operation and extract a closed but irregular structure with points. However, I want to visualize the isosurface of the structure so I ne…

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

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