# Support

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

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

**Page:** 92

---

## [Display data with a "preset" LookupTable](https://discourse.vtk.org/t/display-data-with-a-preset-lookuptable/7139)

<div class="topic-metadata">

**Author:** [@Olivier](https://discourse.vtk.org/u/Olivier)\
**Replies:** 0\
**Last updated:** [November 10, 2021, 3:27pm UTC](https://discourse.vtk.org/t/display-data-with-a-preset-lookuptable/7139 "2021-11-10T15:27:18Z")

</div>

Hi, In ParaView & VTK.js, there are several Color table presets (stored in ColorMaps.json), and functions to transform these presets into valid LookupTables. I’ve tried to replicate those codes into classic C++ API, bu…

---

## [vtkCellPicker + vtkCompositePolyDataMapper2 + vtkMultiBlockDataSet = picking invisible blocks ...](https://discourse.vtk.org/t/vtkcellpicker-vtkcompositepolydatamapper2-vtkmultiblockdataset-picking-invisible-blocks/7090)

<div class="topic-metadata">

**Author:** [@Olivier](https://discourse.vtk.org/u/Olivier)\
**Replies:** 1\
**Last updated:** [November 10, 2021, 3:11pm UTC](https://discourse.vtk.org/t/vtkcellpicker-vtkcompositepolydatamapper2-vtkmultiblockdataset-picking-invisible-blocks/7090 "2021-11-10T15:11:51Z")

</div>

Hi, I have a complex tree of PolyDatas nested inside a MultiBlockDataSet. MultiBlockDataSet is then showed with a vtkCompositePolyDataMapper2. Individual PolyDatas can be shown or hidden by the mean of Mapper-\>GetCom…

---

## [building VTK in windows 10, visual studio 2019, lways crashes what am i doing wrong?](https://discourse.vtk.org/t/building-vtk-in-windows-10-visual-studio-2019-lways-crashes-what-am-i-doing-wrong/7105)

<div class="topic-metadata">

**Author:** [@cebugdev](https://discourse.vtk.org/u/cebugdev)\
**Replies:** 1\
**Last updated:** [November 9, 2021, 7:55pm UTC](https://discourse.vtk.org/t/building-vtk-in-windows-10-visual-studio-2019-lways-crashes-what-am-i-doing-wrong/7105 "2021-11-09T19:55:58Z")

</div>

I have followed various tutorials including one where I build it with QT and building it as a standalone or running a stand alone application without QT I even just copy and pasted the sampl…

---

## [Display 3D image in RGB](https://discourse.vtk.org/t/display-3d-image-in-rgb/7122)

<div class="topic-metadata">

**Author:** [@Luis\_Carlos\_Carneiro](https://discourse.vtk.org/u/Luis_Carlos_Carneiro)\
**Replies:** 1\
**Last updated:** [November 9, 2021, 7:24pm UTC](https://discourse.vtk.org/t/display-3d-image-in-rgb/7122 "2021-11-09T19:24:12Z")

</div>

Dear All, I want to display a 3D image in RGB. What is missing in the following code? self.image\_3d = vtk.vtkImageData() self.image\_3d.SetDimensions(dim5) self.image\_3d.SetSpacing(scale5) points = self.…

---

## [Geometry / Triangle Filter not using enough Memory.](https://discourse.vtk.org/t/geometry-triangle-filter-not-using-enough-memory/7082)

<div class="topic-metadata">

**Author:** [@AustinPeppel](https://discourse.vtk.org/u/AustinPeppel)\
**Replies:** 8\
**Last updated:** [November 9, 2021, 2:56pm UTC](https://discourse.vtk.org/t/geometry-triangle-filter-not-using-enough-memory/7082 "2021-11-09T14:56:47Z")

</div>

Not something I ever thought I’d have an issue with in regards to programming. I have a relatively complex lattice structure, (that will be more complex with time), that I want to turn into a mesh for exporting. It has …

---

## [Cannot read recent DICOM files with Python](https://discourse.vtk.org/t/cannot-read-recent-dicom-files-with-python/6961)

<div class="topic-metadata">

**Author:** [@LuisFco](https://discourse.vtk.org/u/LuisFco)\
**Replies:** 4\
**Last updated:** [November 9, 2021, 1:47pm UTC](https://discourse.vtk.org/t/cannot-read-recent-dicom-files-with-python/6961 "2021-11-09T13:47:09Z")

</div>

Hi there. I’ve been using some code from the example section to read DICOM files. My code looks very similar to the one from this example. I’ve been using it successfully with DICOM files from the internet. Then I moved …

---

## [When using vtkUnstructuredGrid, how can I not display the internal cells](https://discourse.vtk.org/t/when-using-vtkunstructuredgrid-how-can-i-not-display-the-internal-cells/7102)

<div class="topic-metadata">

**Author:** [@KeyboardMan](https://discourse.vtk.org/u/KeyboardMan)\
**Replies:** 1\
**Last updated:** [November 9, 2021, 1:01pm UTC](https://discourse.vtk.org/t/when-using-vtkunstructuredgrid-how-can-i-not-display-the-internal-cells/7102 "2021-11-09T13:01:09Z")

</div>

In this scenario, the number of cell reaches 7000000。 This caused the rendering to be very slow, and it was impossible to see the internal structure.

---

## [VTK9.1.0 problems](https://discourse.vtk.org/t/vtk9-1-0-problems/7094)

<div class="topic-metadata">

**Author:** [@marcomusy](https://discourse.vtk.org/u/marcomusy)\
**Replies:** 5\
**Last updated:** [November 9, 2021, 4:24am UTC](https://discourse.vtk.org/t/vtk9-1-0-problems/7094 "2021-11-09T04:24:21Z")

</div>

In the following code import vtk src = vtk.vtkCylinderSource() mapper = vtk.vtkPolyDataMapper() mapper.SetInputConnection(src.GetOutputPort()) actor = vtk.vtkActor() actor.SetMapper(mapper) actor.GetProperty().EdgeV…

---

## [Light disappears when camera view direction is parallel to plane](https://discourse.vtk.org/t/light-disappears-when-camera-view-direction-is-parallel-to-plane/7099)

<div class="topic-metadata">

**Author:** [@rdbrn](https://discourse.vtk.org/u/rdbrn)\
**Replies:** 2\
**Last updated:** [November 8, 2021, 6:48pm UTC](https://discourse.vtk.org/t/light-disappears-when-camera-view-direction-is-parallel-to-plane/7099 "2021-11-08T18:48:05Z")

</div>

I have a textured plane with ambient, diffuse, specular and specular power set. There are no lights in the scene. When I move the camera such that the view is in line with the plane, or away from it, then the plane goes…

---

## [Sagittal](https://discourse.vtk.org/t/sagittal/2832)

<div class="topic-metadata">

**Author:** [@Yongun\_Lee](https://discourse.vtk.org/u/Yongun_Lee)\
**Replies:** 37\
**Last updated:** [November 8, 2021, 3:08pm UTC](https://discourse.vtk.org/t/sagittal/2832 "2021-11-08T15:08:05Z")

</div>

Hello. I have a question. The first screen capture is Slicer, and the second screen capture is my program. The original image is Axial. Q1. Why is Sagittal plane looking right instead of left in my program? Q2. I…

---

## [Extract Streamlines arrival time](https://discourse.vtk.org/t/extract-streamlines-arrival-time/7108)

<div class="topic-metadata">

**Author:** [@Francesco\_Montanaro](https://discourse.vtk.org/u/Francesco_Montanaro)\
**Replies:** 0\
**Last updated:** [November 8, 2021, 12:04pm UTC](https://discourse.vtk.org/t/extract-streamlines-arrival-time/7108 "2021-11-08T12:04:23Z")

</div>

Hi, I’m trying to extract “time” information for streamlines as the total time a particle needs for traveling from the starting point (of the streamline) to a certain position. I have already computed the streamlines a…

---

## [Displaying objects in all viewports to same scale](https://discourse.vtk.org/t/displaying-objects-in-all-viewports-to-same-scale/7101)

<div class="topic-metadata">

**Author:** [@NameRakes](https://discourse.vtk.org/u/NameRakes)\
**Replies:** 1\
**Last updated:** [November 8, 2021, 2:41am UTC](https://discourse.vtk.org/t/displaying-objects-in-all-viewports-to-same-scale/7101 "2021-11-08T02:41:38Z")

</div>

I have the same object displayed in two viewports of the render window: bottom is elevation view, top is plan view. My set up is: 1 Hex8 in unstructured grid (box dimensions along X: 1.0, Y: 0.5, Z: 2.0) 1 Actor (ma…

---

## [problem with interpolating vtkImageData on vtkPolyData with vtkPointInterpolator](https://discourse.vtk.org/t/problem-with-interpolating-vtkimagedata-on-vtkpolydata-with-vtkpointinterpolator/6594)

<div class="topic-metadata">

**Author:** [@martinick](https://discourse.vtk.org/u/martinick)\
**Replies:** 10\
**Last updated:** [November 8, 2021, 1:23am UTC](https://discourse.vtk.org/t/problem-with-interpolating-vtkimagedata-on-vtkpolydata-with-vtkpointinterpolator/6594 "2021-11-08T01:23:05Z")

</div>

Hi all, I’m trying to interpolate a .vti volume on a .vtp mesh using vtkPointInterpolator but I get “Segmentation fault (core dumped)” when I’m updating the vtkPointInterpolator filter. Here is my code: import vtk # R…

---

## [Bad saving in MET\_UCHAR instead MET\_UCHAR\_ARRAY](https://discourse.vtk.org/t/bad-saving-in-met-uchar-instead-met-uchar-array/7098)

<div class="topic-metadata">

**Author:** [@Luis\_Carlos\_Carneiro](https://discourse.vtk.org/u/Luis_Carlos_Carneiro)\
**Replies:** 1\
**Last updated:** [November 7, 2021, 8:13pm UTC](https://discourse.vtk.org/t/bad-saving-in-met-uchar-instead-met-uchar-array/7098 "2021-11-07T20:13:16Z")

</div>

Dear All, I want that the image\_3d be saved as MET\_UCHAR\_ARRAY and the code below saves in MET\_UCHAR with only one component instead of three. How can be instructed the saving be done the right way? Thanks, Luís Gonça…

---

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

---

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

---

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

---

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

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

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