# Latest

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

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

**Page:** 78

---

## [vtk remote rendering, slider rpc call has no effect untill mouse click on renerwindow.](https://discourse.vtk.org/t/vtk-remote-rendering-slider-rpc-call-has-no-effect-untill-mouse-click-on-renerwindow/12043)

<div class="topic-metadata">

**Author:** [@baoyun](https://discourse.vtk.org/u/baoyun)\
**Replies:** 4\
**Last updated:** [July 27, 2023, 7:26pm UTC](https://discourse.vtk.org/t/vtk-remote-rendering-slider-rpc-call-has-no-effect-untill-mouse-click-on-renerwindow/12043 "2023-07-27T19:26:34Z")

</div>

On server size, I have below rpc function to change image slice: @exportRpc(“image.slice.setz”) def set\_z\_slice(self, z\_slice): global masterSlicer, renderWindow, renderWindowInteractor (x, y, z) = masterSlicer.GetR…

---

## [vtkRemoteView get pixel intensity, how far the clident side interactorstyle can go](https://discourse.vtk.org/t/vtkremoteview-get-pixel-intensity-how-far-the-clident-side-interactorstyle-can-go/12010)

<div class="topic-metadata">

**Author:** [@baoyun](https://discourse.vtk.org/u/baoyun)\
**Replies:** 6\
**Last updated:** [July 27, 2023, 4:16pm UTC](https://discourse.vtk.org/t/vtkremoteview-get-pixel-intensity-how-far-the-clident-side-interactorstyle-can-go/12010 "2023-07-27T16:16:10Z")

</div>

Hi, I am working on vtk.js client code for vtk remote rendering to get pixel density of image slice at mouse pressed location For client side rendering, I can do everything on client side, interactor.onLeftButtonPr…

---

## [Issues with Trame, Docker, Caprover, Pyvista, Web App Setup](https://discourse.vtk.org/t/issues-with-trame-docker-caprover-pyvista-web-app-setup/12024)

<div class="topic-metadata">

**Author:** [@Ryder\_Davidson](https://discourse.vtk.org/u/Ryder_Davidson)\
**Replies:** 6\
**Last updated:** [July 27, 2023, 1:39pm UTC](https://discourse.vtk.org/t/issues-with-trame-docker-caprover-pyvista-web-app-setup/12024 "2023-07-27T13:39:06Z")

</div>

First of all, I want to express my gratitude for the amazing work that you all do – not to mention a very responsive support forum. I am developing a web application that utilizes VTK – viz. Trame and Pyvista – to render…

---

## [how to get the individual polygon from the vtkpolydatareader (\*.vtk)](https://discourse.vtk.org/t/how-to-get-the-individual-polygon-from-the-vtkpolydatareader-vtk/12040)

<div class="topic-metadata">

**Author:** [@senthilgis](https://discourse.vtk.org/u/senthilgis)\
**Replies:** 0\
**Last updated:** [July 27, 2023, 9:14am UTC](https://discourse.vtk.org/t/how-to-get-the-individual-polygon-from-the-vtkpolydatareader-vtk/12040 "2023-07-27T09:14:35Z")

</div>

Hi, Can anyone help me to get the separate polygon from the set of polys array ? var reader = vtk.IO.Legacy.vtkPolyDataReader.newInstance(); const polydata = reader.getOutputData(); const polys = polydata.getPolys().…

---

## [How do I pass a structure through the vtk callback function for client data parameter?](https://discourse.vtk.org/t/how-do-i-pass-a-structure-through-the-vtk-callback-function-for-client-data-parameter/12038)

<div class="topic-metadata">

**Author:** [@adityaDas](https://discourse.vtk.org/u/adityaDas)\
**Replies:** 0\
**Last updated:** [July 27, 2023, 7:52am UTC](https://discourse.vtk.org/t/how-do-i-pass-a-structure-through-the-vtk-callback-function-for-client-data-parameter/12038 "2023-07-27T07:52:18Z")

</div>

Hello everybody. I have been trying to pass a struct of the following type: struct ClientData { vtkSmartPointer\<vtkCamera\> camera; emscripten::val vtkCameraChangeFn; }; Into the vtk callback functionality. In t…

---

## [\[VTK Wasm\] Axes do not show up when using axes actor](https://discourse.vtk.org/t/vtk-wasm-axes-do-not-show-up-when-using-axes-actor/11917)

<div class="topic-metadata">

**Author:** [@adityaDas](https://discourse.vtk.org/u/adityaDas)\
**Replies:** 3\
**Last updated:** [July 27, 2023, 7:42am UTC](https://discourse.vtk.org/t/vtk-wasm-axes-do-not-show-up-when-using-axes-actor/11917 "2023-07-27T07:42:21Z")

</div>

We have been trying to use VTK Axes actors to display an axes triad on the scene. In this term, we have followed the instructions stated in this particular example: examples.vtk.org/site/Cxx/Interaction/CallBack/. How…

---

## [Visualize real-time data to VTK using images or images from RealSense SDK2 Cam D435 models (using MFC)](https://discourse.vtk.org/t/visualize-real-time-data-to-vtk-using-images-or-images-from-realsense-sdk2-cam-d435-models-using-mfc/12036)

<div class="topic-metadata">

**Author:** [@Kim](https://discourse.vtk.org/u/Kim)\
**Replies:** 0\
**Last updated:** [July 27, 2023, 5:12am UTC](https://discourse.vtk.org/t/visualize-real-time-data-to-vtk-using-images-or-images-from-realsense-sdk2-cam-d435-models-using-mfc/12036 "2023-07-27T05:12:35Z")

</div>

Hello, I am currently using RealSense Camera D435 I want to show the video image of Realsensers2sdk to VTK in real time, but I left it because I was wondering how to approach it and how to convert the image data from RS…

---

## [Expanding a closed contour surface by some distance with the help of surface normals.](https://discourse.vtk.org/t/expanding-a-closed-contour-surface-by-some-distance-with-the-help-of-surface-normals/11724)

<div class="topic-metadata">

**Author:** [@Sai\_Chaitanya\_Rodda](https://discourse.vtk.org/u/Sai_Chaitanya_Rodda)\
**Replies:** 4\
**Last updated:** [July 27, 2023, 3:28am UTC](https://discourse.vtk.org/t/expanding-a-closed-contour-surface-by-some-distance-with-the-help-of-surface-normals/11724 "2023-07-27T03:28:16Z")

</div>

Hello Everyone, I have a closed contour polydata with points and normals (created from vtkPolyDataNormals). I tried to exoand the contour with the help of the normals by a certain distance (1 m). This I have done by cal…

---

## [Maximizing Computational Resources for Surface Reconstruction: Involving Multiple CPU Cores and GPU](https://discourse.vtk.org/t/maximizing-computational-resources-for-surface-reconstruction-involving-multiple-cpu-cores-and-gpu/12012)

<div class="topic-metadata">

**Author:** [@guyqqcom](https://discourse.vtk.org/u/guyqqcom)\
**Replies:** 2\
**Last updated:** [July 26, 2023, 2:37pm UTC](https://discourse.vtk.org/t/maximizing-computational-resources-for-surface-reconstruction-involving-multiple-cpu-cores-and-gpu/12012 "2023-07-26T14:37:44Z")

</div>

Hello everyone, I am currently working on surface reconstruction using PowerCrust in Remote. However, I’ve encountered an issue where only one CPU core is being utilized for the computations, reaching 100% usage. I’m se…

---

## [how to keep mask image the same color](https://discourse.vtk.org/t/how-to-keep-mask-image-the-same-color/12030)

<div class="topic-metadata">

**Author:** [@yi\_zhang](https://discourse.vtk.org/u/yi_zhang)\
**Replies:** 0\
**Last updated:** [July 26, 2023, 1:46pm UTC](https://discourse.vtk.org/t/how-to-keep-mask-image-the-same-color/12030 "2023-07-26T13:46:46Z")

</div>

This is my code colors = vtk.vtkImageMapToWindowLevelColors() colors.SetInputConnection(reslice.GetOutputPort()) colors.SetWindow(auto\_w) colors.SetLevel(auto\_l) imageActor = vtk.vtkImageActor() imageActor.GetMapper().…

---

## [Uncaught TypeError: model.view.getRenderable is not a function](https://discourse.vtk.org/t/uncaught-typeerror-model-view-getrenderable-is-not-a-function/12027)

<div class="topic-metadata">

**Author:** [@jordvink](https://discourse.vtk.org/u/jordvink)\
**Replies:** 1\
**Last updated:** [July 26, 2023, 9:39am UTC](https://discourse.vtk.org/t/uncaught-typeerror-model-view-getrenderable-is-not-a-function/12027 "2023-07-26T09:39:01Z")

</div>

Hi all, I’m trying to bind a renderWindowInteractor in my vtk.js project. I tried the following code: const container = document.querySelector('#container'); const genericRenderWindow = vtkGenericRenderWindow.newInstan…

---

## [vtk.js proxy](https://discourse.vtk.org/t/vtk-js-proxy/9408)

<div class="topic-metadata">

**Author:** [@dexter](https://discourse.vtk.org/u/dexter)\
**Replies:** 3\
**Last updated:** [July 26, 2023, 8:00am UTC](https://discourse.vtk.org/t/vtk-js-proxy/9408 "2023-07-26T08:00:00Z")

</div>

Hey, I don’t know in this day if there is a better documentation for vtk.js proxies with good examples, in ResliceCursorWidget I need to update contrast / intensity in all the 3 views in the same time and I don’t know …

---

## [Copying a collection of heterogenous vtkProp types](https://discourse.vtk.org/t/copying-a-collection-of-heterogenous-vtkprop-types/12026)

<div class="topic-metadata">

**Author:** [@Sean\_Curtis](https://discourse.vtk.org/u/Sean_Curtis)\
**Replies:** 0\
**Last updated:** [July 26, 2023, 7:37am UTC](https://discourse.vtk.org/t/copying-a-collection-of-heterogenous-vtkprop-types/12026 "2023-07-26T07:37:04Z")

</div>

Pretend I have a std::vector\<vtkSmartPointer\<vtkProp\>\> things; I populate it with a number of different types (all derived from vtkProp). For example, let’s say one item is a vtkAssembly and one is a vtkActor. Now I want…

---

## [ActiViz in WPF](https://discourse.vtk.org/t/activiz-in-wpf/10172)

<div class="topic-metadata">

**Author:** [@a772485252](https://discourse.vtk.org/u/a772485252)\
**Replies:** 1\
**Last updated:** [July 25, 2023, 11:55am UTC](https://discourse.vtk.org/t/activiz-in-wpf/10172 "2023-07-25T11:55:42Z")

</div>

In WPF, I wanted to lay out a ComboBox on RenderWindowControl, but failed. Is there any good way to do it? Other words, let the wpf control float on top of RenderWindowControl.

---

## [After parsing the dicom file with dicom-parser.js, the imaging is black](https://discourse.vtk.org/t/after-parsing-the-dicom-file-with-dicom-parser-js-the-imaging-is-black/12016)

<div class="topic-metadata">

**Author:** [@t1413194910](https://discourse.vtk.org/u/t1413194910)\
**Replies:** 0\
**Last updated:** [July 25, 2023, 9:42am UTC](https://discourse.vtk.org/t/after-parsing-the-dicom-file-with-dicom-parser-js-the-imaging-is-black/12016 "2023-07-25T09:42:58Z")

</div>

My code is as follows ---------- Start -------- import ‘@kitware/vtk.js/Rendering/Profiles/Volume’ import ‘@kitware/vtk.js/Rendering/Profiles/Geometry’ import ‘@kitware/vtk.js/Rendering/Profiles/All’ import vtkFullS…

---

## [Recommended unit (mm, cm, m) for usage as image spacing](https://discourse.vtk.org/t/recommended-unit-mm-cm-m-for-usage-as-image-spacing/11997)

<div class="topic-metadata">

**Author:** [@morkar](https://discourse.vtk.org/u/morkar)\
**Replies:** 3\
**Last updated:** [July 24, 2023, 5:54pm UTC](https://discourse.vtk.org/t/recommended-unit-mm-cm-m-for-usage-as-image-spacing/11997 "2023-07-24T17:54:16Z")

</div>

Hey! we are using VTK for rendering CT volumes in 2D/3D. The voxel size of the volumes is given in microns by the reconstruction algorithms. currently we are using the value in microns as spacing, fx SetSpacing(50, 50,…

---

## [VTK C++ application and Visual Studio](https://discourse.vtk.org/t/vtk-c-application-and-visual-studio/11936)

<div class="topic-metadata">

**Author:** [@mauede](https://discourse.vtk.org/u/mauede)\
**Replies:** 39\
**Last updated:** [July 24, 2023, 4:54pm UTC](https://discourse.vtk.org/t/vtk-c-application-and-visual-studio/11936 "2023-07-24T16:54:30Z")

</div>

Dear VTK Experts, I have recently installed VTK for C++ with Visual Studio Community 2022. I followed an online tutorial that uses CMake to prepare the files needed by Visual Studio. I am trying to build my own C++ ap…

---

## [BackfaceProperty of vtkActor is not functioning correctly.](https://discourse.vtk.org/t/backfaceproperty-of-vtkactor-is-not-functioning-correctly/11814)

<div class="topic-metadata">

**Author:** [@claude](https://discourse.vtk.org/u/claude)\
**Replies:** 4\
**Last updated:** [July 24, 2023, 8:19am UTC](https://discourse.vtk.org/t/backfaceproperty-of-vtkactor-is-not-functioning-correctly/11814 "2023-07-24T08:19:17Z")

</div>

Hi， I’m facing the following issue:in the case of vtkPolyDataMapper::ScalarVisibilityOn , setting the color value for BackfaceProperty of vtkActor does not work as expected. How can this be resolved?

---

## [How to update contrast in all image slices in ResliceCursorWidget simoustanly](https://discourse.vtk.org/t/how-to-update-contrast-in-all-image-slices-in-reslicecursorwidget-simoustanly/7957)

<div class="topic-metadata">

**Author:** [@dexter](https://discourse.vtk.org/u/dexter)\
**Replies:** 6\
**Last updated:** [July 24, 2023, 4:45am UTC](https://discourse.vtk.org/t/how-to-update-contrast-in-all-image-slices-in-reslicecursorwidget-simoustanly/7957 "2023-07-24T04:45:32Z")

</div>

Hey is there a way in ResliceCursorWidget to update contrast / intensity in all the 3 views in the same time? Now we can only change them separately,

---

## [GetRGBACharPixelData still get alphaChannel even after SetAlphaBitPlanes(0)?](https://discourse.vtk.org/t/getrgbacharpixeldata-still-get-alphachannel-even-after-setalphabitplanes-0/11993)

<div class="topic-metadata">

**Author:** [@gpu](https://discourse.vtk.org/u/gpu)\
**Replies:** 2\
**Last updated:** [July 24, 2023, 1:26am UTC](https://discourse.vtk.org/t/getrgbacharpixeldata-still-get-alphachannel-even-after-setalphabitplanes-0/11993 "2023-07-24T01:26:20Z")

</div>

GetRGBACharPixelData still get alphaChannel even after SetAlphaBitPlanes(0)?

---

## [vtkPolyDataNormals appears to behave incorrectly](https://discourse.vtk.org/t/vtkpolydatanormals-appears-to-behave-incorrectly/11988)

<div class="topic-metadata">

**Author:** [@whereismymoney](https://discourse.vtk.org/u/whereismymoney)\
**Replies:** 4\
**Last updated:** [July 22, 2023, 11:33pm UTC](https://discourse.vtk.org/t/vtkpolydatanormals-appears-to-behave-incorrectly/11988 "2023-07-22T23:33:55Z")

</div>

The sample code I provide here allows you to easily compare SetComputePointNormals(true) and SetComputePointNormals(false), so we can compare the correct behavior with the incorrect behavior, shown in this image: Her…

---

## [OpenGL crash](https://discourse.vtk.org/t/opengl-crash/11965)

<div class="topic-metadata">

**Author:** [@fghoussen](https://discourse.vtk.org/u/fghoussen)\
**Replies:** 4\
**Last updated:** [July 22, 2023, 11:54am UTC](https://discourse.vtk.org/t/opengl-crash/11965 "2023-07-22T11:54:58Z")

</div>

I am trying to use both vtkGenericOpenGLRenderWindow (providing glfw and glad) and vtkRenderWindowInteractor. I get this crash when initializing the interactor: 2023-07-18 22:26:58.653 ( 0.178s) \[ B65FDB40\] …

---

## [Is there a way to see the call stack that caused the crash in vtk?](https://discourse.vtk.org/t/is-there-a-way-to-see-the-call-stack-that-caused-the-crash-in-vtk/11969)

<div class="topic-metadata">

**Author:** [@gongwaner](https://discourse.vtk.org/u/gongwaner)\
**Replies:** 2\
**Last updated:** [July 22, 2023, 2:32am UTC](https://discourse.vtk.org/t/is-there-a-way-to-see-the-call-stack-that-caused-the-crash-in-vtk/11969 "2023-07-22T02:32:27Z")

</div>

I was running into crash recently. Usually vtk output window pops up and reports error messages. The errors are usually in the following format: ERROR: In {path\_to\_vtk\_lib}/somefile.cxx: some error messages… It doesn’t…

---

## [How to add color preset in trame\_tutorial/04\_application/solution.py](https://discourse.vtk.org/t/how-to-add-color-preset-in-trame-tutorial-04-application-solution-py/11992)

<div class="topic-metadata">

**Author:** [@qlhai](https://discourse.vtk.org/u/qlhai)\
**Replies:** 2\
**Last updated:** [July 22, 2023, 2:05am UTC](https://discourse.vtk.org/t/how-to-add-color-preset-in-trame-tutorial-04-application-solution-py/11992 "2023-07-22T02:05:52Z")

</div>

Hi, I want to add a “Cool To Warm” preset in trame\_tutorial/04\_application/solution.py. And I modify the code. My question is how to set the preset value. Thanks!

---

## [python VTK Segmentation Fault after rendering](https://discourse.vtk.org/t/python-vtk-segmentation-fault-after-rendering/11860)

<div class="topic-metadata">

**Author:** [@sonnet](https://discourse.vtk.org/u/sonnet)\
**Replies:** 2\
**Last updated:** [July 21, 2023, 1:19pm UTC](https://discourse.vtk.org/t/python-vtk-segmentation-fault-after-rendering/11860 "2023-07-21T13:19:09Z")

</div>

I’m trying to test my installation of vtk in anaconda on a linux computing center. Whenever I try to run a simple code, I keep on getting the Segmentation fault (core dumped) error and I am unable to render figures. Does…

---

## [VTK.js: Creating oblique slices with vtkImageReslice](https://discourse.vtk.org/t/vtk-js-creating-oblique-slices-with-vtkimagereslice/368)

<div class="topic-metadata">

**Author:** [@dannyrb](https://discourse.vtk.org/u/dannyrb)\
**Replies:** 4\
**Last updated:** [July 21, 2023, 7:33am UTC](https://discourse.vtk.org/t/vtk-js-creating-oblique-slices-with-vtkimagereslice/368 "2023-07-21T07:33:30Z")

</div>

:wave: Hello Problem: I am running into issues extracting oblique slices from my vtkImageData using vtkImageReslice. After applying a rotation to my reslice axes, output slices are cut off and appear to be rotated arou…

---

## [Unable to run vtk example in clion](https://discourse.vtk.org/t/unable-to-run-vtk-example-in-clion/11857)

<div class="topic-metadata">

**Author:** [@gongwaner](https://discourse.vtk.org/u/gongwaner)\
**Replies:** 3\
**Last updated:** [July 21, 2023, 4:57am UTC](https://discourse.vtk.org/t/unable-to-run-vtk-example-in-clion/11857 "2023-07-21T04:57:13Z")

</div>

I installed vtk on my Mac using brew install vtk then for testing purpose, I download a random example https://examples.vtk.org/site/Cxx/GeometricObjects/Cube/ then using the instruction as mentioned in the page to ru…

---

## [how to get the WindowResizeEvent in the old version of VTK which not have vtkCommand::WindowResizeEvent...](https://discourse.vtk.org/t/how-to-get-the-windowresizeevent-in-the-old-version-of-vtk-which-not-have-vtkcommand-windowresizeevent/11878)

<div class="topic-metadata">

**Author:** [@gpu](https://discourse.vtk.org/u/gpu)\
**Replies:** 3\
**Last updated:** [July 21, 2023, 12:21am UTC](https://discourse.vtk.org/t/how-to-get-the-windowresizeevent-in-the-old-version-of-vtk-which-not-have-vtkcommand-windowresizeevent/11878 "2023-07-21T00:21:09Z")

</div>

how to get the WindowResizeEvent in the old version of VTK which not have vtkCommand::WindowResizeEvent… eg. in VKT 8.1, there is no vtkCommand::WindowResizeEvent…at this version, how to get the event when resize the wi…

---

## [Building VTK emscripten cone example uses outdated VTK version?](https://discourse.vtk.org/t/building-vtk-emscripten-cone-example-uses-outdated-vtk-version/11862)

<div class="topic-metadata">

**Author:** [@rmarr](https://discourse.vtk.org/u/rmarr)\
**Replies:** 1\
**Last updated:** [July 20, 2023, 7:41pm UTC](https://discourse.vtk.org/t/building-vtk-emscripten-cone-example-uses-outdated-vtk-version/11862 "2023-07-20T19:41:32Z")

</div>

I’m trying to build VTK for emscripten and was able to do so successfully. Now I would like to test my build using the cone example listed here: https://gitlab.kitware.com/vtk/vtk/-/blob/master/Examples/Emscripten/Cxx/C…

---

## [existing html element, setContainer work well for paraview, no sucess for vtk.js as client.](https://discourse.vtk.org/t/existing-html-element-setcontainer-work-well-for-paraview-no-sucess-for-vtk-js-as-client/11987)

<div class="topic-metadata">

**Author:** [@baoyun](https://discourse.vtk.org/u/baoyun)\
**Replies:** 4\
**Last updated:** [July 20, 2023, 5:16pm UTC](https://discourse.vtk.org/t/existing-html-element-setcontainer-work-well-for-paraview-no-sucess-for-vtk-js-as-client/11987 "2023-07-20T17:16:45Z")

</div>

I have a html element, \<div #imageDiv id=“imageDiv”\> I obtained the native element, and want to pass it as container for remote view in client side @ViewChild(‘imageDiv’) imageDiv!: ElementRef; let div = this.i…

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

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