# Latest

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

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

**Page:** 87

---

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

---

## [It seems that vtkLabelWidget is not being loaded.](https://discourse.vtk.org/t/it-seems-that-vtklabelwidget-is-not-being-loaded/11474)

<div class="topic-metadata">

**Author:** [@won](https://discourse.vtk.org/u/won)\
**Replies:** 3\
**Last updated:** [May 18, 2023, 2:55pm UTC](https://discourse.vtk.org/t/it-seems-that-vtklabelwidget-is-not-being-loaded/11474 "2023-05-18T14:55:51Z")

</div>

I see that you’re currently using version 28.1.0, and it appears that vtkLabelWidget is not available in the Widget.Widget3D. According to your findings on GitHub, the folder exists but the import statement is missing. A…

---

## [Rendering BarChart in vtkRemoteView](https://discourse.vtk.org/t/rendering-barchart-in-vtkremoteview/11475)

<div class="topic-metadata">

**Author:** [@Nikhil216](https://discourse.vtk.org/u/Nikhil216)\
**Replies:** 4\
**Last updated:** [May 18, 2023, 2:54pm UTC](https://discourse.vtk.org/t/rendering-barchart-in-vtkremoteview/11475 "2023-05-18T14:54:22Z")

</div>

I am working on web client which connects to a paraview server using vtk.js vtkRemoteView class. I use pvbatch with a python script to spawn the paraview server. Right now it connects and displays the render view and I c…

---

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

---

## [Render Live Visualization from Lidar Packet Stream](https://discourse.vtk.org/t/render-live-visualization-from-lidar-packet-stream/11480)

<div class="topic-metadata">

**Author:** [@knowledge\_monger](https://discourse.vtk.org/u/knowledge_monger)\
**Replies:** 2\
**Last updated:** [May 17, 2023, 3:46pm UTC](https://discourse.vtk.org/t/render-live-visualization-from-lidar-packet-stream/11480 "2023-05-17T15:46:45Z")

</div>

I am building a react website that would have a view port for a live view of a packet stream coming from a lidar. This packet stream is being served by a server that runs on the cloud. What is the way to connect vtk.js …

---

## [Support for COPC and Entwine formats?](https://discourse.vtk.org/t/support-for-copc-and-entwine-formats/11465)

<div class="topic-metadata">

**Author:** [@rcm](https://discourse.vtk.org/u/rcm)\
**Replies:** 7\
**Last updated:** [May 17, 2023, 3:05pm UTC](https://discourse.vtk.org/t/support-for-copc-and-entwine-formats/11465 "2023-05-17T15:05:52Z")

</div>

Does VTK support rendering of pointclouds from COPC/Entwine sources with a “point budget”? Similar to potree, where points further down the octree are downloaded/rendered as you zoom in to an area. My end goal is to mak…

---

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

---

## [vtkStaticCellLocator problem (vtk9.0.3)](https://discourse.vtk.org/t/vtkstaticcelllocator-problem-vtk9-0-3/7854)

<div class="topic-metadata">

**Author:** [@marcomusy](https://discourse.vtk.org/u/marcomusy)\
**Replies:** 18\
**Last updated:** [May 16, 2023, 3:05pm UTC](https://discourse.vtk.org/t/vtkstaticcelllocator-problem-vtk9-0-3/7854 "2023-05-16T15:05:37Z")

</div>

I observe something strange in vtkStaticCellLocator.FindClosestPoint() vs vtkCellLocator.FindClosestPoint(): with vtkStaticCellLocator (wrong): with vtkCellLocator (correct): from vedo import \* # Load and cut m…

---

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

---

## [Question about vtkOpenGLRenderWindow function added SetFrameBlitMode](https://discourse.vtk.org/t/question-about-vtkopenglrenderwindow-function-added-setframeblitmode/11456)

<div class="topic-metadata">

**Author:** [@stavbodik](https://discourse.vtk.org/u/stavbodik)\
**Replies:** 2\
**Last updated:** [May 15, 2023, 11:51am UTC](https://discourse.vtk.org/t/question-about-vtkopenglrenderwindow-function-added-setframeblitmode/11456 "2023-05-15T11:51:17Z")

</div>

Hi All in this MR SetFrameBlitMode was added to vtkOpenGLRenderWindow :slight\_smile: I had a problem where rendering Volume with vtkFixedPointVolumeRayCastMapper on MAC with Windows Parallels and graphic card "Paralle…

---

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

---

## [vtkGUISupportQtQuickCxxTests error](https://discourse.vtk.org/t/vtkguisupportqtquickcxxtests-error/11449)

<div class="topic-metadata">

**Author:** [@marlon.ma](https://discourse.vtk.org/u/marlon.ma)\
**Replies:** 2\
**Last updated:** [May 14, 2023, 12:47pm UTC](https://discourse.vtk.org/t/vtkguisupportqtquickcxxtests-error/11449 "2023-05-14T12:47:24Z")

</div>

Available tests: 0. TestQQuickVTKRenderItem 1. TestQQuickVTKRenderItemWidget 2. TestQQuickVTKRenderWindow To run a test, enter the test number: 1 CTEST\_FULL\_OUTPUT (Avoid ctest truncation of output) QML2\_IMPORT\_PAT…

---

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

---

## [vtkbool now available at conda-forge](https://discourse.vtk.org/t/vtkbool-now-available-at-conda-forge/11345)

<div class="topic-metadata">

**Author:** [@Ron84](https://discourse.vtk.org/u/Ron84)\
**Replies:** 1\
**Last updated:** [May 12, 2023, 4:16am UTC](https://discourse.vtk.org/t/vtkbool-now-available-at-conda-forge/11345 "2023-05-12T04:16:05Z")

</div>

vtkbool, the VTK-based library for boolean operations, is now available at conda-forge: Vtkbool :: Anaconda.org @lassoan Could be also interesting for Slicer. @whophil Thank you for making this possible.

---

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

---

## [Node.js and webpack deployment of GeometryViewer with AR](https://discourse.vtk.org/t/node-js-and-webpack-deployment-of-geometryviewer-with-ar/10482)

<div class="topic-metadata">

**Author:** [@Lois\_Vazquez](https://discourse.vtk.org/u/Lois_Vazquez)\
**Replies:** 8\
**Last updated:** [May 11, 2023, 5:01pm UTC](https://discourse.vtk.org/t/node-js-and-webpack-deployment-of-geometryviewer-with-ar/10482 "2023-05-11T17:01:23Z")

</div>

Hello. I’m new to vtk.js so I apologize if I’m skipping some basic point that I don’t know. I am trying to deploy the GeometryViewer example with node.js and webpack in order to test the augmented reality support. My de…

---

## [qvtk rendering](https://discourse.vtk.org/t/qvtk-rendering/11432)

<div class="topic-metadata">

**Author:** [@ubed20](https://discourse.vtk.org/u/ubed20)\
**Replies:** 0\
**Last updated:** [May 11, 2023, 9:14am UTC](https://discourse.vtk.org/t/qvtk-rendering/11432 "2023-05-11T09:14:54Z")

</div>

i am rendering change detection using point clouds data using vtk actors in QT GUI but i cannot interact with the window i can just load the data for change detection. i cannot zoom or rotate the point clouds and render …

---

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

---

## [Make nanoflann a third party used for point locators](https://discourse.vtk.org/t/make-nanoflann-a-third-party-used-for-point-locators/4300)

<div class="topic-metadata">

**Author:** [@Yohann\_Bearzi](https://discourse.vtk.org/u/Yohann_Bearzi)\
**Replies:** 20\
**Last updated:** [May 11, 2023, 12:42pm UTC](https://discourse.vtk.org/t/make-nanoflann-a-third-party-used-for-point-locators/4300 "2023-05-11T12:42:20Z")

</div>

nanoflann, forked from flann (Fast Library for Approximate Nearest Neighbors), is a very powerful and fast point search library that I’ve been using for years on point clouds. There are a lot of different indexing scheme…

---

## [\[bug\] Python-vtk BalloonWidget example does not work with vtk 9.2.2](https://discourse.vtk.org/t/bug-python-vtk-balloonwidget-example-does-not-work-with-vtk-9-2-2/10103)

<div class="topic-metadata">

**Author:** [@Matthieu](https://discourse.vtk.org/u/Matthieu)\
**Replies:** 7\
**Last updated:** [May 11, 2023, 12:38pm UTC](https://discourse.vtk.org/t/bug-python-vtk-balloonwidget-example-does-not-work-with-vtk-9-2-2/10103 "2023-05-11T12:38:53Z")

</div>

Hello, when I try to run the BalloonWidget example I’ve got a SIGSEV error (it disappears if I comment the EnabledOn() line… but then it is not a very useful example !) Other examples work well and I have installed vtk …

---

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

---

## [How to force widget manager to use a particular renderer?](https://discourse.vtk.org/t/how-to-force-widget-manager-to-use-a-particular-renderer/11410)

<div class="topic-metadata">

**Author:** [@Sneha-pk](https://discourse.vtk.org/u/Sneha-pk)\
**Replies:** 3\
**Last updated:** [May 10, 2023, 10:01pm UTC](https://discourse.vtk.org/t/how-to-force-widget-manager-to-use-a-particular-renderer/11410 "2023-05-10T22:01:04Z")

</div>

Hello , I am trying to add axes actor to my vtk.js viewer component. I am then trying to use the axesActor to rotate the scene in y axis by 180 degree. I have created an instance of orientation widget and added the axe…

---

## [How to add vtkScalarBarActor to the Vtk Calculator](https://discourse.vtk.org/t/how-to-add-vtkscalarbaractor-to-the-vtk-calculator/11419)

<div class="topic-metadata">

**Author:** [@Quynh\_Duong](https://discourse.vtk.org/u/Quynh_Duong)\
**Replies:** 1\
**Last updated:** [May 10, 2023, 7:56pm UTC](https://discourse.vtk.org/t/how-to-add-vtkscalarbaractor-to-the-vtk-calculator/11419 "2023-05-10T19:56:44Z")

</div>

import ‘@kitware/vtk.js/favicon’; // Load the rendering pieces we want to use (for both WebGL and WebGPU) import ‘@kitware/vtk.js/Rendering/Profiles/Geometry’; import macro from ‘@kitware/vtk.js/macros’; import vtkFu…

---

## [Cause CMake to find different VTK?](https://discourse.vtk.org/t/cause-cmake-to-find-different-vtk/11428)

<div class="topic-metadata">

**Author:** [@rexthor](https://discourse.vtk.org/u/rexthor)\
**Replies:** 2\
**Last updated:** [May 10, 2023, 3:47pm UTC](https://discourse.vtk.org/t/cause-cmake-to-find-different-vtk/11428 "2023-05-10T15:47:27Z")

</div>

I have the standard VTK libraries installed (mostly for use in Python), but I would like to try to build a C++ project, and use a different set of libraries in ~/opt/vtk. How would I give CMake a hint to look there first…

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

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