# Latest

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

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

**Page:** 163

---

## [Unable to orveride KeyPress events in vtkInteractorStyle?](https://discourse.vtk.org/t/unable-to-orveride-keypress-events-in-vtkinteractorstyle/6659)

<div class="topic-metadata">

**Author:** [@scotsman60](https://discourse.vtk.org/u/scotsman60)\
**Replies:** 4\
**Last updated:** [September 20, 2021, 8:50pm UTC](https://discourse.vtk.org/t/unable-to-orveride-keypress-events-in-vtkinteractorstyle/6659 "2021-09-20T20:50:07Z")

</div>

Hello!! I’m using VTK 9.1 and Python 3.8 and I’m creating a custom InteractorStyle, derived from vtkInteractorStyleRubberBandPick, where I want to change some of the Events that drive view manipulation etc. to different…

---

## [VTK Multiple Blocks in One File](https://discourse.vtk.org/t/vtk-multiple-blocks-in-one-file/6645)

<div class="topic-metadata">

**Author:** [@AhmedAlshawi](https://discourse.vtk.org/u/AhmedAlshawi)\
**Replies:** 1\
**Last updated:** [September 18, 2021, 5:46am UTC](https://discourse.vtk.org/t/vtk-multiple-blocks-in-one-file/6645 "2021-09-18T05:46:23Z")

</div>

Hi, I am relatively new to VTK, and I am using it with Qt. I am trying to create a vtk file (XML based) that allows me to have multiple blocks/pieces (each an unstructured grid) in a single file. I have managed to creat…

---

## ["WebVR is not available" error](https://discourse.vtk.org/t/webvr-is-not-available-error/6653)

<div class="topic-metadata">

**Author:** [@lonewolf](https://discourse.vtk.org/u/lonewolf)\
**Replies:** 1\
**Last updated:** [September 17, 2021, 7:07pm UTC](https://discourse.vtk.org/t/webvr-is-not-available-error/6653 "2021-09-17T19:07:37Z")

</div>

Hi all, I have just upgraded my vtk js viewer from 13 to 19.2.11. I did the necessary adaptations and everything looks like its working fine except that I am getting an error after everything is loaded. “WebVR is not a…

---

## [Point data in some few points in an unstructured grid](https://discourse.vtk.org/t/point-data-in-some-few-points-in-an-unstructured-grid/6655)

<div class="topic-metadata">

**Author:** [@Sagues](https://discourse.vtk.org/u/Sagues)\
**Replies:** 0\
**Last updated:** [September 17, 2021, 6:46pm UTC](https://discourse.vtk.org/t/point-data-in-some-few-points-in-an-unstructured-grid/6655 "2021-09-17T18:46:20Z")

</div>

I have an unstructured grid with 100 points and I have to add data in few points, for instance 10 points. If I create an abstract array with this data and only add data in 10 points, then I have a lot of points with NAN …

---

## [Write several unstructured grids](https://discourse.vtk.org/t/write-several-unstructured-grids/6623)

<div class="topic-metadata">

**Author:** [@Sagues](https://discourse.vtk.org/u/Sagues)\
**Replies:** 8\
**Last updated:** [September 17, 2021, 6:42pm UTC](https://discourse.vtk.org/t/write-several-unstructured-grids/6623 "2021-09-17T18:42:49Z")

</div>

Is it possible to write several unstructured grids in one file without use MultiblockDataSet?

---

## [Conversion from python VTK to VTK.js](https://discourse.vtk.org/t/conversion-from-python-vtk-to-vtk-js/6627)

<div class="topic-metadata">

**Author:** [@Kevin\_Sweeney](https://discourse.vtk.org/u/Kevin_Sweeney)\
**Replies:** 7\
**Last updated:** [September 17, 2021, 12:05pm UTC](https://discourse.vtk.org/t/conversion-from-python-vtk-to-vtk-js/6627 "2021-09-17T12:05:40Z")

</div>

Hello, I am fairly new to VTK and especially to VTK.js, so please forgive my ignorance … I have a working VTK application in Python which I am trying to convert to VTK.js so that it can run in a browser. I am using CDN …

---

## [Querying other vector and scalar information in VTP files ?](https://discourse.vtk.org/t/querying-other-vector-and-scalar-information-in-vtp-files/6647)

<div class="topic-metadata">

**Author:** [@Nicholas\_Yue](https://discourse.vtk.org/u/Nicholas_Yue)\
**Replies:** 1\
**Last updated:** [September 17, 2021, 4:23am UTC](https://discourse.vtk.org/t/querying-other-vector-and-scalar-information-in-vtp-files/6647 "2021-09-17T04:23:36Z")

</div>

Hi, I have been able to reading VTP files to query their point position and their topology/connectivity in C++. I am calling GetPoint(index) to get the position, I am able to write them out as geometry file and loading …

---

## [vtkPolyData rendered upside down and reversed, why?](https://discourse.vtk.org/t/vtkpolydata-rendered-upside-down-and-reversed-why/6550)

<div class="topic-metadata">

**Author:** [@Tomasso](https://discourse.vtk.org/u/Tomasso)\
**Replies:** 4\
**Last updated:** [September 16, 2021, 11:20pm UTC](https://discourse.vtk.org/t/vtkpolydata-rendered-upside-down-and-reversed-why/6550 "2021-09-16T23:20:23Z")

</div>

I’m using VTK-8.2.0 on ubuntu 18.04.5. I’ve implemented rendering of VTK data with QtQuick via QQuickFramebufferObject, using the C++ approach described here; I subclass QQuickFramebufferObject (I call it QVtkItem) and …

---

## [vtk.js - How to serialize and deserialize vtkDataSet for Rest APIs](https://discourse.vtk.org/t/vtk-js-how-to-serialize-and-deserialize-vtkdataset-for-rest-apis/6634)

<div class="topic-metadata">

**Author:** [@hechmik](https://discourse.vtk.org/u/hechmik)\
**Replies:** 6\
**Last updated:** [September 16, 2021, 6:58pm UTC](https://discourse.vtk.org/t/vtk-js-how-to-serialize-and-deserialize-vtkdataset-for-rest-apis/6634 "2021-09-16T18:58:01Z")

</div>

Hi guys, I’m playing with vtk.js in order to better understand it, however I’m currently facing some issues and I certainly can benefit from your help. I would like to do something along the file of: A vtkDataset is l…

---

## [Changing the geometry of an actor made the picker worked incorrectly](https://discourse.vtk.org/t/changing-the-geometry-of-an-actor-made-the-picker-worked-incorrectly/2030)

<div class="topic-metadata">

**Author:** [@tdchen](https://discourse.vtk.org/u/tdchen)\
**Replies:** 8\
**Last updated:** [September 15, 2021, 11:07pm UTC](https://discourse.vtk.org/t/changing-the-geometry-of-an-actor-made-the-picker-worked-incorrectly/2030 "2021-09-15T23:07:43Z")

</div>

After an actor were created, its geometry were changed. In fact I just changed its polydata by splitting 1 big triangle into 3. But I found when I picked the actor, the big triangle seemed become 1 small triangle and …

---

## [Limit max FPS of vtkRenderWindow](https://discourse.vtk.org/t/limit-max-fps-of-vtkrenderwindow/6641)

<div class="topic-metadata">

**Author:** [@PWeissenbacher](https://discourse.vtk.org/u/PWeissenbacher)\
**Replies:** 1\
**Last updated:** [September 15, 2021, 9:48pm UTC](https://discourse.vtk.org/t/limit-max-fps-of-vtkrenderwindow/6641 "2021-09-15T21:48:28Z")

</div>

Hello. The vtkRenderWindow as well as the vtkRenderWindowInteractor both provide an interface to set the DesiredUpdateRate. This ensures, that I will get at least DesiredUpdateRate (FPS). Is there a way to limit the ma…

---

## [Python wrapping a VTK module file from outside VTK. Issue with supermodule](https://discourse.vtk.org/t/python-wrapping-a-vtk-module-file-from-outside-vtk-issue-with-supermodule/6500)

<div class="topic-metadata">

**Author:** [@Karthik\_Krishnan](https://discourse.vtk.org/u/Karthik_Krishnan)\
**Replies:** 11\
**Last updated:** [September 15, 2021, 8:52pm UTC](https://discourse.vtk.org/t/python-wrapping-a-vtk-module-file-from-outside-vtk-issue-with-supermodule/6500 "2021-09-15T20:52:18Z")

</div>

I am python wrapping a vtk class using the new way of doing it (not vtk\_wrap\_python3) as follows - vtk\_module\_wrap\_python( MODULES VTK::ModuleName SOABI “{Python{VTK\_PYTHON\_VERSION}\_SOABI}” …

---

## [How to create a mesh data from vtkPoints?](https://discourse.vtk.org/t/how-to-create-a-mesh-data-from-vtkpoints/6585)

<div class="topic-metadata">

**Author:** [@Kim\_William](https://discourse.vtk.org/u/Kim_William)\
**Replies:** 11\
**Last updated:** [September 15, 2021, 2:57am UTC](https://discourse.vtk.org/t/how-to-create-a-mesh-data-from-vtkpoints/6585 "2021-09-15T02:57:36Z")

</div>

Hi all. I have a question about the how to create a mesh data. I’m using the VTK 9.0 with the 3D Scanner. I can represent the point cloud data with vtkGaussainMapper. Previous inquiry: Now, I would like to represen…

---

## [Feasibility of breaking change to vtkWindow interface](https://discourse.vtk.org/t/feasibility-of-breaking-change-to-vtkwindow-interface/6619)

<div class="topic-metadata">

**Author:** [@Connor.Bowley](https://discourse.vtk.org/u/Connor.Bowley)\
**Replies:** 2\
**Last updated:** [September 14, 2021, 2:21pm UTC](https://discourse.vtk.org/t/feasibility-of-breaking-change-to-vtkwindow-interface/6619 "2021-09-14T14:21:35Z")

</div>

Hello. While working to increase rendering efficiency of I noticed via valgrind’s callgrind tool that vtkWindow::GetSize() was taking up more time than expected. Caching the TileSize on change of Size/TileScale improved …

---

## [vtkDICOM Warning on vtk Master Branch](https://discourse.vtk.org/t/vtkdicom-warning-on-vtk-master-branch/6620)

<div class="topic-metadata">

**Author:** [@adamgranthendry](https://discourse.vtk.org/u/adamgranthendry)\
**Replies:** 2\
**Last updated:** [September 14, 2021, 12:01pm UTC](https://discourse.vtk.org/t/vtkdicom-warning-on-vtk-master-branch/6620 "2021-09-14T12:01:36Z")

</div>

I think the vtkDICOM CMakeLists.txt is outdated and needs updating: CMake Deprecation Warning at Remote/vtkDICOM/CMakeLists.txt:5 (cmake\_minimum\_required): Compatibility with CMake \< 2.8.12 will be removed from a futu…

---

## [about vtkExtractPolyDataGeometry](https://discourse.vtk.org/t/about-vtkextractpolydatageometry/6621)

<div class="topic-metadata">

**Author:** [@loufear](https://discourse.vtk.org/u/loufear)\
**Replies:** 0\
**Last updated:** [September 14, 2021, 3:12am UTC](https://discourse.vtk.org/t/about-vtkextractpolydatageometry/6621 "2021-09-14T03:12:22Z")

</div>

How do I get the data on the front side of the box or what I can see .The data on the back or the front is not needed

---

## [Packaging/installing applications that uses VTK](https://discourse.vtk.org/t/packaging-installing-applications-that-uses-vtk/6574)

<div class="topic-metadata">

**Author:** [@Nicholas\_Yue](https://discourse.vtk.org/u/Nicholas_Yue)\
**Replies:** 1\
**Last updated:** [September 14, 2021, 1:16am UTC](https://discourse.vtk.org/t/packaging-installing-applications-that-uses-vtk/6574 "2021-09-14T01:16:18Z")

</div>

I have been reading about packaging application that link against VTK talking about RPATH and such. Some of the article I read is a couple of years old and I am wondering with the recent updates and module-rization of V…

---

## [missing Development.Module and compiler error](https://discourse.vtk.org/t/missing-development-module-and-compiler-error/6541)

<div class="topic-metadata">

**Author:** [@Drew](https://discourse.vtk.org/u/Drew)\
**Replies:** 1\
**Last updated:** [September 14, 2021, 1:11am UTC](https://discourse.vtk.org/t/missing-development-module-and-compiler-error/6541 "2021-09-14T01:11:52Z")

</div>

Hello, I am running into some issues installing VTK from source. I am trying to decode the cmake error : Could NOT find Python3 (missing: Development.Module) (found version "3.8.11") and the compilation error that happen…

---

## [Very confused about imdata matrix index order](https://discourse.vtk.org/t/very-confused-about-imdata-matrix-index-order/6608)

<div class="topic-metadata">

**Author:** [@dani](https://discourse.vtk.org/u/dani)\
**Replies:** 10\
**Last updated:** [September 13, 2021, 3:36pm UTC](https://discourse.vtk.org/t/very-confused-about-imdata-matrix-index-order/6608 "2021-09-13T15:36:19Z")

</div>

Dear, I am working in python. I am very confused about the index ordering in the matrix I do pass to imdata. I do have a numpy array named matrix, with indexes \[x,y,z\] that I pass to a vtkImageData with: imdata = vtk.…

---

## [VTK color 3D image display error](https://discourse.vtk.org/t/vtk-color-3d-image-display-error/6434)

<div class="topic-metadata">

**Author:** [@Luis\_Carlos\_Carneiro](https://discourse.vtk.org/u/Luis_Carlos_Carneiro)\
**Replies:** 9\
**Last updated:** [September 13, 2021, 12:10pm UTC](https://discourse.vtk.org/t/vtk-color-3d-image-display-error/6434 "2021-09-13T12:10:22Z")

</div>

Dear All, I have a 3D, MHD color image display error with VTK with interactor. The image has 2.8GBytes (raw). The problem is in Linux. My computer has 20GBytes of RAM and is i7 (Intel GPU). VTK 9.0.3 2021-08-20 11:52…

---

## [problem about actor rotation](https://discourse.vtk.org/t/problem-about-actor-rotation/6616)

<div class="topic-metadata">

**Author:** [@Noobbbb](https://discourse.vtk.org/u/Noobbbb)\
**Replies:** 0\
**Last updated:** [September 12, 2021, 2:59pm UTC](https://discourse.vtk.org/t/problem-about-actor-rotation/6616 "2021-09-12T14:59:11Z")

</div>

Hi,i’m trying to rotate an actor around itself (the head of this machine)，bu it seem that it rotate around an axis in the world，how can i fix this ？ my code： bmHead-\>RotateWXYZ(10, 1, 0, 0);| bmHead-\>SetPosition( -th…

---

## [Does vtk.js have any plans to support pointer event?](https://discourse.vtk.org/t/does-vtk-js-have-any-plans-to-support-pointer-event/6610)

<div class="topic-metadata">

**Author:** [@gandis0713](https://discourse.vtk.org/u/gandis0713)\
**Replies:** 1\
**Last updated:** [September 11, 2021, 10:32pm UTC](https://discourse.vtk.org/t/does-vtk-js-have-any-plans-to-support-pointer-event/6610 "2021-09-11T22:32:30Z")

</div>

I’m using vtk.js just fine. Thank you very much. We are currently implementing gestures and pen actions on tablet devices. It seems that vtk.js supports touch+mouse events. I think this alone should be enough to suppo…

---

## [\`vtkAxisActor2D\` setting label font size doesn't work](https://discourse.vtk.org/t/vtkaxisactor2d-setting-label-font-size-doesnt-work/6613)

<div class="topic-metadata">

**Author:** [@kerim](https://discourse.vtk.org/u/kerim)\
**Replies:** 0\
**Last updated:** [September 11, 2021, 10:10pm UTC](https://discourse.vtk.org/t/vtkaxisactor2d-setting-label-font-size-doesnt-work/6613 "2021-09-11T22:10:40Z")

</div>

Hi, I’m trying to set constant font size for vtkAxisActor2D labels. Acoordint to the documentation there is a method UseFontSizeFromPropertyOn() wich should be used if we want to manually set font size via text propert…

---

## [how to use getOrientation() / setOrientation(), returning \[undefined\]](https://discourse.vtk.org/t/how-to-use-getorientation-setorientation-returning-undefined/6612)

<div class="topic-metadata">

**Author:** [@shanebenlolo](https://discourse.vtk.org/u/shanebenlolo)\
**Replies:** 0\
**Last updated:** [September 11, 2021, 7:08pm UTC](https://discourse.vtk.org/t/how-to-use-getorientation-setorientation-returning-undefined/6612 "2021-09-11T19:08:28Z")

</div>

Hello, I am trying to rotate my 3d volume. I have already implemented a function which repositions the volume using the following code: shiftX({ layer, value }) { apis.forEach(api =\> { const currentPosi…

---

## [HighlightSelection example not rendering properly](https://discourse.vtk.org/t/highlightselection-example-not-rendering-properly/6604)

<div class="topic-metadata">

**Author:** [@Drew](https://discourse.vtk.org/u/Drew)\
**Replies:** 1\
**Last updated:** [September 11, 2021, 1:26am UTC](https://discourse.vtk.org/t/highlightselection-example-not-rendering-properly/6604 "2021-09-11T01:26:57Z")

</div>

This is in regards to the Cxx example HighlightSelection which can be found at https://kitware.github.io/vtk-examples/site/Cxx/Picking/HighlightSelection/ When you select cells the user does not see those cells highlig…

---

## [How to properly cleanup vtk to use it across different threads on Windows (python-vtk)](https://discourse.vtk.org/t/how-to-properly-cleanup-vtk-to-use-it-across-different-threads-on-windows-python-vtk/6380)

<div class="topic-metadata">

**Author:** [@filsilva](https://discourse.vtk.org/u/filsilva)\
**Replies:** 12\
**Last updated:** [September 10, 2021, 6:36pm UTC](https://discourse.vtk.org/t/how-to-properly-cleanup-vtk-to-use-it-across-different-threads-on-windows-python-vtk/6380 "2021-09-10T18:36:54Z")

</div>

Hi All, For our project we (@devmessias ) need to use timers that are executed in other threads and need to call some vtk functions on them. This works fine on Linux and Mac as the same OpenGL context can be shared acr…

---

## [vtkPolyDataReader: Premature EOF](https://discourse.vtk.org/t/vtkpolydatareader-premature-eof/6607)

<div class="topic-metadata">

**Author:** [@Nezir0](https://discourse.vtk.org/u/Nezir0)\
**Replies:** 0\
**Last updated:** [September 10, 2021, 5:34pm UTC](https://discourse.vtk.org/t/vtkpolydatareader-premature-eof/6607 "2021-09-10T17:34:18Z")

</div>

Greetings, I’m trying to implement Implicit modeling from lines spelling the word “hello.” and my code: vtkNew reader; reader-\>SetFileName(“C:/Users/ASUS/Desktop/Hello/hello.vtk”); however when running it gives me a…

---

## [vtkCallbackCommand for class member functions](https://discourse.vtk.org/t/vtkcallbackcommand-for-class-member-functions/6591)

<div class="topic-metadata">

**Author:** [@PWeissenbacher](https://discourse.vtk.org/u/PWeissenbacher)\
**Replies:** 4\
**Last updated:** [September 10, 2021, 8:24am UTC](https://discourse.vtk.org/t/vtkcallbackcommand-for-class-member-functions/6591 "2021-09-10T08:24:15Z")

</div>

Hello VTK Community. I’m looking for a way, to register a class member function as a callback to a vtkCallbackCommand like that: class foo { public: void bar(vtkObject\* caller, unsigned long eId, void\* clientData, v…

---

## [CellPicking and changing cell color using Scalars](https://discourse.vtk.org/t/cellpicking-and-changing-cell-color-using-scalars/6600)

<div class="topic-metadata">

**Author:** [@Drew](https://discourse.vtk.org/u/Drew)\
**Replies:** 0\
**Last updated:** [September 10, 2021, 3:11am UTC](https://discourse.vtk.org/t/cellpicking-and-changing-cell-color-using-scalars/6600 "2021-09-10T03:11:10Z")

</div>

The current CellPicking example changes a triangular part of a square cell and does this by layering actors on top of each other (at least that is what it appears to be doing). I wanted to create a simple CellPicking exa…

---

## [Building VTK from source in windows for python or 'CameraOrientationWidget'](https://discourse.vtk.org/t/building-vtk-from-source-in-windows-for-python-or-cameraorientationwidget/6557)

<div class="topic-metadata">

**Author:** [@Aymane\_Gr](https://discourse.vtk.org/u/Aymane_Gr)\
**Replies:** 4\
**Last updated:** [September 9, 2021, 11:37pm UTC](https://discourse.vtk.org/t/building-vtk-from-source-in-windows-for-python-or-cameraorientationwidget/6557 "2021-09-09T23:37:06Z")

</div>

Hello everyone i hope you’re doing well, As a newbie, i installed vtk from python using pip install vtk. However i had an error when using cam\_orient\_manipulator = vtk.vtkCameraOrientationWidget() claiming that vtk h…

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

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