# Support

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

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

**Page:** 129

---

## [Disable transparency when using 2 renderers](https://discourse.vtk.org/t/disable-transparency-when-using-2-renderers/3551)

<div class="topic-metadata">

**Author:** [@mastrogiorgis](https://discourse.vtk.org/u/mastrogiorgis)\
**Replies:** 2\
**Last updated:** [June 17, 2020, 11:27am UTC](https://discourse.vtk.org/t/disable-transparency-when-using-2-renderers/3551 "2020-06-17T11:27:06Z")

</div>

Hello, I have two renderers, one to visualise the blocks as seen below and another one to visualise the floor as below It seems that transparency is causing the floor to show above the blocks. Is there any advice…

---

## [How to get image size in vtkimageviewer2 c++?](https://discourse.vtk.org/t/how-to-get-image-size-in-vtkimageviewer2-c/3560)

<div class="topic-metadata">

**Author:** [@beginner](https://discourse.vtk.org/u/beginner)\
**Replies:** 1\
**Last updated:** [June 17, 2020, 7:00am UTC](https://discourse.vtk.org/t/how-to-get-image-size-in-vtkimageviewer2-c/3560 "2020-06-17T07:00:38Z")

</div>

Hi everyone, I’m trying to get the image size using vtkimageviewer2 by using this fcn: virtual int\* vtkImageViewer2::GetSize() currently, I am getting 0 from (imagesmartpointer -\> GetSize()). Since the return type is…

---

## [VTK 9 wheels on PyPI?](https://discourse.vtk.org/t/vtk-9-wheels-on-pypi/3340)

<div class="topic-metadata">

**Author:** [@estan](https://discourse.vtk.org/u/estan)\
**Replies:** 8\
**Last updated:** [June 16, 2020, 3:58pm UTC](https://discourse.vtk.org/t/vtk-9-wheels-on-pypi/3340 "2020-06-16T15:58:25Z")

</div>

Hi all, Will there be wheels uploaded to PyPI for the VTK 9 release? Wheels for Python 3.8 would also be nice, as that’s the version shipped in the newly released Ubuntu 20.04 LTS. Cheers, Elvis

---

## [Issue with VTK functions](https://discourse.vtk.org/t/issue-with-vtk-functions/3568)

<div class="topic-metadata">

**Author:** [@Shahd\_Alshahrani](https://discourse.vtk.org/u/Shahd_Alshahrani)\
**Replies:** 0\
**Last updated:** [June 16, 2020, 12:25pm UTC](https://discourse.vtk.org/t/issue-with-vtk-functions/3568 "2020-06-16T12:25:52Z")

</div>

I have an issue with some VTK related functions which is based on previous versions of VTK. For example, img\_data.Update() img\_shape = img\_data.GetWholeExtent() These functions are not defined in current versions of …

---

## [Add 3d text in polydata](https://discourse.vtk.org/t/add-3d-text-in-polydata/3533)

<div class="topic-metadata">

**Author:** [@zandarina](https://discourse.vtk.org/u/zandarina)\
**Replies:** 4\
**Last updated:** [June 16, 2020, 7:23am UTC](https://discourse.vtk.org/t/add-3d-text-in-polydata/3533 "2020-06-16T07:23:40Z")

</div>

Hello all, I want to add some 3d text in the polydata. What I do is to check the intersecting points of the 3d text (polydata extruded) into the polydata where I want to add the text. So what I want is to get the inters…

---

## [Generate point cloud from rbg and depth image](https://discourse.vtk.org/t/generate-point-cloud-from-rbg-and-depth-image/3563)

<div class="topic-metadata">

**Author:** [@beginner](https://discourse.vtk.org/u/beginner)\
**Replies:** 1\
**Last updated:** [June 16, 2020, 12:27am UTC](https://discourse.vtk.org/t/generate-point-cloud-from-rbg-and-depth-image/3563 "2020-06-16T00:27:57Z")

</div>

I found this vtkDepthImageToPointCloud() but the way I used it didn’t seem to work. Can anyone explain how to use it?

---

## [Creating a .png file from a .vtu file](https://discourse.vtk.org/t/creating-a-png-file-from-a-vtu-file/3564)

<div class="topic-metadata">

**Author:** [@Quinn\_B](https://discourse.vtk.org/u/Quinn_B)\
**Replies:** 0\
**Last updated:** [June 15, 2020, 9:41pm UTC](https://discourse.vtk.org/t/creating-a-png-file-from-a-vtu-file/3564 "2020-06-15T21:41:13Z")

</div>

I’m trying to create a screenshot essentially of the 2d render made from this code: I’ve been looking around to see if anyone else has done this and I’m trying to avoid just using the screenshot tool that is on my comp…

---

## [3D segmentation surface with colors](https://discourse.vtk.org/t/3d-segmentation-surface-with-colors/3525)

<div class="topic-metadata">

**Author:** [@aruckli](https://discourse.vtk.org/u/aruckli)\
**Replies:** 2\
**Last updated:** [June 15, 2020, 11:44am UTC](https://discourse.vtk.org/t/3d-segmentation-surface-with-colors/3525 "2020-06-15T11:44:34Z")

</div>

Hi, I’m new to this forum and to VTK. I’m developing a C++ app to automatically segment and analyze the hip. I have a 3D MRI image in ITK format, and the binary segmentation mask already calculated. I can easily convert…

---

## [2D pointcloud plot using vtkActor](https://discourse.vtk.org/t/2d-pointcloud-plot-using-vtkactor/502)

<div class="topic-metadata">

**Author:** [@thully](https://discourse.vtk.org/u/thully)\
**Replies:** 12\
**Last updated:** [June 15, 2020, 1:00pm UTC](https://discourse.vtk.org/t/2d-pointcloud-plot-using-vtkactor/502 "2020-06-15T13:00:42Z")

</div>

In my application, I am displaying a 3D pointcloud view alongside a 2D overhead view of the same thing. For the 3D pointcloud, I am using a vtkActor and vtkPolyDataMapper with vtkTableToPolyData as input (I opted not to …

---

## [python wheel: How to compile the qt GUI for vtk’s git master version on Ubuntu 20.04.](https://discourse.vtk.org/t/python-wheel-how-to-compile-the-qt-gui-for-vtk-s-git-master-version-on-ubuntu-20-04/3529)

<div class="topic-metadata">

**Author:** [@Hongyi\_Zhao](https://discourse.vtk.org/u/Hongyi_Zhao)\
**Replies:** 9\
**Last updated:** [June 14, 2020, 2:43am UTC](https://discourse.vtk.org/t/python-wheel-how-to-compile-the-qt-gui-for-vtk-s-git-master-version-on-ubuntu-20-04/3529 "2020-06-14T02:43:33Z")

</div>

Hi, I try to compile the qt GUI for vtk’s git master version on Ubuntu 20.04 and use the following option: cmake \\ -DCMAKE\_INSTALL\_PREFIX=/usr/local \\ -DCMAKE\_INSTALL\_RPATH=/usr/local/lib \\ -DVTK\_WHEEL\_BUILD=ON \\…

---

## [Renumbering mesh cells](https://discourse.vtk.org/t/renumbering-mesh-cells/3530)

<div class="topic-metadata">

**Author:** [@GonzaloS](https://discourse.vtk.org/u/GonzaloS)\
**Replies:** 2\
**Last updated:** [June 13, 2020, 7:31pm UTC](https://discourse.vtk.org/t/renumbering-mesh-cells/3530 "2020-06-13T19:31:54Z")

</div>

Hi everyone, I’m interested in exchanging the local index of some cells in a vtkUnstructuredGrid object. Does anyone know if there is a function in VTK which allows to modify or exchange the indices of two cells? Thank…

---

## [Visible cell selection - HardwareSelector.py example is not working reliably](https://discourse.vtk.org/t/visible-cell-selection-hardwareselector-py-example-is-not-working-reliably/1262)

<div class="topic-metadata">

**Author:** [@S0Phon](https://discourse.vtk.org/u/S0Phon)\
**Replies:** 17\
**Last updated:** [June 13, 2020, 7:03pm UTC](https://discourse.vtk.org/t/visible-cell-selection-hardwareselector-py-example-is-not-working-reliably/1262 "2020-06-13T19:03:50Z")

</div>

I have been trying to use the hardwareselector example given at https://lorensen.github.io/VTKExamples/site/Python/Visualization/HardwareSelector/ and this only occasionally works. I am running the file exacly as it is g…

---

## [Looking for optimal 3D grid with regular Z axis and arbitrary XY](https://discourse.vtk.org/t/looking-for-optimal-3d-grid-with-regular-z-axis-and-arbitrary-xy/3539)

<div class="topic-metadata">

**Author:** [@kerim](https://discourse.vtk.org/u/kerim)\
**Replies:** 8\
**Last updated:** [June 13, 2020, 6:48pm UTC](https://discourse.vtk.org/t/looking-for-optimal-3d-grid-with-regular-z-axis-and-arbitrary-xy/3539 "2020-06-13T18:48:40Z")

</div>

Hi, I have a dataset wich has regular Z axis and arbytrary X and Y axes. If Z axis were also arbitrary then to display my dataset I would use vtkStructuredGrid and in this case I would need to set X,Y,Z coordinates for …

---

## [QVTKRenderWindowInteractor and QSurfaceFormat](https://discourse.vtk.org/t/qvtkrenderwindowinteractor-and-qsurfaceformat/3542)

<div class="topic-metadata">

**Author:** [@raungst](https://discourse.vtk.org/u/raungst)\
**Replies:** 1\
**Last updated:** [June 13, 2020, 6:15pm UTC](https://discourse.vtk.org/t/qvtkrenderwindowinteractor-and-qsurfaceformat/3542 "2020-06-13T18:15:13Z")

</div>

I’ve run into an issue on Linux when rendering and unstructured grid with SetRepresentationToSurface(). On Windows, it works great, but with testing on Linux the surfaces don’t seem to be rendering in the correct order a…

---

## [Failed to run \`pip install vtk'.](https://discourse.vtk.org/t/failed-to-run-pip-install-vtk/3487)

<div class="topic-metadata">

**Author:** [@Hongyi\_Zhao](https://discourse.vtk.org/u/Hongyi_Zhao)\
**Replies:** 3\
**Last updated:** [June 12, 2020, 8:17am UTC](https://discourse.vtk.org/t/failed-to-run-pip-install-vtk/3487 "2020-06-12T08:17:49Z")

</div>

Hi, I try to install vtk from pypi but failed as following: $ python -V Python 3.8.3 $ pip install vtk Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple ERROR: Could not find a version that satisfies the req…

---

## [Use \`\` -DVTK\_WHEEL\_BUILD=ON -DVTK\_WRAP\_PYTHON=ON '' will disable the creation for vtkpython.](https://discourse.vtk.org/t/use-dvtk-wheel-build-on-dvtk-wrap-python-on-will-disable-the-creation-for-vtkpython/3528)

<div class="topic-metadata">

**Author:** [@Hongyi\_Zhao](https://discourse.vtk.org/u/Hongyi_Zhao)\
**Replies:** 0\
**Last updated:** [June 12, 2020, 5:42am UTC](https://discourse.vtk.org/t/use-dvtk-wheel-build-on-dvtk-wrap-python-on-will-disable-the-creation-for-vtkpython/3528 "2020-06-12T05:42:08Z")

</div>

Hi, I try to compile vtk with the following options: # Do the following under the build directory locating at vtk sourcecode directory: $ cmake -DCMAKE\_INSTALL\_PREFIX=/home/werner/vtk \\ -DCMAKE\_INS…

---

## [This OpenGL implementation does not support the required texture size](https://discourse.vtk.org/t/this-opengl-implementation-does-not-support-the-required-texture-size/3472)

<div class="topic-metadata">

**Author:** [@flaviu2](https://discourse.vtk.org/u/flaviu2)\
**Replies:** 4\
**Last updated:** [June 12, 2020, 12:07am UTC](https://discourse.vtk.org/t/this-opengl-implementation-does-not-support-the-required-texture-size/3472 "2020-06-12T00:07:11Z")

</div>

Sometimes I get a strange warning when is executing the following code (on vtkVolume): m\_pColorTransferFunction-\>AddRGBPoint(dLevel + dWindow, ...); m\_pColorTransferFunction-\>AddRGBPoint(dLevel + dWindow, ...); m\_pColor…

---

## [vtkSeedRepresentation GetSeedDisplayPosition z value](https://discourse.vtk.org/t/vtkseedrepresentation-getseeddisplayposition-z-value/3516)

<div class="topic-metadata">

**Author:** [@flaviu2](https://discourse.vtk.org/u/flaviu2)\
**Replies:** 2\
**Last updated:** [June 11, 2020, 12:16pm UTC](https://discourse.vtk.org/t/vtkseedrepresentation-getseeddisplayposition-z-value/3516 "2020-06-11T12:16:35Z")

</div>

I have setup a vtkSeedWidget (m\_pSeed) on a vtkVolume: vtkPointHandleRepresentation3D\* pPointHandle = vtkPointHandleRepresentation3D::New(); pPointHandle-\>GetProperty()-\>SetColor(1, 0, 0); pPointHandle-\>GetProperty()…

---

## [vtkSeedWidget vtkSeedRepresentation avoid right click](https://discourse.vtk.org/t/vtkseedwidget-vtkseedrepresentation-avoid-right-click/3521)

<div class="topic-metadata">

**Author:** [@flaviu2](https://discourse.vtk.org/u/flaviu2)\
**Replies:** 0\
**Last updated:** [June 11, 2020, 11:40am UTC](https://discourse.vtk.org/t/vtkseedwidget-vtkseedrepresentation-avoid-right-click/3521 "2020-06-11T11:40:18Z")

</div>

How can I avoid right click event on a vtkSeedWidget / vtkSeedRepresentation ? I have tried: vtkSeedWidgetCallback\* pCallback = vtkSeedWidgetCallback::New(); pCallback-\>SetRepresentation(pSeedRepresentation); m\_pSee…

---

## [Issues interacting with the linewidget2](https://discourse.vtk.org/t/issues-interacting-with-the-linewidget2/3471)

<div class="topic-metadata">

**Author:** [@lwh0328](https://discourse.vtk.org/u/lwh0328)\
**Replies:** 4\
**Last updated:** [June 11, 2020, 10:19am UTC](https://discourse.vtk.org/t/issues-interacting-with-the-linewidget2/3471 "2020-06-11T10:19:14Z")

</div>

Hi VTK folks: Currently I’m doing a project to integrate VTK to a Qt program. The part I’m doing now is to display the three orthogonal planes, overlaying on the top with the two cross hair lines. I know there are some …

---

## [ICP Transform to SimpleITK images in Python](https://discourse.vtk.org/t/icp-transform-to-simpleitk-images-in-python/3511)

<div class="topic-metadata">

**Author:** [@GLG](https://discourse.vtk.org/u/GLG)\
**Replies:** 3\
**Last updated:** [June 10, 2020, 8:12pm UTC](https://discourse.vtk.org/t/icp-transform-to-simpleitk-images-in-python/3511 "2020-06-10T20:12:19Z")

</div>

Hello ! I am new to VTK and I am trying to use VTK ICP algorithm in a rigid way to get a transform to use in SimpleITK then. I do that in Python. Here is how I proceed: Import nifty file and apply Discrete Marching C…

---

## [Use antialiasing only on some actors](https://discourse.vtk.org/t/use-antialiasing-only-on-some-actors/3500)

<div class="topic-metadata">

**Author:** [@embeddedmz](https://discourse.vtk.org/u/embeddedmz)\
**Replies:** 5\
**Last updated:** [June 10, 2020, 3:01pm UTC](https://discourse.vtk.org/t/use-antialiasing-only-on-some-actors/3500 "2020-06-10T15:01:28Z")

</div>

Hi, The title says it all : is it possible to use antialiasing only on some render window objects (e.g. a vtkPolyData). I’m using PNG image as textures for planes and antialisaing is modifiying their borders. Thanks.

---

## [VTK class development from VTK 4.2](https://discourse.vtk.org/t/vtk-class-development-from-vtk-4-2/3510)

<div class="topic-metadata">

**Author:** [@sugeng](https://discourse.vtk.org/u/sugeng)\
**Replies:** 1\
**Last updated:** [June 10, 2020, 2:58pm UTC](https://discourse.vtk.org/t/vtk-class-development-from-vtk-4-2/3510 "2020-06-10T14:58:02Z")

</div>

Dear All, I have my own VTK header file that was written for VTK 4.2. The file has dependency with two header files from VTK namely “vtkDataSetToPolyDataFilter.h” and “vtkPolyDataSource.h”. After building process, ther…

---

## [The differences between VTKPythonPackage and VTK Python Wrapper.](https://discourse.vtk.org/t/the-differences-between-vtkpythonpackage-and-vtk-python-wrapper/3509)

<div class="topic-metadata">

**Author:** [@Hongyi\_Zhao](https://discourse.vtk.org/u/Hongyi_Zhao)\
**Replies:** 0\
**Last updated:** [June 10, 2020, 8:10am UTC](https://discourse.vtk.org/t/the-differences-between-vtkpythonpackage-and-vtk-python-wrapper/3509 "2020-06-10T08:10:25Z")

</div>

Hi, It seems there are two methods for building the VTK interface for python. One is VTKPythonPackage and the other is VTK Python Wrapper. What’s the differences between the above two method for interfacing VTK with pyt…

---

## [Size of the line in a vtksplinewidget2 depends on the viewport size. How to fix the size](https://discourse.vtk.org/t/size-of-the-line-in-a-vtksplinewidget2-depends-on-the-viewport-size-how-to-fix-the-size/3465)

<div class="topic-metadata">

**Author:** [@zandarina](https://discourse.vtk.org/u/zandarina)\
**Replies:** 4\
**Last updated:** [June 9, 2020, 11:47am UTC](https://discourse.vtk.org/t/size-of-the-line-in-a-vtksplinewidget2-depends-on-the-viewport-size-how-to-fix-the-size/3465 "2020-06-09T11:47:12Z")

</div>

Hello, I am rendering a spline widget in two different viewers. One viewer is made by different viewports and the other has only one in the render windows. I have two spline widgets created in the same way but the result…

---

## [The handles of the vtkdistancewidget move when I move the camera](https://discourse.vtk.org/t/the-handles-of-the-vtkdistancewidget-move-when-i-move-the-camera/3498)

<div class="topic-metadata">

**Author:** [@zandarina](https://discourse.vtk.org/u/zandarina)\
**Replies:** 0\
**Last updated:** [June 9, 2020, 8:47am UTC](https://discourse.vtk.org/t/the-handles-of-the-vtkdistancewidget-move-when-i-move-the-camera/3498 "2020-06-09T08:47:59Z")

</div>

Hello, I found a weird behabiour when I move the camera when I am using the vtkdistancewidget or vtkanglewidget. When I move the camera the handles separate from the lines of the widget. Someone knows how to correct this…

---

## [Reduce the data resolution](https://discourse.vtk.org/t/reduce-the-data-resolution/3495)

<div class="topic-metadata">

**Author:** [@Mao](https://discourse.vtk.org/u/Mao)\
**Replies:** 3\
**Last updated:** [June 9, 2020, 2:33am UTC](https://discourse.vtk.org/t/reduce-the-data-resolution/3495 "2020-06-09T02:33:21Z")

</div>

I loaded a series of DICOM images of CT scan and extracted the surface data by vtkMarchingCubes. When I saved the 3d model into .stl file by vtkSTLWriter, it became a vary large file,so i thought the resolution of surfa…

---

## [How to use Png Reader to geneate ImageData](https://discourse.vtk.org/t/how-to-use-png-reader-to-geneate-imagedata/3493)

<div class="topic-metadata">

**Author:** [@beginner](https://discourse.vtk.org/u/beginner)\
**Replies:** 1\
**Last updated:** [June 9, 2020, 6:22am UTC](https://discourse.vtk.org/t/how-to-use-png-reader-to-geneate-imagedata/3493 "2020-06-09T06:22:10Z")

</div>

Hi. I am new to VTK and I am wondering as to how I can generate Image Data after using png reader. Any form of help would be appreciated. Thanks!

---

## [How do I set frustum data on a vtkSelectionNode?](https://discourse.vtk.org/t/how-do-i-set-frustum-data-on-a-vtkselectionnode/3484)

<div class="topic-metadata">

**Author:** [@scotsman60](https://discourse.vtk.org/u/scotsman60)\
**Replies:** 2\
**Last updated:** [June 9, 2020, 6:03am UTC](https://discourse.vtk.org/t/how-do-i-set-frustum-data-on-a-vtkselectionnode/3484 "2020-06-09T06:03:23Z")

</div>

I’m experimenting with various strategies to support rubber band picking and I’ve been successful when using vtkExtractGeometry to do the picking, but I see some advantages if I can switch to using vtkExtractSelection, v…

---

## [Build VTK with Vcpkg on the machine](https://discourse.vtk.org/t/build-vtk-with-vcpkg-on-the-machine/3489)

<div class="topic-metadata">

**Author:** [@Andy-Cheng](https://discourse.vtk.org/u/Andy-Cheng)\
**Replies:** 1\
**Last updated:** [June 8, 2020, 12:09pm UTC](https://discourse.vtk.org/t/build-vtk-with-vcpkg-on-the-machine/3489 "2020-06-08T12:09:00Z")

</div>

I failed to build VTK 8.2.0 on Windows 10 with VS 2017 and VS 2019, but after removing the integration between vcpkg and Visual Studio by vcpkg integrate remove, the build is successful.

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

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