# Latest

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

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

**Page:** 210

---

## [Render Background white and transparent](https://discourse.vtk.org/t/render-background-white-and-transparent/2480)

<div class="topic-metadata">

**Author:** [@Ana\_Margarida\_Mota](https://discourse.vtk.org/u/Ana_Margarida_Mota)\
**Replies:** 10\
**Last updated:** [June 19, 2020, 7:18am UTC](https://discourse.vtk.org/t/render-background-white-and-transparent/2480 "2020-06-19T07:18:03Z")

</div>

Dear colleagues, I need to set the render background to white (until then everything is OK with renderer-\>SetBackground(1.0,1.0,1.0)) and TRANSPARENT (otherwise my image doesn’t appear, it is everything white). That’s …

---

## [How can I color the point by vtkPolyData](https://discourse.vtk.org/t/how-can-i-color-the-point-by-vtkpolydata/3574)

<div class="topic-metadata">

**Author:** [@11110](https://discourse.vtk.org/u/11110)\
**Replies:** 1\
**Last updated:** [June 17, 2020, 7:38pm UTC](https://discourse.vtk.org/t/how-can-i-color-the-point-by-vtkpolydata/3574 "2020-06-17T19:38:24Z")

</div>

Hi, my ply file like this ply format ascii 1.0 element vertex 1722844 property float x property float y property float z property uchar red property uchar green property uchar blue element face 0 property lis…

---

## [Extraction size vtkPolyDataConnectivityFilter Issue](https://discourse.vtk.org/t/extraction-size-vtkpolydataconnectivityfilter-issue/3577)

<div class="topic-metadata">

**Author:** [@sherinnovation](https://discourse.vtk.org/u/sherinnovation)\
**Replies:** 4\
**Last updated:** [June 17, 2020, 7:31pm UTC](https://discourse.vtk.org/t/extraction-size-vtkpolydataconnectivityfilter-issue/3577 "2020-06-17T19:31:25Z")

</div>

Hi!, I have around 2000 hair like strands in 3d space. All of those strands are actually loaded from a single vtk file (size k) and the loaded polydata has number of points n. When I use vtkPolyDataConnectivityFilter, …

---

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

---

## [Rendering Using GPU](https://discourse.vtk.org/t/rendering-using-gpu/3423)

<div class="topic-metadata">

**Author:** [@Rasoul\_Sharifian](https://discourse.vtk.org/u/Rasoul_Sharifian)\
**Replies:** 4\
**Last updated:** [June 17, 2020, 6:28am UTC](https://discourse.vtk.org/t/rendering-using-gpu/3423 "2020-06-17T06:28:58Z")

</div>

Hi all, I have a question about using GPU for rendering 3d data. I found this example in lorensen site, but I have an error. The exception is: Exception thrown at 0x00007FF8631E96BC (vtkRenderingVolume-8.1.dll) in VTK…

---

## [The future of VTK\_LEGACY\_REMOVE](https://discourse.vtk.org/t/the-future-of-vtk-legacy-remove/3561)

<div class="topic-metadata">

**Author:** [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)\
**Replies:** 4\
**Last updated:** [June 16, 2020, 5:40pm UTC](https://discourse.vtk.org/t/the-future-of-vtk-legacy-remove/3561 "2020-06-16T17:40:26Z")

</div>

\[ I had this as a draft and never actually published it. Sorry for the delay in this information. \] Is to be removed itself :slight\_smile: . Instead, there will now be VTK\_DEPRECATED\_IN\_X\_Y\_Z where X, Y, and Z form the…

---

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

---

## [VTK\_POLYHEDRON difficulties](https://discourse.vtk.org/t/vtk-polyhedron-difficulties/3545)

<div class="topic-metadata">

**Author:** [@cobo](https://discourse.vtk.org/u/cobo)\
**Replies:** 6\
**Last updated:** [June 16, 2020, 11:31am UTC](https://discourse.vtk.org/t/vtk-polyhedron-difficulties/3545 "2020-06-16T11:31:47Z")

</div>

I am generating VTK\_POLYHEDRON items programmatically and they do not show. If I save them to a vtu file, reload directly that file - and still do not see the polyhedra! Reading docs and studying the vtu file I see that…

---

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

---

## [release vs master branch VTK\_MAJOR\_VERSION / VTK\_MINOR\_VERSION](https://discourse.vtk.org/t/release-vs-master-branch-vtk-major-version-vtk-minor-version/3557)

<div class="topic-metadata">

**Author:** [@seanm](https://discourse.vtk.org/u/seanm)\
**Replies:** 5\
**Last updated:** [June 16, 2020, 2:02am UTC](https://discourse.vtk.org/t/release-vs-master-branch-vtk-major-version-vtk-minor-version/3557 "2020-06-16T02:02:12Z")

</div>

Hi all, It seems that VTK\_MAJOR\_VERSION and VTK\_MINOR\_VERSION are currently 9.0 in both the release and master branch. Shouldn’t master be incremented by now? I’m not aware of how/when this is done, but their being th…

---

## [VTK-Web Server](https://discourse.vtk.org/t/vtk-web-server/3497)

<div class="topic-metadata">

**Author:** [@lopes](https://discourse.vtk.org/u/lopes)\
**Replies:** 8\
**Last updated:** [June 16, 2020, 12:35am UTC](https://discourse.vtk.org/t/vtk-web-server/3497 "2020-06-16T00:35:03Z")

</div>

I am attempting to run VTK as a server, following this guide: http://kitware.github.io/paraviewweb/examples/RemoteRenderer.html#Using-VTK-as-server I keep receiving the following error: File “vtk\_server.py”, line 33, i…

---

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

---

## [Writing custom passes in vtk.js](https://discourse.vtk.org/t/writing-custom-passes-in-vtk-js/3558)

<div class="topic-metadata">

**Author:** [@dominikw](https://discourse.vtk.org/u/dominikw)\
**Replies:** 0\
**Last updated:** [June 15, 2020, 5:20pm UTC](https://discourse.vtk.org/t/writing-custom-passes-in-vtk-js/3558 "2020-06-15T17:20:56Z")

</div>

Hello Everybody, This is my first entry in this forum so please be nice :slight\_smile: We are using vtk.js to render volume data in the browser which works pretty good so far. The problem is that a new custom version o…

---

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

---

## [New feature: getting a stack trace on leaked objects with VTK\_DEBUG\_LEAKS](https://discourse.vtk.org/t/new-feature-getting-a-stack-trace-on-leaked-objects-with-vtk-debug-leaks/835)

<div class="topic-metadata">

**Author:** [@cory.quammen](https://discourse.vtk.org/u/cory.quammen)\
**Replies:** 18\
**Last updated:** [June 15, 2020, 3:45am UTC](https://discourse.vtk.org/t/new-feature-getting-a-stack-trace-on-leaked-objects-with-vtk-debug-leaks/835 "2020-06-15T03:45:27Z")

</div>

I just merged a new feature to VTK that augments vtkDebugLeaks. This feature lets you record a stack trace where leaked VTK objects were allocated. This can be a very useful when debugging VTK object leaks. Previously, …

---

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

---

## [New free video tutorials! VTK.js and OHIF web apps](https://discourse.vtk.org/t/new-free-video-tutorials-vtk-js-and-ohif-web-apps/2164)

<div class="topic-metadata">

**Author:** [@pieper](https://discourse.vtk.org/u/pieper)\
**Replies:** 6\
**Last updated:** [June 12, 2020, 8:38pm UTC](https://discourse.vtk.org/t/new-free-video-tutorials-vtk-js-and-ohif-web-apps/2164 "2020-06-12T20:38:01Z")

</div>

What: The Open Health Imaging Foundation (OHIF) and Kitware have teamed up to help you create amazing 3D zero-footprint medical imaging web applications using state-of-the-art open- source software. Did we mention it’s…

---

## [DICOM Print SCU and DICOM Print SCP](https://discourse.vtk.org/t/dicom-print-scu-and-dicom-print-scp/3535)

<div class="topic-metadata">

**Author:** [@gunavg](https://discourse.vtk.org/u/gunavg)\
**Replies:** 2\
**Last updated:** [June 12, 2020, 4:08pm UTC](https://discourse.vtk.org/t/dicom-print-scu-and-dicom-print-scp/3535 "2020-06-12T16:08:31Z")

</div>

Hi Good day Does DICOM Print SCU and DICOM Print SCP available in VTK ? Looking forward your reply. Thanks

---

## [Eclipse/Java - VTK native libraries can't be found with release mode](https://discourse.vtk.org/t/eclipse-java-vtk-native-libraries-cant-be-found-with-release-mode/3476)

<div class="topic-metadata">

**Author:** [@dporter](https://discourse.vtk.org/u/dporter)\
**Replies:** 6\
**Last updated:** [June 12, 2020, 10:25am UTC](https://discourse.vtk.org/t/eclipse-java-vtk-native-libraries-cant-be-found-with-release-mode/3476 "2020-06-12T10:25:53Z")

</div>

After integrating my vtk.jar and setting the library path in eclipse for use with the Java wrappers, the examples run fine in debug mode. But, in release mode, it can’t load the vtk native libraries; vtkNativeLibrary.Loa…

---

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

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

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