# Support

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

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

**Page:** 49

---

## [How to add a reference plane(background grid)?](https://discourse.vtk.org/t/how-to-add-a-reference-plane-background-grid/11560)

<div class="topic-metadata">

**Author:** [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)\
**Replies:** 1\
**Last updated:** [May 30, 2023, 7:37am UTC](https://discourse.vtk.org/t/how-to-add-a-reference-plane-background-grid/11560 "2023-05-30T07:37:22Z")

</div>

Hello,I found an image in:MPM Landslide - DS Use Case Products Obviously,in ParaView,a reference plane(background grid) is added.I can do same thing by adding a vtkPlane,but it’s size is limited no matter how large i…

---

## [how to clip vtkImageData with the specified mask?](https://discourse.vtk.org/t/how-to-clip-vtkimagedata-with-the-specified-mask/8352)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 5\
**Last updated:** [May 30, 2023, 1:40am UTC](https://discourse.vtk.org/t/how-to-clip-vtkimagedata-with-the-specified-mask/8352 "2023-05-30T01:40:36Z")

</div>

In my project, I have segmented the heart, which means that I have a mask. The mask means the pixel inside heart is one, while the pixel outside heart is zero. Now, I want to display only this heart using vtkFixedPointV…

---

## [How to add a far more bigger actor and change the clip range and keep the camera distance at the same time?](https://discourse.vtk.org/t/how-to-add-a-far-more-bigger-actor-and-change-the-clip-range-and-keep-the-camera-distance-at-the-same-time/11559)

<div class="topic-metadata">

**Author:** [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)\
**Replies:** 1\
**Last updated:** [May 29, 2023, 7:20pm UTC](https://discourse.vtk.org/t/how-to-add-a-far-more-bigger-actor-and-change-the-clip-range-and-keep-the-camera-distance-at-the-same-time/11559 "2023-05-29T19:20:22Z")

</div>

Hello,I add a small actor first,then add another far more bigger actor,then 1,If not invoking the renderer-\>ResetCamera(),everything seems as expected like this: but if scrolling the mouse wheel to change the cam…

---

## [how can i not output InformationKey when i output my data to vtu with vtkUnstructuredGrid](https://discourse.vtk.org/t/how-can-i-not-output-informationkey-when-i-output-my-data-to-vtu-with-vtkunstructuredgrid/11554)

<div class="topic-metadata">

**Author:** [@xiaojinyu-hhu](https://discourse.vtk.org/u/xiaojinyu-hhu)\
**Replies:** 0\
**Last updated:** [May 27, 2023, 4:27pm UTC](https://discourse.vtk.org/t/how-can-i-not-output-informationkey-when-i-output-my-data-to-vtu-with-vtkunstructuredgrid/11554 "2023-05-27T16:27:12Z")

</div>

I output my data to .vtu with vtkXMLUnstructuredGridWriter. However, the vtu file always has “InformationKey”. I don’t want to output this information. the vtu file shown as: \<?xml version="1.0"?\> \<VTKFile type="Unstr…

---

## [How not to output InformationKey when data is output to vtu](https://discourse.vtk.org/t/how-not-to-output-informationkey-when-data-is-output-to-vtu/11552)

<div class="topic-metadata">

**Author:** [@xiaojinyu-hhu](https://discourse.vtk.org/u/xiaojinyu-hhu)\
**Replies:** 0\
**Last updated:** [May 27, 2023, 4:14pm UTC](https://discourse.vtk.org/t/how-not-to-output-informationkey-when-data-is-output-to-vtu/11552 "2023-05-27T16:14:40Z")

</div>

I output data to .vtu with vtkXMLUnstructuredGridWriter. However, VTU files always have InformationKey name=“L2\_NORM\_RANGE” location=“vtkDataArray” length=“2” Value index=“0” 0 Value Value index=“1” 1.1661903912 …

---

## [Why does the actor disappeared when rotating to some specific angle?](https://discourse.vtk.org/t/why-does-the-actor-disappeared-when-rotating-to-some-specific-angle/11546)

<div class="topic-metadata">

**Author:** [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)\
**Replies:** 1\
**Last updated:** [May 26, 2023, 2:40pm UTC](https://discourse.vtk.org/t/why-does-the-actor-disappeared-when-rotating-to-some-specific-angle/11546 "2023-05-26T14:40:35Z")

</div>

Hello,as the gif animation shows,when rotating to specific angle,the actor disappeared and continue to rotate to another angle,the actor appears again. Would you please tell me: Why does this happen? How to make the…

---

## [read STL begginer](https://discourse.vtk.org/t/read-stl-begginer/9569)

<div class="topic-metadata">

**Author:** [@Minigandi](https://discourse.vtk.org/u/Minigandi)\
**Replies:** 6\
**Last updated:** [November 28, 2022, 5:58pm UTC](https://discourse.vtk.org/t/read-stl-begginer/9569 "2022-11-28T17:58:52Z")

</div>

Hey, I’m new with VTK and I compiled all the basics tutorial without any problems. But I wanted to try to read a .stl file with the example in the VTK website https://kitware.github.io/vtk-examples/site/Cxx/IO/ReadSTL/ …

---

## [2D coordinates of labels](https://discourse.vtk.org/t/2d-coordinates-of-labels/11498)

<div class="topic-metadata">

**Author:** [@machur](https://discourse.vtk.org/u/machur)\
**Replies:** 8\
**Last updated:** [May 24, 2023, 7:06pm UTC](https://discourse.vtk.org/t/2d-coordinates-of-labels/11498 "2023-05-24T19:06:48Z")

</div>

Hi, I’m trying to get 2D coordinates of point labels visualized based on the code from the example https://examples.vtk.org/site/Cxx/Visualization/LabelPlacementMapper/. I want to allow the users to interact with the lab…

---

## [VTK-9: How to know which VTK COMPONENT contains which VTK class?](https://discourse.vtk.org/t/vtk-9-how-to-know-which-vtk-component-contains-which-vtk-class/11533)

<div class="topic-metadata">

**Author:** [@fghoussen](https://discourse.vtk.org/u/fghoussen)\
**Replies:** 2\
**Last updated:** [May 24, 2023, 4:50pm UTC](https://discourse.vtk.org/t/vtk-9-how-to-know-which-vtk-component-contains-which-vtk-class/11533 "2023-05-24T16:50:52Z")

</div>

VTK-9: How to know which VTK COMPONENT contains which VTK class? In CMakeLists.txt, we call find\_package(VTK) to get VTK libraries: worked for me as is with apt-get install VTK package. Now I need a specific class vtkO…

---

## [The bottom of the first picture is not closed. If you want to achieve the same effect as the second picture, how can vtk do it or can vtk achieve such a task?](https://discourse.vtk.org/t/the-bottom-of-the-first-picture-is-not-closed-if-you-want-to-achieve-the-same-effect-as-the-second-picture-how-can-vtk-do-it-or-can-vtk-achieve-such-a-task/11492)

<div class="topic-metadata">

**Author:** [@649841458](https://discourse.vtk.org/u/649841458)\
**Replies:** 3\
**Last updated:** [May 24, 2023, 7:45am UTC](https://discourse.vtk.org/t/the-bottom-of-the-first-picture-is-not-closed-if-you-want-to-achieve-the-same-effect-as-the-second-picture-how-can-vtk-do-it-or-can-vtk-achieve-such-a-task/11492 "2023-05-24T07:45:07Z")

</div>

---

## [Hidden structured data (shown anyway, bug?)](https://discourse.vtk.org/t/hidden-structured-data-shown-anyway-bug/11482)

<div class="topic-metadata">

**Author:** [@Jens\_Munk\_Hansen](https://discourse.vtk.org/u/Jens_Munk_Hansen)\
**Replies:** 3\
**Last updated:** [May 23, 2023, 10:53pm UTC](https://discourse.vtk.org/t/hidden-structured-data-shown-anyway-bug/11482 "2023-05-23T22:53:44Z")

</div>

Hi guys I am having some trouble hiding cells or points. It seems like no matter what I do, the points as well as the cell remain visible. from vtkmodules.util.numpy\_support import vtk\_to\_numpy import numpy as np nxy …

---

## [How to triangulate polygon with holes?](https://discourse.vtk.org/t/how-to-triangulate-polygon-with-holes/11497)

<div class="topic-metadata">

**Author:** [@gongwaner](https://discourse.vtk.org/u/gongwaner)\
**Replies:** 3\
**Last updated:** [May 23, 2023, 8:38am UTC](https://discourse.vtk.org/t/how-to-triangulate-polygon-with-holes/11497 "2023-05-23T08:38:47Z")

</div>

I have a set of 3d points defining a polygon A, and a set of points defining polygon B. All these points are planar, and A is actually a loop within B. My question is: how can i generate a triangulated polygon with hole…

---

## [Is there a way to set min/max zoom (parallelScales) for mouseManipulators?](https://discourse.vtk.org/t/is-there-a-way-to-set-min-max-zoom-parallelscales-for-mousemanipulators/11517)

<div class="topic-metadata">

**Author:** [@DavidO](https://discourse.vtk.org/u/DavidO)\
**Replies:** 0\
**Last updated:** [May 22, 2023, 3:55pm UTC](https://discourse.vtk.org/t/is-there-a-way-to-set-min-max-zoom-parallelscales-for-mousemanipulators/11517 "2023-05-22T15:55:33Z")

</div>

Sorry for the quick second post, but a separate question so makes sense for a separate thread. I’d like to cap the zoomLevels permitted by vtkMouseCameraTrackballZoomToMouseManipulator in terms of a min and a max. Is t…

---

## [Is there a way to track pan and zoom events from certain mouseManipulators?](https://discourse.vtk.org/t/is-there-a-way-to-track-pan-and-zoom-events-from-certain-mousemanipulators/11513)

<div class="topic-metadata">

**Author:** [@DavidO](https://discourse.vtk.org/u/DavidO)\
**Replies:** 0\
**Last updated:** [May 22, 2023, 3:53pm UTC](https://discourse.vtk.org/t/is-there-a-way-to-track-pan-and-zoom-events-from-certain-mousemanipulators/11513 "2023-05-22T15:53:13Z")

</div>

Hi there, I’d like to track the user interactions of pan and zooming events that are enabled by the following manipulators: vtkMouseCameraTrackballPanManipulator vtkMouseCameraTrackballZoomToMouseManipulator Does VTK…

---

## [Slider v. VTK transfer functions](https://discourse.vtk.org/t/slider-v-vtk-transfer-functions/11446)

<div class="topic-metadata">

**Author:** [@AndreaC](https://discourse.vtk.org/u/AndreaC)\
**Replies:** 1\
**Last updated:** [May 22, 2023, 2:27pm UTC](https://discourse.vtk.org/t/slider-v-vtk-transfer-functions/11446 "2023-05-22T14:27:56Z")

</div>

I’m migrating a project from vispy to VTK to visualize OCT volumes (mainly because VTK seems to have better memory management than vispy in our tests). However, I have issues optimizing the transfer function for our data…

---

## [Write a Scene to png](https://discourse.vtk.org/t/write-a-scene-to-png/11392)

<div class="topic-metadata">

**Author:** [@Parisa\_Rabbani](https://discourse.vtk.org/u/Parisa_Rabbani)\
**Replies:** 5\
**Last updated:** [May 19, 2023, 4:33pm UTC](https://discourse.vtk.org/t/write-a-scene-to-png/11392 "2023-05-19T16:33:12Z")

</div>

Hi! I have a vtkchart plot, I am trying to write my plot as png. It seems like “vtkWindowToImageFilter” has some issue. I get the following error: Any help would be much appreciated. Best, Parisa

---

## [How to include a time series in a vtkhdf file?](https://discourse.vtk.org/t/how-to-include-a-time-series-in-a-vtkhdf-file/11430)

<div class="topic-metadata">

**Author:** [@lucasbanting](https://discourse.vtk.org/u/lucasbanting)\
**Replies:** 16\
**Last updated:** [May 17, 2023, 5:07pm UTC](https://discourse.vtk.org/t/how-to-include-a-time-series-in-a-vtkhdf-file/11430 "2023-05-17T17:07:06Z")

</div>

I am attempting to use the VTKHDF format to store time series data of an unstructured grid. So far I have been able to save single timesteps into the hdf file and load them into paraview, but I can’t find any documentat…

---

## [Set Position Handle Widget In C#](https://discourse.vtk.org/t/set-position-handle-widget-in-c/11405)

<div class="topic-metadata">

**Author:** [@m.h.shanazary](https://discourse.vtk.org/u/m.h.shanazary)\
**Replies:** 4\
**Last updated:** [May 17, 2023, 3:59pm UTC](https://discourse.vtk.org/t/set-position-handle-widget-in-c/11405 "2023-05-17T15:59:10Z")

</div>

Hi how Can Set Position Point Handle Widget In C# Set Position Point Get IntPtr And I Do not Know How Can Set That Thanks For Helping You

---

## [vtkPoints id re-ordering](https://discourse.vtk.org/t/vtkpoints-id-re-ordering/11444)

<div class="topic-metadata">

**Author:** [@apteroti](https://discourse.vtk.org/u/apteroti)\
**Replies:** 6\
**Last updated:** [May 16, 2023, 11:01pm UTC](https://discourse.vtk.org/t/vtkpoints-id-re-ordering/11444 "2023-05-16T23:01:31Z")

</div>

Hi everyone I have two vtkPoints sets; both have an equal number of points. The point sets resulted from resampling two more or less similar-looking polydatas (triangular meshes). My goal is to re-order the vertex indic…

---

## [How to populate vtkColorSeries with specific RGB values?](https://discourse.vtk.org/t/how-to-populate-vtkcolorseries-with-specific-rgb-values/6966)

<div class="topic-metadata">

**Author:** [@Tomasso](https://discourse.vtk.org/u/Tomasso)\
**Replies:** 1\
**Last updated:** [May 16, 2023, 10:34pm UTC](https://discourse.vtk.org/t/how-to-populate-vtkcolorseries-with-specific-rgb-values/6966 "2023-05-16T22:34:30Z")

</div>

How to populate a vtkColorSeries with specific RGB values? I see method vtkColorSeries::SetColor(index, vtkColor3ub &) and examples that populate the series with vtkNamedColors, e.g. to set the 0th color in the series: c…

---

## [How to convert vtkImageData to binary images？](https://discourse.vtk.org/t/how-to-convert-vtkimagedata-to-binary-images/11468)

<div class="topic-metadata">

**Author:** [@Jawanz](https://discourse.vtk.org/u/Jawanz)\
**Replies:** 3\
**Last updated:** [May 16, 2023, 2:30pm UTC](https://discourse.vtk.org/t/how-to-convert-vtkimagedata-to-binary-images/11468 "2023-05-16T14:30:15Z")

</div>

I have a vtkImageData mask data, and each point is of the Unsigned Char type. In order to save memory, I want to convert it to VTK\_BIT type vtkImageData data. Is there any good way, or is there any way to save vtkImageDa…

---

## [rendering bug](https://discourse.vtk.org/t/rendering-bug/11472)

<div class="topic-metadata">

**Author:** [@WeiYu](https://discourse.vtk.org/u/WeiYu)\
**Replies:** 0\
**Last updated:** [May 16, 2023, 10:34am UTC](https://discourse.vtk.org/t/rendering-bug/11472 "2023-05-16T10:34:21Z")

</div>

When we are displaying a slice of IVUS image using vtkImageViewer2, a zoomed image of the bottem-left corner of the renderwindow will somehow be displayed at the top-right quarter of the window. If we rotate the Came…

---

## [\[vtk.js\] vtkLookupTable.setNumberOfTableValues is not a function](https://discourse.vtk.org/t/vtk-js-vtklookuptable-setnumberoftablevalues-is-not-a-function/11453)

<div class="topic-metadata">

**Author:** [@Alex\_Vergara](https://discourse.vtk.org/u/Alex_Vergara)\
**Replies:** 2\
**Last updated:** [May 15, 2023, 12:09pm UTC](https://discourse.vtk.org/t/vtk-js-vtklookuptable-setnumberoftablevalues-is-not-a-function/11453 "2023-05-15T12:09:18Z")

</div>

Hello I’m trying to build a custom LUT, but I can’t translate one example from python/c++ to javascript. My code fails at the line vtkLookupTable.setNumberOfTableValues(256) saying that it is not a function. What is wr…

---

## [Plot Point Markers not showing](https://discourse.vtk.org/t/plot-point-markers-not-showing/11443)

<div class="topic-metadata">

**Author:** [@frenchnq](https://discourse.vtk.org/u/frenchnq)\
**Replies:** 0\
**Last updated:** [May 12, 2023, 2:46pm UTC](https://discourse.vtk.org/t/plot-point-markers-not-showing/11443 "2023-05-12T14:46:22Z")

</div>

I am developing a plotting routine using the vtk c# package and have run into an issue that only occurs on certain machines. My original code successfully was able to show an XY plot with the following (abbreviated) cod…

---

## [How to setup an Indexed vtkLookupTable?](https://discourse.vtk.org/t/how-to-setup-an-indexed-vtklookuptable/11416)

<div class="topic-metadata">

**Author:** [@Seun](https://discourse.vtk.org/u/Seun)\
**Replies:** 8\
**Last updated:** [May 12, 2023, 2:18pm UTC](https://discourse.vtk.org/t/how-to-setup-an-indexed-vtklookuptable/11416 "2023-05-12T14:18:03Z")

</div>

Hello everyone, I was wondering if someone could point me in the right direction as to how to setup a vtkLooupTable that’s indexed. My basic idea is vtkSmartPointer\<vtkLookupTable\> lut = vtkSmartPointer\<vtkLookupTable\>…

---

## [How to get a 3D model of a closed surface](https://discourse.vtk.org/t/how-to-get-a-3d-model-of-a-closed-surface/11442)

<div class="topic-metadata">

**Author:** [@PPYoung](https://discourse.vtk.org/u/PPYoung)\
**Replies:** 0\
**Last updated:** [May 12, 2023, 9:03am UTC](https://discourse.vtk.org/t/how-to-get-a-3d-model-of-a-closed-surface/11442 "2023-05-12T09:03:40Z")

</div>

hello. everyone. I am practicing the example in this link. https://kitware.github.io/vtk-examples/site/Cxx/Medical/MedicalDemo1/ In this example, a marching cube is used to obtain a surface, Looking at the resulting …

---

## [How Can Cut With Vtk Image Plan Widget To Get view Look Like 3D Slicer](https://discourse.vtk.org/t/how-can-cut-with-vtk-image-plan-widget-to-get-view-look-like-3d-slicer/11424)

<div class="topic-metadata">

**Author:** [@m.h.shanazary](https://discourse.vtk.org/u/m.h.shanazary)\
**Replies:** 1\
**Last updated:** [May 12, 2023, 4:08am UTC](https://discourse.vtk.org/t/how-can-cut-with-vtk-image-plan-widget-to-get-view-look-like-3d-slicer/11424 "2023-05-12T04:08:15Z")

</div>

Hi I Using three Vtk Image Plan Widget To Cut dicom Series And Get Three View Axial Coronal and Sagittal And Return To Me This View But In 3dSlicer View Of Series Return This View Code Of Vtk Image Plan Widget…

---

## [VTK Training Courses coming up in June](https://discourse.vtk.org/t/vtk-training-courses-coming-up-in-june/11438)

<div class="topic-metadata">

**Author:** [@cory.quammen](https://discourse.vtk.org/u/cory.quammen)\
**Replies:** 0\
**Last updated:** [May 11, 2023, 8:16pm UTC](https://discourse.vtk.org/t/vtk-training-courses-coming-up-in-june/11438 "2023-05-11T20:16:47Z")

</div>

Learn from the developers behind VTK at Kitware’s live user training courses. We’re hosting a VTK Beginner Course June 12-13 and VTK Advanced Course June 14-15. Register before May 30 and receive a 20% discount!

---

## [How to add netcdf variables](https://discourse.vtk.org/t/how-to-add-netcdf-variables/11436)

<div class="topic-metadata">

**Author:** [@Cave1212](https://discourse.vtk.org/u/Cave1212)\
**Replies:** 0\
**Last updated:** [May 11, 2023, 12:55pm UTC](https://discourse.vtk.org/t/how-to-add-netcdf-variables/11436 "2023-05-11T12:55:37Z")

</div>

so i have this code vtkSmartPointer\<vtkNetCDFCFReader\> reader = vtkSmartPointer\<vtkNetCDFCFReader\>::New(); reader-\>SetFileName("C:/Users/admin/Desktop/BOLTgui/BOLT/cami.nc"); reader-\>Update(); vtkDataObje…

---

## [python vtk: how to get the right intrinsic and extrinsic matrix given a camera?](https://discourse.vtk.org/t/python-vtk-how-to-get-the-right-intrinsic-and-extrinsic-matrix-given-a-camera/11435)

<div class="topic-metadata">

**Author:** [@woody](https://discourse.vtk.org/u/woody)\
**Replies:** 0\
**Last updated:** [May 11, 2023, 12:29pm UTC](https://discourse.vtk.org/t/python-vtk-how-to-get-the-right-intrinsic-and-extrinsic-matrix-given-a-camera/11435 "2023-05-11T12:29:44Z")

</div>

def off\_screen\_render(file\_in, file\_out): """ Save the render screen to a png file Args: file\_in: .vtp file path file\_out: .png file path """ colors = vtk.vtkNamedColors() # Set …

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

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