# Latest

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

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

**Page:** 82

---

## [Framebuffer Object creation not working in Python](https://discourse.vtk.org/t/framebuffer-object-creation-not-working-in-python/11791)

<div class="topic-metadata">

**Author:** [@joaodellagli](https://discourse.vtk.org/u/joaodellagli)\
**Replies:** 1\
**Last updated:** [June 25, 2023, 11:36pm UTC](https://discourse.vtk.org/t/framebuffer-object-creation-not-working-in-python/11791 "2023-06-25T23:36:05Z")

</div>

I am developing a feature for FURY, a python graphics library I am working on (that is entirely built with vtk), and this feature has FBOs as core for its functionality, as they will be used for multiple drawings. Well, …

---

## [how to output a vtkTextureObject as jpg, png, bmp, etc?](https://discourse.vtk.org/t/how-to-output-a-vtktextureobject-as-jpg-png-bmp-etc/11806)

<div class="topic-metadata">

**Author:** [@gpu](https://discourse.vtk.org/u/gpu)\
**Replies:** 3\
**Last updated:** [June 25, 2023, 12:33pm UTC](https://discourse.vtk.org/t/how-to-output-a-vtktextureobject-as-jpg-png-bmp-etc/11806 "2023-06-25T12:33:25Z")

</div>

how to output a vtkTextureObject as jpg, png, bmp, etc? there is not api in vtkTextureObject can do this. thanks!

---

## [How to append overlapping polyDatas?](https://discourse.vtk.org/t/how-to-append-overlapping-polydatas/11799)

<div class="topic-metadata">

**Author:** [@somso2e](https://discourse.vtk.org/u/somso2e)\
**Replies:** 1\
**Last updated:** [June 25, 2023, 8:53am UTC](https://discourse.vtk.org/t/how-to-append-overlapping-polydatas/11799 "2023-06-25T08:53:46Z")

</div>

I have multiple polygons defined by a set of point coordinates. These polygons could be on each three axes and might overlap each other. I want to create a binary mask from these polygons and extract all the voxels that …

---

## [Render() was called after Start() when not offScreen, but not called when offScreen](https://discourse.vtk.org/t/render-was-called-after-start-when-not-offscreen-but-not-called-when-offscreen/11764)

<div class="topic-metadata">

**Author:** [@gpu](https://discourse.vtk.org/u/gpu)\
**Replies:** 1\
**Last updated:** [June 25, 2023, 2:45am UTC](https://discourse.vtk.org/t/render-was-called-after-start-when-not-offscreen-but-not-called-when-offscreen/11764 "2023-06-25T02:45:37Z")

</div>

after SetOffScreenRendering(1), Render() was not called after Start(). However, when SetOffScreenRendering(0), Render() was called after Start(). why? thanks

---

## [must call manually call Render() every frame after SetOffScreenRendering(1)?](https://discourse.vtk.org/t/must-call-manually-call-render-every-frame-after-setoffscreenrendering-1/11808)

<div class="topic-metadata">

**Author:** [@gpu](https://discourse.vtk.org/u/gpu)\
**Replies:** 0\
**Last updated:** [June 25, 2023, 2:43am UTC](https://discourse.vtk.org/t/must-call-manually-call-render-every-frame-after-setoffscreenrendering-1/11808 "2023-06-25T02:43:34Z")

</div>

must call manually call Render() every frame after SetOffScreenRendering(1)? how to write this loop normally? found that after SetOffScreenRendering(1), Render() was not called after Start() as there is no Win32Window,…

---

## [vtkScalarBarActor using trame's VtkLocalView](https://discourse.vtk.org/t/vtkscalarbaractor-using-trames-vtklocalview/11771)

<div class="topic-metadata">

**Author:** [@raz](https://discourse.vtk.org/u/raz)\
**Replies:** 4\
**Last updated:** [June 23, 2023, 9:17pm UTC](https://discourse.vtk.org/t/vtkscalarbaractor-using-trames-vtklocalview/11771 "2023-06-23T21:17:56Z")

</div>

Hello, I’m trying to display a vtkScalarBarActor using a trame app’s VtkLocalView. However, the trame app displays only the 2 extreme colors of the bar, without all the intermediate colors. Additionally, the trame app’s…

---

## [Best way to render a collection of isloated lines](https://discourse.vtk.org/t/best-way-to-render-a-collection-of-isloated-lines/11800)

<div class="topic-metadata">

**Author:** [@stu039](https://discourse.vtk.org/u/stu039)\
**Replies:** 1\
**Last updated:** [June 23, 2023, 1:25pm UTC](https://discourse.vtk.org/t/best-way-to-render-a-collection-of-isloated-lines/11800 "2023-06-23T13:25:56Z")

</div>

Hello, I am trying to render some isolated lines in vtk js. I have a collection of point pairs, each of which I would like to connect with lines. The only example I have seen is something like the following; const p…

---

## [how to correctly pass a custom polygon to vtkPolyDataToImageStencil?](https://discourse.vtk.org/t/how-to-correctly-pass-a-custom-polygon-to-vtkpolydatatoimagestencil/11785)

<div class="topic-metadata">

**Author:** [@somso2e](https://discourse.vtk.org/u/somso2e)\
**Replies:** 3\
**Last updated:** [June 23, 2023, 7:59am UTC](https://discourse.vtk.org/t/how-to-correctly-pass-a-custom-polygon-to-vtkpolydatatoimagestencil/11785 "2023-06-23T07:59:38Z")

</div>

I’m trying to extract ROIs from 3D medical images. This ROI consists of multiple 2D polygons which themselves are represented by a list of points. Each polygon is in a plane parallel to one of the coordinates axes; meani…

---

## [We assembled a widget from 3D Slicer in the browser](https://discourse.vtk.org/t/we-assembled-a-widget-from-3d-slicer-in-the-browser/11756)

<div class="topic-metadata">

**Author:** [@mazurkin.daniel](https://discourse.vtk.org/u/mazurkin.daniel)\
**Replies:** 16\
**Last updated:** [June 23, 2023, 2:07am UTC](https://discourse.vtk.org/t/we-assembled-a-widget-from-3d-slicer-in-the-browser/11756 "2023-06-23T02:07:32Z")

</div>

We assembled a widget from 3D Slicer in the browser, and if you’re interested, we can share the instructions.

---

## [porting a C++ example to Emscripten](https://discourse.vtk.org/t/porting-a-c-example-to-emscripten/4687)

<div class="topic-metadata">

**Author:** [@SArbabi](https://discourse.vtk.org/u/SArbabi)\
**Replies:** 12\
**Last updated:** [June 23, 2023, 2:02am UTC](https://discourse.vtk.org/t/porting-a-c-example-to-emscripten/4687 "2023-06-23T02:02:19Z")

</div>

Hi, upon running cmake -G Ninja for one of the C++ examples to the Emscripten folder, I get this error: CMake Warning at CMakeLists.txt:17 (find\_package): By not providing "FindVTK.cmake" in CMAKE\_MODULE\_PATH this pr…

---

## [vscode failed to build for one example but could build another one successfully](https://discourse.vtk.org/t/vscode-failed-to-build-for-one-example-but-could-build-another-one-successfully/11765)

<div class="topic-metadata">

**Author:** [@lake\_lagunita](https://discourse.vtk.org/u/lake_lagunita)\
**Replies:** 4\
**Last updated:** [June 22, 2023, 8:46pm UTC](https://discourse.vtk.org/t/vscode-failed-to-build-for-one-example-but-could-build-another-one-successfully/11765 "2023-06-22T20:46:12Z")

</div>

Hello, I am using MSVC as code generator and trying to build examples using vscode. I have chosen two official examples, one is DisplacementPlot and the other is Hello The DisplacementPlot example could be built and r…

---

## [How to clip polydata along ribbon?](https://discourse.vtk.org/t/how-to-clip-polydata-along-ribbon/11539)

<div class="topic-metadata">

**Author:** [@matthew.strugari](https://discourse.vtk.org/u/matthew.strugari)\
**Replies:** 12\
**Last updated:** [June 22, 2023, 5:35pm UTC](https://discourse.vtk.org/t/how-to-clip-polydata-along-ribbon/11539 "2023-06-22T17:35:20Z")

</div>

Hi all, I am having difficulty clipping my polydata along a specific path and would be very grateful for some assistance. As shown in the image below, I am trying to clip my (green) polydata along a path corresponding …

---

## [Can I handle reader errors myself without having the error window open?](https://discourse.vtk.org/t/can-i-handle-reader-errors-myself-without-having-the-error-window-open/11793)

<div class="topic-metadata">

**Author:** [@Gub](https://discourse.vtk.org/u/Gub)\
**Replies:** 1\
**Last updated:** [June 22, 2023, 3:31pm UTC](https://discourse.vtk.org/t/can-i-handle-reader-errors-myself-without-having-the-error-window-open/11793 "2023-06-22T15:31:50Z")

</div>

I am using the vtkFacetReader class (which I have recently discussed in another post) to read FACET files and load them into the renderer. Currently, when the reader encounters an error a new vtkOutputWindow is opened th…

---

## [How to use tone mapping correctly when displaying transparent structures using depth peeling ?](https://discourse.vtk.org/t/how-to-use-tone-mapping-correctly-when-displaying-transparent-structures-using-depth-peeling/11794)

<div class="topic-metadata">

**Author:** [@ctroesch](https://discourse.vtk.org/u/ctroesch)\
**Replies:** 0\
**Last updated:** [June 22, 2023, 2:48pm UTC](https://discourse.vtk.org/t/how-to-use-tone-mapping-correctly-when-displaying-transparent-structures-using-depth-peeling/11794 "2023-06-22T14:48:24Z")

</div>

Hi there, I am trying to render 3D models with transparent structures using Depth Peeling, PBR, SSAO and Tone Mapping. To do so, I use the vtkRenderStepsPass with the following configuration: // Create renderer const …

---

## [update input points in vtkPixelSpaceCallbackMapper](https://discourse.vtk.org/t/update-input-points-in-vtkpixelspacecallbackmapper/11768)

<div class="topic-metadata">

**Author:** [@lizemin2016](https://discourse.vtk.org/u/lizemin2016)\
**Replies:** 1\
**Last updated:** [June 22, 2023, 1:12pm UTC](https://discourse.vtk.org/t/update-input-points-in-vtkpixelspacecallbackmapper/11768 "2023-06-22T13:12:11Z")

</div>

I want to update the input points,and update the textActor defined by vtkPixelSpaceCallbackMapper, but the code follow I tried do not work, I don’t know how to achieve it, I’d appreciate it if anyone could help. const …

---

## [multiple definition of \`exodus\_unused\_symbol\_dummy\_1' when building VTK 8.2.0](https://discourse.vtk.org/t/multiple-definition-of-exodus-unused-symbol-dummy-1-when-building-vtk-8-2-0/11744)

<div class="topic-metadata">

**Author:** [@RavenWorks](https://discourse.vtk.org/u/RavenWorks)\
**Replies:** 3\
**Last updated:** [June 22, 2023, 10:43am UTC](https://discourse.vtk.org/t/multiple-definition-of-exodus-unused-symbol-dummy-1-when-building-vtk-8-2-0/11744 "2023-06-22T10:43:52Z")

</div>

I’m trying to build VTK 8.2.0 on Arch Linux on a Steam Deck, in hopes of using it with an Azure Kinect for photogrammetry… it’s been QUITE a journey getting all the right dependencies installed, but I’ve finally hit an …

---

## [Loading FACET files in VTK in Python](https://discourse.vtk.org/t/loading-facet-files-in-vtk-in-python/11776)

<div class="topic-metadata">

**Author:** [@Gub](https://discourse.vtk.org/u/Gub)\
**Replies:** 5\
**Last updated:** [June 21, 2023, 4:05pm UTC](https://discourse.vtk.org/t/loading-facet-files-in-vtk-in-python/11776 "2023-06-21T16:05:39Z")

</div>

Hello, I am developing a GUI that features an interactive viewing window for rendering a 3d object. The files that must be used for the rendered object are .FACET files. Currently I am using the vtkFacetReader to load in…

---

## [VTI Reslice Cursor Widget center in millimeters](https://discourse.vtk.org/t/vti-reslice-cursor-widget-center-in-millimeters/7800)

<div class="topic-metadata">

**Author:** [@stoune](https://discourse.vtk.org/u/stoune)\
**Replies:** 1\
**Last updated:** [February 9, 2022, 8:51am UTC](https://discourse.vtk.org/t/vti-reslice-cursor-widget-center-in-millimeters/7800 "2022-02-09T08:51:42Z")

</div>

Hey, I am facing some difficulties getting center of the reslice cursor widget state, in millimeters, (my VTI file is exported from DICOM series using dicom-exporter) Does the center values of the reslice cursor widget…

---

## [vtk-js shader compilation error](https://discourse.vtk.org/t/vtk-js-shader-compilation-error/11625)

<div class="topic-metadata">

**Author:** [@nomis6432](https://discourse.vtk.org/u/nomis6432)\
**Replies:** 7\
**Last updated:** [June 21, 2023, 2:44pm UTC](https://discourse.vtk.org/t/vtk-js-shader-compilation-error/11625 "2023-06-21T14:44:34Z")

</div>

Hey, we recently upgraded our vtk version from 26.8.0 to 27.4.0 to start using the new vtkImageResliceMapper. However some of our clients are experiencing issues with shader compilation. We haven’t however been able to r…

---

## [Sculpt like feature](https://discourse.vtk.org/t/sculpt-like-feature/11728)

<div class="topic-metadata">

**Author:** [@syj](https://discourse.vtk.org/u/syj)\
**Replies:** 6\
**Last updated:** [June 19, 2023, 8:40pm UTC](https://discourse.vtk.org/t/sculpt-like-feature/11728 "2023-06-19T20:40:55Z")

</div>

Can anyone provide me with some ideas on how to achieve a similar effect using VTK (Visualization Toolkit)?

---

## [Building an application with VTK WebAssembly](https://discourse.vtk.org/t/building-an-application-with-vtk-webassembly/11714)

<div class="topic-metadata">

**Author:** [@mazurkin.daniel](https://discourse.vtk.org/u/mazurkin.daniel)\
**Replies:** 4\
**Last updated:** [June 21, 2023, 1:44am UTC](https://discourse.vtk.org/t/building-an-application-with-vtk-webassembly/11714 "2023-06-21T01:44:17Z")

</div>

Hello, I am building the 3D Slicer tool for web assembler using the following commands: sudo docker run --rm --entrypoint /bin/bash -v $PWD:/work -p 8000:8000 -it dockcross/web-wasm:20230222-162287d emcmake cmake . -G…

---

## [vtkProbeFilter getting stuck in Python script](https://discourse.vtk.org/t/vtkprobefilter-getting-stuck-in-python-script/11773)

<div class="topic-metadata">

**Author:** [@goldberg-s](https://discourse.vtk.org/u/goldberg-s)\
**Replies:** 0\
**Last updated:** [June 20, 2023, 6:15pm UTC](https://discourse.vtk.org/t/vtkprobefilter-getting-stuck-in-python-script/11773 "2023-06-20T18:15:18Z")

</div>

Hello, I have a 3-D unstructured mesh of a sphere (a model of the earth) in vtu format (a .pvtu file with 16 associated .vtu files). I would like to interpolate these data onto a spherical shell of a given radius, to ex…

---

## [Access to display texture for CUDA interop](https://discourse.vtk.org/t/access-to-display-texture-for-cuda-interop/6423)

<div class="topic-metadata">

**Author:** [@PWeissenbacher](https://discourse.vtk.org/u/PWeissenbacher)\
**Replies:** 5\
**Last updated:** [June 20, 2023, 8:06am UTC](https://discourse.vtk.org/t/access-to-display-texture-for-cuda-interop/6423 "2023-06-20T08:06:49Z")

</div>

Hello VTK Community. Currently I’m working on a 3D streaming application utilizing OpenGL, NVENC and libavformat to capture the 3D context, encode it into H264 frames and send it via libavformat as RTP stream to a media…

---

## [is it able to write by CUDA to the VTK DisplayFramebuffer? and How?](https://discourse.vtk.org/t/is-it-able-to-write-by-cuda-to-the-vtk-displayframebuffer-and-how/11766)

<div class="topic-metadata">

**Author:** [@gpu](https://discourse.vtk.org/u/gpu)\
**Replies:** 0\
**Last updated:** [June 20, 2023, 12:55am UTC](https://discourse.vtk.org/t/is-it-able-to-write-by-cuda-to-the-vtk-displayframebuffer-and-how/11766 "2023-06-20T00:55:22Z")

</div>

is it able to write by CUDA to the VTK DisplayFramebuffer? and How? and what’s the related code in VTK 8.1 for DisplayFramebuffer and its colorAttackment. Thanks!

---

## [How can I set up the scale range in vtkRenderingWindow?](https://discourse.vtk.org/t/how-can-i-set-up-the-scale-range-in-vtkrenderingwindow/11745)

<div class="topic-metadata">

**Author:** [@yen](https://discourse.vtk.org/u/yen)\
**Replies:** 3\
**Last updated:** [June 19, 2023, 10:27pm UTC](https://discourse.vtk.org/t/how-can-i-set-up-the-scale-range-in-vtkrenderingwindow/11745 "2023-06-19T22:27:20Z")

</div>

Hello, I am a new comer to vtk recently. I want to ask a question. Can I set up the scale in vtk windows? Here is my 3D object. However, since some value is up to 21000, which represent that the original laser sensor…

---

## [The libproj library problem(VTK-9.2.2), MinGW](https://discourse.vtk.org/t/the-libproj-library-problem-vtk-9-2-2-mingw/10283)

<div class="topic-metadata">

**Author:** [@Alexx](https://discourse.vtk.org/u/Alexx)\
**Replies:** 6\
**Last updated:** [June 19, 2023, 6:17pm UTC](https://discourse.vtk.org/t/the-libproj-library-problem-vtk-9-2-2-mingw/10283 "2023-06-19T18:17:03Z")

</div>

Dear VTK Users and Developers. Recently, I encountered a problem in compiling VTK 9.2.2 source code with GCC 12. But before that, I encountered a problem that has been solved. When the source code is compiled to 79%, t…

---

## [Passing a Window handle from a GUI process to a VTK process](https://discourse.vtk.org/t/passing-a-window-handle-from-a-gui-process-to-a-vtk-process/5121)

<div class="topic-metadata">

**Author:** [@CharInt0](https://discourse.vtk.org/u/CharInt0)\
**Replies:** 3\
**Last updated:** [June 19, 2023, 5:43pm UTC](https://discourse.vtk.org/t/passing-a-window-handle-from-a-gui-process-to-a-vtk-process/5121 "2023-06-19T17:43:40Z")

</div>

I succeded in passing a Window handle (HWD) created in a .Net WPF project to a C++ dll project that references the VTK library. Everything works just fine. All is in one process. Now I am investigating the possibility to…

---

## [Just including some vtk headers lead to "Exception: Numerical" in linux](https://discourse.vtk.org/t/just-including-some-vtk-headers-lead-to-exception-numerical-in-linux/11733)

<div class="topic-metadata">

**Author:** [@segretar](https://discourse.vtk.org/u/segretar)\
**Replies:** 6\
**Last updated:** [June 19, 2023, 3:34pm UTC](https://discourse.vtk.org/t/just-including-some-vtk-headers-lead-to-exception-numerical-in-linux/11733 "2023-06-19T15:34:16Z")

</div>

Hi, I’m compiling c++ code that use VTK. The compilation goes fine but when I run tests (using Ctest), the executable that include VTK headers crash instantly even before the execution enter the main with : Exception: …

---

## [is it able to directly draw to the backbuffer(or offScreen framebuffer) of vtkOpenGLRenderWindow by CUDA](https://discourse.vtk.org/t/is-it-able-to-directly-draw-to-the-backbuffer-or-offscreen-framebuffer-of-vtkopenglrenderwindow-by-cuda/11763)

<div class="topic-metadata">

**Author:** [@gpu](https://discourse.vtk.org/u/gpu)\
**Replies:** 0\
**Last updated:** [June 19, 2023, 2:58pm UTC](https://discourse.vtk.org/t/is-it-able-to-directly-draw-to-the-backbuffer-or-offscreen-framebuffer-of-vtkopenglrenderwindow-by-cuda/11763 "2023-06-19T14:58:39Z")

</div>

not OffScreen mode, is it to cudaGraphicsGLRegisterBuffer the backBuffer of vtkOpenGLRenderWindow? while OffScreen mode, is it to cudaGraphicsGLRegisterBuffer the framebuffer of vtkOpenGLRenderWindow? meanwhile using Cr…

---

## [Open VTK-9.2.6 as child window inside existing c++ Windows application](https://discourse.vtk.org/t/open-vtk-9-2-6-as-child-window-inside-existing-c-windows-application/11761)

<div class="topic-metadata">

**Author:** [@ElenaChu](https://discourse.vtk.org/u/ElenaChu)\
**Replies:** 0\
**Last updated:** [June 19, 2023, 11:26am UTC](https://discourse.vtk.org/t/open-vtk-9-2-6-as-child-window-inside-existing-c-windows-application/11761 "2023-06-19T11:26:57Z")

</div>

I am trying to create a vtkRenderWindow as child window in existing c++ Windows Application using the VTK-9.2.6 version. As base code I used an old example from VTK/Examples/GUI/Win32/SimpleCxx/Win32Cone.cxx as written …

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

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