# Latest

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

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

**Page:** 158

---

## [Unsafe vtkPoints::GetPoint(vtkIdType) method](https://discourse.vtk.org/t/unsafe-vtkpoints-getpoint-vtkidtype-method/7005)

<div class="topic-metadata">

**Author:** [@lassoan](https://discourse.vtk.org/u/lassoan)\
**Replies:** 15\
**Last updated:** [November 2, 2021, 1:48pm UTC](https://discourse.vtk.org/t/unsafe-vtkpoints-getpoint-vtkidtype-method/7005 "2021-11-02T13:48:24Z")

</div>

We ran into an issue due to documented but unexpected behavior of the VTK API. A new developer introduced a bug by calling double\* vtkPoints::GetPoint(vtkIdType) multiple times and did not expect that a new call to GetPo…

---

## [Unable to get RemoteView outputs on client side](https://discourse.vtk.org/t/unable-to-get-remoteview-outputs-on-client-side/6944)

<div class="topic-metadata">

**Author:** [@ardvlab](https://discourse.vtk.org/u/ardvlab)\
**Replies:** 7\
**Last updated:** [November 2, 2021, 1:43pm UTC](https://discourse.vtk.org/t/unable-to-get-remoteview-outputs-on-client-side/6944 "2021-11-02T13:43:45Z")

</div>

Hello, we are experimenting with VTK-js and RemoteView and started simply with the RemoteView example but we’re unable to get it working. Running the server via vtkpython/python will result in the page displaying the c…

---

## [vtk-js remoteview example get any widget interaction](https://discourse.vtk.org/t/vtk-js-remoteview-example-get-any-widget-interaction/6157)

<div class="topic-metadata">

**Author:** [@ss59](https://discourse.vtk.org/u/ss59)\
**Replies:** 10\
**Last updated:** [November 2, 2021, 1:35pm UTC](https://discourse.vtk.org/t/vtk-js-remoteview-example-get-any-widget-interaction/6157 "2021-11-02T13:35:38Z")

</div>

Hello, Sorry about my simple question. I was testing remoteview using exist example. (vtk\_server.py). I added a simple vtkBoxWidget. After I couldn’t any interaction on remoteview or when I interact window the session cr…

---

## [QQmlVTKPlugin window initialization from QML](https://discourse.vtk.org/t/qqmlvtkplugin-window-initialization-from-qml/7035)

<div class="topic-metadata">

**Author:** [@Julienchz](https://discourse.vtk.org/u/Julienchz)\
**Replies:** 1\
**Last updated:** [November 2, 2021, 10:37am UTC](https://discourse.vtk.org/t/qqmlvtkplugin-window-initialization-from-qml/7035 "2021-11-02T10:37:30Z")

</div>

Hello, I am using the QQMLvtkPlugin in my Qt Quick app. To do that the vtk documentation give the following example : QQuickVTKRenderWindow::setupGraphicsBackend(); QGuiApplication app(argc, argv); QQmlApplicaQ…

---

## [Replace coordinates (vtkPoints) of vtkPolyData fast](https://discourse.vtk.org/t/replace-coordinates-vtkpoints-of-vtkpolydata-fast/6999)

<div class="topic-metadata">

**Author:** [@AlexG](https://discourse.vtk.org/u/AlexG)\
**Replies:** 2\
**Last updated:** [November 2, 2021, 9:56am UTC](https://discourse.vtk.org/t/replace-coordinates-vtkpoints-of-vtkpolydata-fast/6999 "2021-11-02T09:56:19Z")

</div>

I would need some tips or ideas on how to reset a volume (vtkPolyData). More specifically, I create a line (vtkPolyLine) using a start and end point which I expand to a 3D cylinder using a vtkTubeFilter. Now I move the …

---

## [How to get the actually clicked actor in an assembly?](https://discourse.vtk.org/t/how-to-get-the-actually-clicked-actor-in-an-assembly/7027)

<div class="topic-metadata">

**Author:** [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)\
**Replies:** 0\
**Last updated:** [November 1, 2021, 10:20am UTC](https://discourse.vtk.org/t/how-to-get-the-actually-clicked-actor-in-an-assembly/7027 "2021-11-01T10:20:25Z")

</div>

Hello,I have an assembly which is consisted of 3 actors,and vtkPropPicker is used for picking.I can get the clicked assembly,but how to determine which actor is actually clicked?

---

## [vtkPNGWriter to stream](https://discourse.vtk.org/t/vtkpngwriter-to-stream/7029)

<div class="topic-metadata">

**Author:** [@Olivier](https://discourse.vtk.org/u/Olivier)\
**Replies:** 2\
**Last updated:** [November 1, 2021, 3:35pm UTC](https://discourse.vtk.org/t/vtkpngwriter-to-stream/7029 "2021-11-01T15:35:30Z")

</div>

Hi dear friends, I want to make a screenshot of a VTK Renderer into a PNG stream. Way to go is obviously vtkNew\<vtkRenderLargeImage\> renderLarge; renderLarge-\>SetInput(renderer); vtkNew\<vtkPNGWriter\> writer; writer-\>S…

---

## [Convert NRRD to DICOM using itk.js](https://discourse.vtk.org/t/convert-nrrd-to-dicom-using-itk-js/6897)

<div class="topic-metadata">

**Author:** [@shanebenlolo](https://discourse.vtk.org/u/shanebenlolo)\
**Replies:** 7\
**Last updated:** [November 1, 2021, 1:58pm UTC](https://discourse.vtk.org/t/convert-nrrd-to-dicom-using-itk-js/6897 "2021-11-01T13:58:32Z")

</div>

I am trying to make NRRD files viewable in OHIF’s Local Viewer. So far, I have used itk.js’s readImageFile method to take NRRD files as input. Now I’d like to output the given file as a DICOM file, which will then be su…

---

## [VTK-9.1.0.rc2: vtkPoissonDiskSampler error: ld returned 1](https://discourse.vtk.org/t/vtk-9-1-0-rc2-vtkpoissondisksampler-error-ld-returned-1/7026)

<div class="topic-metadata">

**Author:** [@mrwsl](https://discourse.vtk.org/u/mrwsl)\
**Replies:** 4\
**Last updated:** [November 1, 2021, 11:17am UTC](https://discourse.vtk.org/t/vtk-9-1-0-rc2-vtkpoissondisksampler-error-ld-returned-1/7026 "2021-11-01T11:17:44Z")

</div>

I built VTK myself on two systems (arch & ubuntu hirsute) and changed the PolyDataPointSampler example to use the PoissonDiskSampler. On both systems I get the following error while compiling: $ make Scanning dependenci…

---

## [Installing VTK in Ubuntu 18.04 LTS](https://discourse.vtk.org/t/installing-vtk-in-ubuntu-18-04-lts/6977)

<div class="topic-metadata">

**Author:** [@mn14cat](https://discourse.vtk.org/u/mn14cat)\
**Replies:** 8\
**Last updated:** [October 30, 2021, 8:48am UTC](https://discourse.vtk.org/t/installing-vtk-in-ubuntu-18-04-lts/6977 "2021-10-30T08:48:03Z")

</div>

Hello all I am trying to downgrade my version of VTK from 6.3.0 to 5.10.1 so that I can use some python utilities (namely pyFoam) however when I try to compile the VTK5.10.1 I get the following error: CMake Error at CM…

---

## [Computation of the Rotation Transform between two positions](https://discourse.vtk.org/t/computation-of-the-rotation-transform-between-two-positions/6996)

<div class="topic-metadata">

**Author:** [@Luis\_Carlos\_Carneiro](https://discourse.vtk.org/u/Luis_Carlos_Carneiro)\
**Replies:** 1\
**Last updated:** [October 29, 2021, 5:07pm UTC](https://discourse.vtk.org/t/computation-of-the-rotation-transform-between-two-positions/6996 "2021-10-29T17:07:29Z")

</div>

Dear All, When I display a MHD (3D Skull) file with VTK it appears in one rotation/angle(s) position. But I want that initially it will in another angle(s) position. How can I position in another angle(s) and record th…

---

## [VTK Python rendering window not responding with basic scene](https://discourse.vtk.org/t/vtk-python-rendering-window-not-responding-with-basic-scene/7019)

<div class="topic-metadata">

**Author:** [@ronzim](https://discourse.vtk.org/u/ronzim)\
**Replies:** 0\
**Last updated:** [October 29, 2021, 3:28pm UTC](https://discourse.vtk.org/t/vtk-python-rendering-window-not-responding-with-basic-scene/7019 "2021-10-29T15:28:36Z")

</div>

Hello there, I’ve implemented a basic scene using vtkpython. When I call vtkRenderWindow.Render() the window appears correctly, but freezes at first interaction (not responding). My code: import vtk import time cone =…

---

## [VtkPolyData clip](https://discourse.vtk.org/t/vtkpolydata-clip/7006)

<div class="topic-metadata">

**Author:** [@Hanxin\_Hua](https://discourse.vtk.org/u/Hanxin_Hua)\
**Replies:** 5\
**Last updated:** [October 29, 2021, 3:04pm UTC](https://discourse.vtk.org/t/vtkpolydata-clip/7006 "2021-10-29T15:04:58Z")

</div>

Hi everyone, I have a problem. So in the image, the white part is a polydata of an iso surface. And I defined the implicit function of a sphere and cut it. vtkNew\<vtkClipPolyData\> isoClip; skinClip-\>SetInputData(…

---

## [Deep copy of polydata seems broken](https://discourse.vtk.org/t/deep-copy-of-polydata-seems-broken/7018)

<div class="topic-metadata">

**Author:** [@peterneher](https://discourse.vtk.org/u/peterneher)\
**Replies:** 0\
**Last updated:** [October 29, 2021, 2:13pm UTC](https://discourse.vtk.org/t/deep-copy-of-polydata-seems-broken/7018 "2021-10-29T14:13:28Z")

</div>

Hi everyone, in out project we recently upgraded from VTK 8 to 9. Following this I discovered an issue with copying polydata at this location in my code: MITK-Diffusion/mitkFiberBundle.cpp at master · MIC-DKFZ/MITK-Diff…

---

## [Overrall performances on a very simple scene, disappoiting/weird results ...](https://discourse.vtk.org/t/overrall-performances-on-a-very-simple-scene-disappoiting-weird-results/7015)

<div class="topic-metadata">

**Author:** [@Olivier](https://discourse.vtk.org/u/Olivier)\
**Replies:** 8\
**Last updated:** [October 29, 2021, 12:36pm UTC](https://discourse.vtk.org/t/overrall-performances-on-a-very-simple-scene-disappoiting-weird-results/7015 "2021-10-29T12:36:28Z")

</div>

Hi dear friends, I’m very new to VTK, and I’m currently testing/stressing it to evaluate its potential for replacing our current OpenGL frontend. The setup is quite simple : Windows 10 Latest VTK compiled with VS2022…

---

## [Access data on GPU directly with OpenGL-based volume mapper](https://discourse.vtk.org/t/access-data-on-gpu-directly-with-opengl-based-volume-mapper/7013)

<div class="topic-metadata">

**Author:** [@brnk](https://discourse.vtk.org/u/brnk)\
**Replies:** 0\
**Last updated:** [October 29, 2021, 8:40am UTC](https://discourse.vtk.org/t/access-data-on-gpu-directly-with-opengl-based-volume-mapper/7013 "2021-10-29T08:40:15Z")

</div>

I have an algorithm running on the GPU and I want to visualize its output matrix of size 1000 x 100 x 100 as a volume using a maximum intensity projection. Currently, I am copying the data back to the host, initialize a v…

---

## [Mesh tags](https://discourse.vtk.org/t/mesh-tags/7011)

<div class="topic-metadata">

**Author:** [@hamid\_badi](https://discourse.vtk.org/u/hamid_badi)\
**Replies:** 0\
**Last updated:** [October 29, 2021, 8:30am UTC](https://discourse.vtk.org/t/mesh-tags/7011 "2021-10-29T08:30:03Z")

</div>

Hello, I use gmsh which supports physical tags for geometric entities, this information is exported as a scalar “CELL\_DATA” in the vtk file but i don’t know how to see this information in the multiblock inspector. I re…

---

## [Please helpfor reslice questions](https://discourse.vtk.org/t/please-helpfor-reslice-questions/7009)

<div class="topic-metadata">

**Author:** [@Dgg820502](https://discourse.vtk.org/u/Dgg820502)\
**Replies:** 0\
**Last updated:** [October 29, 2021, 3:53am UTC](https://discourse.vtk.org/t/please-helpfor-reslice-questions/7009 "2021-10-29T03:53:13Z")

</div>

origin = planeNew.GetOrigin() planeNew.SetNormal(1, 0, 0) clipedData = vtk.vtkPolyData() clipedData.DeepCopy(cliper.GetOutput()) #################################### cutter = vtk.vtkC…

---

## [Live Demos for VTK Cxx examples](https://discourse.vtk.org/t/live-demos-for-vtk-cxx-examples/6960)

<div class="topic-metadata">

**Author:** [@jaswantp](https://discourse.vtk.org/u/jaswantp)\
**Replies:** 0\
**Last updated:** [October 25, 2021, 11:22am UTC](https://discourse.vtk.org/t/live-demos-for-vtk-cxx-examples/6960 "2021-10-25T11:22:06Z")

</div>

Since the VTK Cxx → Emscripten → (WebAssembly + JS) workflow is almost working, I am interested in getting feedback from the devs and users here, if this is a good idea… @amaclean Lets forget about the size of wasm bina…

---

## [Shader compilation issue](https://discourse.vtk.org/t/shader-compilation-issue/7008)

<div class="topic-metadata">

**Author:** [@nickc](https://discourse.vtk.org/u/nickc)\
**Replies:** 0\
**Last updated:** [October 28, 2021, 9:59pm UTC](https://discourse.vtk.org/t/shader-compilation-issue/7008 "2021-10-28T21:59:13Z")

</div>

Hi all, I apologize in advance - I’m not a VTK / GLSL expert. I am running into a compilation issue with a Qt5.6 project using VTK 8.0 on MacOS 10.15.7. I’m getting version errors every time I try to call the Compile f…

---

## [How to correctly use the coincidenttopology related methods on a mapper ?](https://discourse.vtk.org/t/how-to-correctly-use-the-coincidenttopology-related-methods-on-a-mapper/6888)

<div class="topic-metadata">

**Author:** [@raphael-bresson](https://discourse.vtk.org/u/raphael-bresson)\
**Replies:** 3\
**Last updated:** [October 28, 2021, 8:51pm UTC](https://discourse.vtk.org/t/how-to-correctly-use-the-coincidenttopology-related-methods-on-a-mapper/6888 "2021-10-28T20:51:14Z")

</div>

Hi, I have a polydata mapped as as surface, and a second one relying on the same points (but with only a few cells) that I want properly displayed above the first one. I read that the coincident topology related method…

---

## [Writing custom class based on \`vtkDataSet\`](https://discourse.vtk.org/t/writing-custom-class-based-on-vtkdataset/6950)

<div class="topic-metadata">

**Author:** [@kerim](https://discourse.vtk.org/u/kerim)\
**Replies:** 6\
**Last updated:** [October 28, 2021, 1:09pm UTC](https://discourse.vtk.org/t/writing-custom-class-based-on-vtkdataset/6950 "2021-10-28T13:09:20Z")

</div>

Hi, I’m thinking to write custom volume dataset for working with scalars. I work with geo data and usually there we have arbitrary X,Y coordinates (XY are oriented in horizontal plane, Z is vertical axis) and Z is usua…

---

## [Visualize complex-valued 3D volume](https://discourse.vtk.org/t/visualize-complex-valued-3d-volume/6982)

<div class="topic-metadata">

**Author:** [@brnk](https://discourse.vtk.org/u/brnk)\
**Replies:** 5\
**Last updated:** [October 28, 2021, 11:13am UTC](https://discourse.vtk.org/t/visualize-complex-valued-3d-volume/6982 "2021-10-28T11:13:03Z")

</div>

I have a three-dimensional complex-valued matrix of size NX x NY x NZ whose values are stored as a flat vector of size NX \* NY \* NZ \* 2 (factor 2 for real and imaginary parts). Each element in the matrix corresponds to …

---

## [Multiple renderers in same renderwindow - get event only from the one that was interacted with](https://discourse.vtk.org/t/multiple-renderers-in-same-renderwindow-get-event-only-from-the-one-that-was-interacted-with/6775)

<div class="topic-metadata">

**Author:** [@codeling](https://discourse.vtk.org/u/codeling)\
**Replies:** 1\
**Last updated:** [October 28, 2021, 8:35am UTC](https://discourse.vtk.org/t/multiple-renderers-in-same-renderwindow-get-event-only-from-the-one-that-was-interacted-with/6775 "2021-10-28T08:35:50Z")

</div>

My issue: I want to react on the event that a user interacted with a specific vtkRenderer in a vtkRenderWindow with multiple renderers, each with a separate viewport. For that purpose, I am observing the vtkCommand::En…

---

## [How to capture mouse move event?](https://discourse.vtk.org/t/how-to-capture-mouse-move-event/6995)

<div class="topic-metadata">

**Author:** [@Cameron](https://discourse.vtk.org/u/Cameron)\
**Replies:** 1\
**Last updated:** [October 28, 2021, 7:47am UTC](https://discourse.vtk.org/t/how-to-capture-mouse-move-event/6995 "2021-10-28T07:47:18Z")

</div>

I am struggling with capturing mouse move event. e.g. I have this custom style and set it to the interactor. namespace { class vtkMouseMoveStyle : public vtkInteractorStyleTrackballCamera { public: static vt…

---

## [ANN: Examples for Physically Based Rendering](https://discourse.vtk.org/t/ann-examples-for-physically-based-rendering/1981)

<div class="topic-metadata">

**Author:** [@amaclean](https://discourse.vtk.org/u/amaclean)\
**Replies:** 25\
**Last updated:** [October 28, 2021, 6:34am UTC](https://discourse.vtk.org/t/ann-examples-for-physically-based-rendering/1981 "2021-10-28T06:34:13Z")

</div>

After reading this impressive article: Introducing Physically Based Rendering with VTK. I created a couple of examples (both in C++ and Python) that (I hope) capture most of what has been written in the articles. In the…

---

## [Plotting Toolpath of 3D Printer as Arrows in VTK](https://discourse.vtk.org/t/plotting-toolpath-of-3d-printer-as-arrows-in-vtk/6928)

<div class="topic-metadata">

**Author:** [@BastianJuelich](https://discourse.vtk.org/u/BastianJuelich)\
**Replies:** 3\
**Last updated:** [October 27, 2021, 7:38pm UTC](https://discourse.vtk.org/t/plotting-toolpath-of-3d-printer-as-arrows-in-vtk/6928 "2021-10-27T19:38:11Z")

</div>

Hey, as i am currently working on visualizing the “Toolpath” for a 3d printing machine i am interested if this is possible with vtk (pretty sure it is…) So the Data i have is in a .cli File (COMMON LAYER INTERFACE (CLI…

---

## [Triggering render on camera change](https://discourse.vtk.org/t/triggering-render-on-camera-change/6975)

<div class="topic-metadata">

**Author:** [@Ebrahim\_Ebrahim](https://discourse.vtk.org/u/Ebrahim_Ebrahim)\
**Replies:** 6\
**Last updated:** [October 27, 2021, 4:18pm UTC](https://discourse.vtk.org/t/triggering-render-on-camera-change/6975 "2021-10-27T16:18:56Z")

</div>

I have multiple render windows that share the same camera, and I want user interaction with any given window to trigger a render for each other window. Currently if I interact with one render window, causing the shared …

---

## [Cannot find namespace 'VtkOpenGLRenderWindow0'](https://discourse.vtk.org/t/cannot-find-namespace-vtkopenglrenderwindow0/6920)

<div class="topic-metadata">

**Author:** [@bernland](https://discourse.vtk.org/u/bernland)\
**Replies:** 6\
**Last updated:** [October 27, 2021, 3:48pm UTC](https://discourse.vtk.org/t/cannot-find-namespace-vtkopenglrenderwindow0/6920 "2021-10-27T15:48:49Z")

</div>

I set up an Angular app that works well with GenericRenderWindow as well as FullScreenRenderWindow. However, I can’t seem to be able to use OpenGL/RenderWindow: import vtkOpenGLRenderWindow from ‘@kitware/vtk.js/Render…

---

## [Problem with vtkSelectEnclosedPoints](https://discourse.vtk.org/t/problem-with-vtkselectenclosedpoints/6988)

<div class="topic-metadata">

**Author:** [@mrwsl](https://discourse.vtk.org/u/mrwsl)\
**Replies:** 4\
**Last updated:** [October 27, 2021, 1:54pm UTC](https://discourse.vtk.org/t/problem-with-vtkselectenclosedpoints/6988 "2021-10-27T13:54:12Z")

</div>

Hi there, I’m loading STL files which come from various CAD Software. My goal is to create a grid of points in the x,y-plane at the top of the STL. I do this by creating the pattern according to the STL’s bounds and get…

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

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