# Latest

**URL:** https://discourse.vtk.org/latest.md?page=156

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

**Page:** 157

---

## [Extract Streamlines from a vtkUnstructuredGrid](https://discourse.vtk.org/t/extract-streamlines-from-a-vtkunstructuredgrid/7093)

<div class="topic-metadata">

**Author:** [@Francesco\_Montanaro](https://discourse.vtk.org/u/Francesco_Montanaro)\
**Replies:** 1\
**Last updated:** [November 6, 2021, 7:08pm UTC](https://discourse.vtk.org/t/extract-streamlines-from-a-vtkunstructuredgrid/7093 "2021-11-06T19:08:26Z")

</div>

Hi, I have a vtkUnstructuredGrid file from which I want to extract streamlines of the Velocity vector. If I use Paraview the streamlines are generated correctly, however by using the python vtk library I do not get any…

---

## [Color Mapping isosurface with the second scalar component](https://discourse.vtk.org/t/color-mapping-isosurface-with-the-second-scalar-component/7091)

<div class="topic-metadata">

**Author:** [@xianger.qi](https://discourse.vtk.org/u/xianger.qi)\
**Replies:** 0\
**Last updated:** [November 6, 2021, 1:51am UTC](https://discourse.vtk.org/t/color-mapping-isosurface-with-the-second-scalar-component/7091 "2021-11-06T01:51:43Z")

</div>

Hey, I have a question confused me. I use vtksamplefunction to sample a vtkimagedata with specified implicit function. And i make the point scalar array of imagedata from one dimension to two dimension, The first dimens…

---

## [vtkClipClosedSurface bad results](https://discourse.vtk.org/t/vtkclipclosedsurface-bad-results/7073)

<div class="topic-metadata">

**Author:** [@Olivier](https://discourse.vtk.org/u/Olivier)\
**Replies:** 9\
**Last updated:** [November 5, 2021, 6:57pm UTC](https://discourse.vtk.org/t/vtkclipclosedsurface-bad-results/7073 "2021-11-05T18:57:48Z")

</div>

Hi, Here is a quite simple scene that produces bad result after a vtkClipClosedSurface filter. The scene consists of several PolyData nested inside a vtkMultiBlockDataSet. The filter is applied by the mean of vtkThrea…

---

## [VtkImplicitFunction SetTransform not working](https://discourse.vtk.org/t/vtkimplicitfunction-settransform-not-working/7089)

<div class="topic-metadata">

**Author:** [@Hanxin\_Hua](https://discourse.vtk.org/u/Hanxin_Hua)\
**Replies:** 1\
**Last updated:** [November 5, 2021, 6:53pm UTC](https://discourse.vtk.org/t/vtkimplicitfunction-settransform-not-working/7089 "2021-11-05T18:53:51Z")

</div>

Hi everyone, I am having an issue with the transform of the VtkImplicitFunction. I have the following code work: baseTransform is a defined vtkTransform vtkSmartPointer\<vtkSphere\> sphere = vtkSmartPointer\<vtkSphere\>:…

---

## [vtkDistancePolyDataFilter for point clouds](https://discourse.vtk.org/t/vtkdistancepolydatafilter-for-point-clouds/7088)

<div class="topic-metadata">

**Author:** [@marcomusy](https://discourse.vtk.org/u/marcomusy)\
**Replies:** 4\
**Last updated:** [November 5, 2021, 6:43pm UTC](https://discourse.vtk.org/t/vtkdistancepolydatafilter-for-point-clouds/7088 "2021-11-05T18:43:33Z")

</div>

I naively thought that the vtkDistancePolyDataFilter would work with point clouds, but I’m getting this error message: 2021-11-05 19:05:03.577 ( 0.200s) \[ 9E35740\]vtkDistancePolyDataFilt:87 ERR| vtkDistanc…

---

## [python3 and macOS](https://discourse.vtk.org/t/python3-and-macos/6912)

<div class="topic-metadata">

**Author:** [@seanm](https://discourse.vtk.org/u/seanm)\
**Replies:** 9\
**Last updated:** [November 5, 2021, 4:24pm UTC](https://discourse.vtk.org/t/python3-and-macos/6912 "2021-11-05T16:24:34Z")

</div>

Hi all, If turn on VTK\_WRAP\_PYTHON on a recent version of macOS with Xcode installed, it finds: Python3\_EXECUTABLE \*/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions…

---

## [Set the RUNPATH of installed shared libraries to "$ORIGIN"](https://discourse.vtk.org/t/set-the-runpath-of-installed-shared-libraries-to-origin/6234)

<div class="topic-metadata">

**Author:** [@Wile\_E\_Coyote](https://discourse.vtk.org/u/Wile_E_Coyote)\
**Replies:** 7\
**Last updated:** [November 5, 2021, 2:45pm UTC](https://discourse.vtk.org/t/set-the-runpath-of-installed-shared-libraries-to-origin/6234 "2021-11-05T14:45:39Z")

</div>

This is Ubuntu 20.04.2 LTS / x86\_64 / gcc 9.3.0 here. When I build the “VTK-9.0.3”, all its shared libraries get the “RUNPATH” pointing to the "/.../build/lib" directory. However, the “make install” resets the runtime …

---

## [vtkDICOMImageReader information](https://discourse.vtk.org/t/vtkdicomimagereader-information/7081)

<div class="topic-metadata">

**Author:** [@Kamil](https://discourse.vtk.org/u/Kamil)\
**Replies:** 2\
**Last updated:** [November 5, 2021, 2:13pm UTC](https://discourse.vtk.org/t/vtkdicomimagereader-information/7081 "2021-11-05T14:13:06Z")

</div>

Hello, I wondering where are differences between vtkDICOMImageReader data information and dicom information metadata directly? I see that vtkDICOMImageReader shows different values unless I am mistaken. For example for …

---

## [Creating implicitfunction with vtkImplicitModeller and vtkImplicitVolume](https://discourse.vtk.org/t/creating-implicitfunction-with-vtkimplicitmodeller-and-vtkimplicitvolume/6994)

<div class="topic-metadata">

**Author:** [@AustinPeppel](https://discourse.vtk.org/u/AustinPeppel)\
**Replies:** 1\
**Last updated:** [November 5, 2021, 12:37pm UTC](https://discourse.vtk.org/t/creating-implicitfunction-with-vtkimplicitmodeller-and-vtkimplicitvolume/6994 "2021-11-05T12:37:32Z")

</div>

Hey all, I’m pretty new to VTK so I’m trying to wrap my head around a few things. I’ve gotten pretty far but now I’m stuck here. I’d like to clip an isosurface with a specific mesh. I’ve been attempting to do it as show…

---

## [Renderer.removeAllActors() doesn't work when actors are added a mixin](https://discourse.vtk.org/t/renderer-removeallactors-doesnt-work-when-actors-are-added-a-mixin/7069)

<div class="topic-metadata">

**Author:** [@toro](https://discourse.vtk.org/u/toro)\
**Replies:** 3\
**Last updated:** [November 5, 2021, 9:23am UTC](https://discourse.vtk.org/t/renderer-removeallactors-doesnt-work-when-actors-are-added-a-mixin/7069 "2021-11-05T09:23:08Z")

</div>

Hi all, I wanted to add a custom property ‘path’ to vtkActor instances. To do so I created a mixin and added it to my vtkActor instances: const pathMixin = o =\> { let path = ""; return Object.assign({}, o, { …

---

## [vtkMFCWindow - Upgrading to VTK 9.1.0](https://discourse.vtk.org/t/vtkmfcwindow-upgrading-to-vtk-9-1-0/6998)

<div class="topic-metadata">

**Author:** [@dwventer](https://discourse.vtk.org/u/dwventer)\
**Replies:** 12\
**Last updated:** [November 5, 2021, 2:07am UTC](https://discourse.vtk.org/t/vtkmfcwindow-upgrading-to-vtk-9-1-0/6998 "2021-11-05T02:07:30Z")

</div>

I’ve been using VTK 8.2.0 for a while and had no issues with integrating it into MFC in Visual Studio. After I upgraded to VTK 9.1d I get the following message in the VTK output window: “ERROR: In C:\\Work\\3DMetrix\\dev…

---

## [How to use VTK\_array in VTK pipeline (Python)?](https://discourse.vtk.org/t/how-to-use-vtk-array-in-vtk-pipeline-python/7074)

<div class="topic-metadata">

**Author:** [@user\_42](https://discourse.vtk.org/u/user_42)\
**Replies:** 0\
**Last updated:** [November 4, 2021, 12:17pm UTC](https://discourse.vtk.org/t/how-to-use-vtk-array-in-vtk-pipeline-python/7074 "2021-11-04T12:17:39Z")

</div>

I am new to vtk and am trying to do volume rendering with a DICOM file. When I try to read the DICOM file using VTK with the following code: import vtk reader = vtk.vtkDICOMImageReader() reader.SetDirectoryName(r"C:\\Us…

---

## [Is it possibel to compute normal distance from STL surface to point cloud away from STL](https://discourse.vtk.org/t/is-it-possibel-to-compute-normal-distance-from-stl-surface-to-point-cloud-away-from-stl/7071)

<div class="topic-metadata">

**Author:** [@Maruthi\_NH](https://discourse.vtk.org/u/Maruthi_NH)\
**Replies:** 2\
**Last updated:** [November 4, 2021, 11:12am UTC](https://discourse.vtk.org/t/is-it-possibel-to-compute-normal-distance-from-stl-surface-to-point-cloud-away-from-stl/7071 "2021-11-04T11:12:51Z")

</div>

As shown in the figure, I want to compute the normal distance from the STL surface to a given set of points.

---

## [coincident topology offsets and clipping planes](https://discourse.vtk.org/t/coincident-topology-offsets-and-clipping-planes/7068)

<div class="topic-metadata">

**Author:** [@andreasbuykx](https://discourse.vtk.org/u/andreasbuykx)\
**Replies:** 0\
**Last updated:** [November 4, 2021, 7:41am UTC](https://discourse.vtk.org/t/coincident-topology-offsets-and-clipping-planes/7068 "2021-11-04T07:41:35Z")

</div>

Do the coincident topology offsets affect what is clipped by the near and far clipping planes? For example when I have a 2D scene and the lines are moved towards the camera is it possible they are moved to beyond the nea…

---

## [CellData only available for some cells?](https://discourse.vtk.org/t/celldata-only-available-for-some-cells/7067)

<div class="topic-metadata">

**Author:** [@quy.nguyendai](https://discourse.vtk.org/u/quy.nguyendai)\
**Replies:** 0\
**Last updated:** [November 4, 2021, 7:17am UTC](https://discourse.vtk.org/t/celldata-only-available-for-some-cells/7067 "2021-11-04T07:17:32Z")

</div>

Hi, I’m working on a script to output VTK format (.vtu Unstructured Grid Files) of FEM analysis for using with Paraview. For some result code, I have only the results for some cell, not all. For example, I have 200 cel…

---

## [Probe an unstructured grid (vtkUnstructuredGrid) with a volume (three-dimensional vtkImageData)](https://discourse.vtk.org/t/probe-an-unstructured-grid-vtkunstructuredgrid-with-a-volume-three-dimensional-vtkimagedata/2984)

<div class="topic-metadata">

**Author:** [@Gaetan\_Desrues](https://discourse.vtk.org/u/Gaetan_Desrues)\
**Replies:** 7\
**Last updated:** [November 4, 2021, 1:10am UTC](https://discourse.vtk.org/t/probe-an-unstructured-grid-vtkunstructuredgrid-with-a-volume-three-dimensional-vtkimagedata/2984 "2021-11-04T01:10:47Z")

</div>

Hi everyone! I’m trying to use the vtkProbeFilter to interpolate some PointData on a mesh to the points of an Image. As specified in the doc, I believe it is possible: For example, an unstructured grid (vtkUnstructure…

---

## [Initialize vtkPolyData coordinates using vtkFloatArray with three components](https://discourse.vtk.org/t/initialize-vtkpolydata-coordinates-using-vtkfloatarray-with-three-components/7062)

<div class="topic-metadata">

**Author:** [@brnk](https://discourse.vtk.org/u/brnk)\
**Replies:** 1\
**Last updated:** [November 3, 2021, 7:58pm UTC](https://discourse.vtk.org/t/initialize-vtkpolydata-coordinates-using-vtkfloatarray-with-three-components/7062 "2021-11-03T19:58:45Z")

</div>

I want to initialize a vtkPolyData instance using a vtkFloatArray whose three components describe the Cartesian coordinates of the points of a point cloud. Currently, I create a vtkPoints instance and do the following: …

---

## [Help with Starting a Project for 2D SEG-Y Visualization](https://discourse.vtk.org/t/help-with-starting-a-project-for-2d-seg-y-visualization/7058)

<div class="topic-metadata">

**Author:** [@Supaidaman](https://discourse.vtk.org/u/Supaidaman)\
**Replies:** 2\
**Last updated:** [November 3, 2021, 5:28pm UTC](https://discourse.vtk.org/t/help-with-starting-a-project-for-2d-seg-y-visualization/7058 "2021-11-03T17:28:01Z")

</div>

Hello everyone, Recently I’ve been tasked with looking into visualization tools for 2D SEG-Y images and I’ve came across VTK. I’ve managed to build the tools with CMake\\VS2019 and ran some of the samples but I’m confus…

---

## [VTK 9.1.0.rc4 has been tagged](https://discourse.vtk.org/t/vtk-9-1-0-rc4-has-been-tagged/7037)

<div class="topic-metadata">

**Author:** [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)\
**Replies:** 6\
**Last updated:** [November 3, 2021, 3:05pm UTC](https://discourse.vtk.org/t/vtk-9-1-0-rc4-has-been-tagged/7037 "2021-11-03T15:05:58Z")

</div>

Hi all, 9.1.0.rc4 (rc3 had some process timing issues that ended up forcing it to be skipped) is out on PyPI and the repository. The website should be updated within a day or two. This is to be the last rc before the fi…

---

## [ParaViewWeb vs VTKWeb vs VTK.js](https://discourse.vtk.org/t/paraviewweb-vs-vtkweb-vs-vtk-js/7053)

<div class="topic-metadata">

**Author:** [@Abdullah\_Yasir](https://discourse.vtk.org/u/Abdullah_Yasir)\
**Replies:** 1\
**Last updated:** [November 3, 2021, 2:53pm UTC](https://discourse.vtk.org/t/paraviewweb-vs-vtkweb-vs-vtk-js/7053 "2021-11-03T14:53:22Z")

</div>

I just got started with VTK and 3D Visualizations on the web and found different tools that are used for this purpose. I have found documentation related to these individual tools but haven’t seen any comparison between …

---

## [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 …

[Previous page](https://discourse.vtk.org/latest.md?page=155)

[Next page](https://discourse.vtk.org/latest.md?page=157)
