# Latest

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

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

**Page:** 80

---

## [about vtk SMP](https://discourse.vtk.org/t/about-vtk-smp/11941)

<div class="topic-metadata">

**Author:** [@marlon.ma](https://discourse.vtk.org/u/marlon.ma)\
**Replies:** 2\
**Last updated:** [July 14, 2023, 1:01am UTC](https://discourse.vtk.org/t/about-vtk-smp/11941 "2023-07-14T01:01:48Z")

</div>

ImageMapToColors = vtkSmartPointer\<vtkImageMapToWindowLevelColors\>::New(); ImageMapToColors-\>SetWindow(Window); ImageMapToColors-\>SetLevel(level); ImageMapToColors-\>SetInputData(ImageData); ImageMapToColors-\>SetEnabl…

---

## [How to select a hexahedral cell using HardwareSelector](https://discourse.vtk.org/t/how-to-select-a-hexahedral-cell-using-hardwareselector/2062)

<div class="topic-metadata">

**Author:** [@kknnnyy](https://discourse.vtk.org/u/kknnnyy)\
**Replies:** 4\
**Last updated:** [July 13, 2023, 5:17pm UTC](https://discourse.vtk.org/t/how-to-select-a-hexahedral-cell-using-hardwareselector/2062 "2023-07-13T17:17:29Z")

</div>

I want to use vtkhardwareselector to get the hexahedral cell id in unstructuredgrid, so I found a problem after converting unstructuredgrid to polydata. The cell id of the three faces of the hexahedral cell in the corner…

---

## [Get Wrong World position When Rotate Image Data](https://discourse.vtk.org/t/get-wrong-world-position-when-rotate-image-data/11933)

<div class="topic-metadata">

**Author:** [@m.h.shanazary](https://discourse.vtk.org/u/m.h.shanazary)\
**Replies:** 0\
**Last updated:** [July 12, 2023, 1:51pm UTC](https://discourse.vtk.org/t/get-wrong-world-position-when-rotate-image-data/11933 "2023-07-12T13:51:47Z")

</div>

Hi I Get World Position With vtkWorldPointPicker Its Work When Have not Rotate image Data but When I Rotate VtkImageData its wrong working its my code Rotate And Method To Get Mouse position Method I get world position …

---

## [vtkPolyDataNormals::Update() segmentation fault](https://discourse.vtk.org/t/vtkpolydatanormals-update-segmentation-fault/11876)

<div class="topic-metadata">

**Author:** [@whereismymoney](https://discourse.vtk.org/u/whereismymoney)\
**Replies:** 8\
**Last updated:** [July 12, 2023, 9:46pm UTC](https://discourse.vtk.org/t/vtkpolydatanormals-update-segmentation-fault/11876 "2023-07-12T21:46:38Z")

</div>

I have some polydata that looks reasonable (about 2000 points and vertices). However, I get a segmentation fault in vtkPolyDataNormals::Update(). This is after I run the polydata through a vtkCleanPolyData. I have sav…

---

## [How to disable the line that automatically connect the polyData in the vtk renderer window?](https://discourse.vtk.org/t/how-to-disable-the-line-that-automatically-connect-the-polydata-in-the-vtk-renderer-window/11843)

<div class="topic-metadata">

**Author:** [@yen](https://discourse.vtk.org/u/yen)\
**Replies:** 4\
**Last updated:** [July 12, 2023, 2:15pm UTC](https://discourse.vtk.org/t/how-to-disable-the-line-that-automatically-connect-the-polydata-in-the-vtk-renderer-window/11843 "2023-07-12T14:15:09Z")

</div>

Hello, I am a newcomer to vtk recently. I just encountered a problem. When I show my 3D object in vtk renderer window, I saw a lot of line that connect all vtkPolyData. However, when I extract some features that I want t…

---

## [export rendered scene to clipboard](https://discourse.vtk.org/t/export-rendered-scene-to-clipboard/11896)

<div class="topic-metadata">

**Author:** [@philippeseil](https://discourse.vtk.org/u/philippeseil)\
**Replies:** 4\
**Last updated:** [July 12, 2023, 1:08pm UTC](https://discourse.vtk.org/t/export-rendered-scene-to-clipboard/11896 "2023-07-12T13:08:21Z")

</div>

Hi all, I´d like to export the current content of a vtkRenderWindow to the clipboard. Is there a straightforward way to achieve this? thanks!

---

## [How to draw a resizable circle?](https://discourse.vtk.org/t/how-to-draw-a-resizable-circle/11575)

<div class="topic-metadata">

**Author:** [@Manju](https://discourse.vtk.org/u/Manju)\
**Replies:** 4\
**Last updated:** [July 12, 2023, 9:20am UTC](https://discourse.vtk.org/t/how-to-draw-a-resizable-circle/11575 "2023-07-12T09:20:44Z")

</div>

I need to insert a circle into VTK widget window via mouse interaction. Its radius and position should be resizable by dragging. Inserting a polydata doesn’t seem to provide the option to modify radius and position. Coul…

---

## [Issue about cmake VTK for QVTKOpenGLNativeWidget](https://discourse.vtk.org/t/issue-about-cmake-vtk-for-qvtkopenglnativewidget/11909)

<div class="topic-metadata">

**Author:** [@yen](https://discourse.vtk.org/u/yen)\
**Replies:** 1\
**Last updated:** [July 11, 2023, 9:56pm UTC](https://discourse.vtk.org/t/issue-about-cmake-vtk-for-qvtkopenglnativewidget/11909 "2023-07-11T21:56:53Z")

</div>

Hello, I am currently using Qt6 and VTK-9.2. When I want to use QVTKOpenGLNativeWidget, I re-compile my vtk by cmake-gui. However, when I finished configuring VTK, my building and install procedure kept encountering erro…

---

## [How to build a plane passing through 3 points](https://discourse.vtk.org/t/how-to-build-a-plane-passing-through-3-points/11926)

<div class="topic-metadata">

**Author:** [@ioneianni](https://discourse.vtk.org/u/ioneianni)\
**Replies:** 2\
**Last updated:** [July 11, 2023, 2:10pm UTC](https://discourse.vtk.org/t/how-to-build-a-plane-passing-through-3-points/11926 "2023-07-11T14:10:58Z")

</div>

Hi, I would like to build a plane knowing only three points. Here is my code, but it dosen’t work can someone help please? planes = \[\] planes.append(vtkPlanes()) planes\[0\].SetPoints(points\_bct) piano\_aorta = planes\[…

---

## [Paraview Error: Start-end tags mismatch. Error offset: 15464\]](https://discourse.vtk.org/t/paraview-error-start-end-tags-mismatch-error-offset-15464/11920)

<div class="topic-metadata">

**Author:** [@Sudhanshu](https://discourse.vtk.org/u/Sudhanshu)\
**Replies:** 1\
**Last updated:** [July 10, 2023, 11:48pm UTC](https://discourse.vtk.org/t/paraview-error-start-end-tags-mismatch-error-offset-15464/11920 "2023-07-10T23:48:55Z")

</div>

Hi Everyone, I am curious if anyone come across the following error. I tried searching on Google for this error. Not much help. ERROR: In vtkCityGMLReader.cxx, line 1085 vtkCityGMLReader (000002976C5A8CC0): XML \[C:\\U…

---

## [Installing Paraview without removing libvtk9-dev](https://discourse.vtk.org/t/installing-paraview-without-removing-libvtk9-dev/11907)

<div class="topic-metadata">

**Author:** [@Hisham](https://discourse.vtk.org/u/Hisham)\
**Replies:** 2\
**Last updated:** [July 10, 2023, 9:07pm UTC](https://discourse.vtk.org/t/installing-paraview-without-removing-libvtk9-dev/11907 "2023-07-10T21:07:19Z")

</div>

Hi all, I have libvtk9-dev installed on Ubuntu 22.04 Jammy, and using it within my project to write my output to vtp file, I importing it to my project through CMake. find\_package(VTK REQUIRED) target\_link\_libraries(s…

---

## [How to get the real actor position when GetPosition returns (0,0,0)](https://discourse.vtk.org/t/how-to-get-the-real-actor-position-when-getposition-returns-0-0-0/11914)

<div class="topic-metadata">

**Author:** [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)\
**Replies:** 0\
**Last updated:** [July 10, 2023, 10:22am UTC](https://discourse.vtk.org/t/how-to-get-the-real-actor-position-when-getposition-returns-0-0-0/11914 "2023-07-10T10:22:56Z")

</div>

Hello,when actor.GetPosition returns (0,0,0),can I use actor.GetCenter to replace?

---

## [Seems vtkImageReslice::SetResliceTransform doesn't change output spacing and extent](https://discourse.vtk.org/t/seems-vtkimagereslice-setreslicetransform-doesnt-change-output-spacing-and-extent/11880)

<div class="topic-metadata">

**Author:** [@Anton\_Botnov](https://discourse.vtk.org/u/Anton_Botnov)\
**Replies:** 8\
**Last updated:** [July 10, 2023, 9:53am UTC](https://discourse.vtk.org/t/seems-vtkimagereslice-setreslicetransform-doesnt-change-output-spacing-and-extent/11880 "2023-07-10T09:53:42Z")

</div>

Hi, everyone. I’m using vtk for working with 3D dicom images and faced with one problem. If I use vtkImageReslice::SetResliceTransform functionality, the output spacing and extent of resulting dicom are not changed. It…

---

## [How do I render image from an array containing the rgb format for each pixel of 256x256 size of image. The array is a continuous series of data in 1D form obtained after operations on ndarray.](https://discourse.vtk.org/t/how-do-i-render-image-from-an-array-containing-the-rgb-format-for-each-pixel-of-256x256-size-of-image-the-array-is-a-continuous-series-of-data-in-1d-form-obtained-after-operations-on-ndarray/11911)

<div class="topic-metadata">

**Author:** [@Gopal\_Baidawar](https://discourse.vtk.org/u/Gopal_Baidawar)\
**Replies:** 0\
**Last updated:** [July 10, 2023, 6:28am UTC](https://discourse.vtk.org/t/how-do-i-render-image-from-an-array-containing-the-rgb-format-for-each-pixel-of-256x256-size-of-image-the-array-is-a-continuous-series-of-data-in-1d-form-obtained-after-operations-on-ndarray/11911 "2023-07-10T06:28:51Z")

</div>

Here’s the snippet of a code I tried to perform. function selectGrid(imageContainer, gridData, width = 256, height = 256) { const fullScreenRenderer = vtkFullScreenRenderWindow.newInstance({ rootContainer: imageCo…

---

## [how to fix the font size/length for vtkLegendScaleActor](https://discourse.vtk.org/t/how-to-fix-the-font-size-length-for-vtklegendscaleactor/11874)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 2\
**Last updated:** [July 10, 2023, 3:04am UTC](https://discourse.vtk.org/t/how-to-fix-the-font-size-length-for-vtklegendscaleactor/11874 "2023-07-10T03:04:55Z")

</div>

I use vtkLegendScaleActor in my project. When the window is resized, I expect the font size/length of vtkLegendScaleActor is fixed. In the resizeEvent: def resizeEvent(self, evt) -\> None: super().resizeEven…

---

## [Feature Edges not detecting BoundaryEdges](https://discourse.vtk.org/t/feature-edges-not-detecting-boundaryedges/11905)

<div class="topic-metadata">

**Author:** [@madmoonman](https://discourse.vtk.org/u/madmoonman)\
**Replies:** 2\
**Last updated:** [July 9, 2023, 1:46pm UTC](https://discourse.vtk.org/t/feature-edges-not-detecting-boundaryedges/11905 "2023-07-09T13:46:33Z")

</div>

Hello, I am having trouble detecting BoundaryEdges of a triangulated surface mesh. As I am not yet allowed to upload files, I share here the code and the stl file I am using for this test. The stl is a cube made out of …

---

## [VTK window doesn't show up?!...](https://discourse.vtk.org/t/vtk-window-doesnt-show-up/11891)

<div class="topic-metadata">

**Author:** [@fghoussen](https://discourse.vtk.org/u/fghoussen)\
**Replies:** 17\
**Last updated:** [July 9, 2023, 8:58am UTC](https://discourse.vtk.org/t/vtk-window-doesnt-show-up/11891 "2023-07-09T08:58:40Z")

</div>

In a very simple case, VTK window doesn’t show up?!.. Any clue why? Here the sample: \>\> cat vtkTest.cpp // STL. #include \<iostream\> // cout #include \<stdexcept\> // exception // VTK. #include \<vtkNew.h\> #include \<vtkP…

---

## [Trame raycast is low in example './trame-tutorial/01\_vtk/solution\_ray\_cast.py'](https://discourse.vtk.org/t/trame-raycast-is-low-in-example-trame-tutorial-01-vtk-solution-ray-cast-py/11902)

<div class="topic-metadata">

**Author:** [@jackzzz](https://discourse.vtk.org/u/jackzzz)\
**Replies:** 2\
**Last updated:** [July 9, 2023, 1:42am UTC](https://discourse.vtk.org/t/trame-raycast-is-low-in-example-trame-tutorial-01-vtk-solution-ray-cast-py/11902 "2023-07-09T01:42:12Z")

</div>

Dear Trame team, my computer(Win11) has intel i7 cpu (6 cpu cores) , when i am runing example ‘./trame-tutorial/01\_vtk/solution\_ray\_cast.py’ (vtkFixedPointVolumeRayCastMapper is used in this example) , only about 30% cpu…

---

## [Using vtk with react](https://discourse.vtk.org/t/using-vtk-with-react/11833)

<div class="topic-metadata">

**Author:** [@zmladen](https://discourse.vtk.org/u/zmladen)\
**Replies:** 4\
**Last updated:** [July 8, 2023, 8:09pm UTC](https://discourse.vtk.org/t/using-vtk-with-react/11833 "2023-07-08T20:09:23Z")

</div>

Hello, i wanted to try the example of using vtk with reactjs, but the code is not working. Can someone help to get it work? https://kitware.github.io/vtk-js/docs/vtk\_react.html Thanks, zmladen

---

## [Correctly SetInputData of ExtractSelection](https://discourse.vtk.org/t/correctly-setinputdata-of-extractselection/11900)

<div class="topic-metadata">

**Author:** [@madmoonman](https://discourse.vtk.org/u/madmoonman)\
**Replies:** 1\
**Last updated:** [July 8, 2023, 9:34am UTC](https://discourse.vtk.org/t/correctly-setinputdata-of-extractselection/11900 "2023-07-08T09:34:16Z")

</div>

Hello, I need a little help to understand how to use the SetInputData method of a vtkExtractSelektion class instance.I am looking specifically at this example here: https://examples.vtk.org/site/Python/Picking/CellPickin…

---

## [How to get the global ids in many different dataset?](https://discourse.vtk.org/t/how-to-get-the-global-ids-in-many-different-dataset/11863)

<div class="topic-metadata">

**Author:** [@rockydut](https://discourse.vtk.org/u/rockydut)\
**Replies:** 3\
**Last updated:** [July 8, 2023, 2:21am UTC](https://discourse.vtk.org/t/how-to-get-the-global-ids-in-many-different-dataset/11863 "2023-07-08T02:21:39Z")

</div>

Dear all. I have many different datasets, and their topological structures are stored in different datasets, but the numbering of points and cells are unified. How to find global points and cell ids in different datase…

---

## [vtkremoteview- how cliend get mouse position and notify python vtk server](https://discourse.vtk.org/t/vtkremoteview-how-cliend-get-mouse-position-and-notify-python-vtk-server/11885)

<div class="topic-metadata">

**Author:** [@baoyun](https://discourse.vtk.org/u/baoyun)\
**Replies:** 5\
**Last updated:** [July 7, 2023, 9:59pm UTC](https://discourse.vtk.org/t/vtkremoteview-how-cliend-get-mouse-position-and-notify-python-vtk-server/11885 "2023-07-07T21:59:23Z")

</div>

Hi, I setup using paraviewwebclient and python server for vtk remote rendering. Want to learn more about how client communicatin with python server, Now I can pass object from client to python server and get infomation…

---

## [\[vtk.js\] Mesh only shows after clicking on the screen](https://discourse.vtk.org/t/vtk-js-mesh-only-shows-after-clicking-on-the-screen/11894)

<div class="topic-metadata">

**Author:** [@fleurgaudfernau](https://discourse.vtk.org/u/fleurgaudfernau)\
**Replies:** 5\
**Last updated:** [July 7, 2023, 7:58pm UTC](https://discourse.vtk.org/t/vtk-js-mesh-only-shows-after-clicking-on-the-screen/11894 "2023-07-07T19:58:56Z")

</div>

Hello everyone, I am using vtk.js (imported as an external file) to display a time series of meshes. My code is heavily inspired from the time series example. Everything works quite well except that: when a user fir…

---

## [Mouse drag event remapping ?](https://discourse.vtk.org/t/mouse-drag-event-remapping/11882)

<div class="topic-metadata">

**Author:** [@ujjwala](https://discourse.vtk.org/u/ujjwala)\
**Replies:** 1\
**Last updated:** [July 7, 2023, 5:25pm UTC](https://discourse.vtk.org/t/mouse-drag-event-remapping/11882 "2023-07-07T17:25:41Z")

</div>

Hi, I have a unstructured grid in QVTKOpenGLNativeWidget, which on a right mouse drag event I want to move. I noticed that by default this behavior is already implemented using the middle mouse wheel/button drag event. …

---

## [interaction during animation](https://discourse.vtk.org/t/interaction-during-animation/11898)

<div class="topic-metadata">

**Author:** [@Vispec\_DMIS](https://discourse.vtk.org/u/Vispec_DMIS)\
**Replies:** 0\
**Last updated:** [July 7, 2023, 12:43pm UTC](https://discourse.vtk.org/t/interaction-during-animation/11898 "2023-07-07T12:43:40Z")

</div>

Hello, I downloaded and ran the official vtk animation case, and found that the mouse cannot operate during animation. I searched on Google and couldn’t find the answer. Does anyone know how to do it.

---

## [vtkQWidgetWidget Example usage (other than the unit tests)](https://discourse.vtk.org/t/vtkqwidgetwidget-example-usage-other-than-the-unit-tests/11893)

<div class="topic-metadata">

**Author:** [@Michael\_Jackson](https://discourse.vtk.org/u/Michael_Jackson)\
**Replies:** 1\
**Last updated:** [July 7, 2023, 9:05am UTC](https://discourse.vtk.org/t/vtkqwidgetwidget-example-usage-other-than-the-unit-tests/11893 "2023-07-07T09:05:10Z")

</div>

Is there a working example that uses the vtkQWidgetWidget with Qt6 (Hopefully). I tried to adapt the unit test bits into our application but nothing shows up that we can “see”. Was just adding a simple QButton. I’d like …

---

## [Configuring ElmerFEM-GUI fails because VTK can't find Python](https://discourse.vtk.org/t/configuring-elmerfem-gui-fails-because-vtk-cant-find-python/11824)

<div class="topic-metadata">

**Author:** [@EnderWiggin14](https://discourse.vtk.org/u/EnderWiggin14)\
**Replies:** 3\
**Last updated:** [July 6, 2023, 9:22pm UTC](https://discourse.vtk.org/t/configuring-elmerfem-gui-fails-because-vtk-cant-find-python/11824 "2023-07-06T21:22:26Z")

</div>

Just as the title says, I’m trying to build ElmerFEM-GUI, but I’m unable to make it through the configuration process because it seems that a VTK cmake script is failing to find the installed python package. The issue is…

---

## [Problems with using vtkTubeFilter](https://discourse.vtk.org/t/problems-with-using-vtktubefilter/11890)

<div class="topic-metadata">

**Author:** [@wshunvx](https://discourse.vtk.org/u/wshunvx)\
**Replies:** 0\
**Last updated:** [July 6, 2023, 8:46am UTC](https://discourse.vtk.org/t/problems-with-using-vtktubefilter/11890 "2023-07-06T08:46:35Z")

</div>

I’m trying to draw a rectangular ring, obese when closed? idx = 6 l = 1 w = 1 dr = .1 points = vtkPoints() points.InsertNextPoint(0, w/2, 0) points.InsertNextPoint(0, w, 0) points.InsertN…

---

## [STL model voxel](https://discourse.vtk.org/t/stl-model-voxel/5188)

<div class="topic-metadata">

**Author:** [@wjx2580](https://discourse.vtk.org/u/wjx2580)\
**Replies:** 2\
**Last updated:** [July 6, 2023, 8:18am UTC](https://discourse.vtk.org/t/stl-model-voxel/5188 "2023-07-06T08:18:26Z")

</div>

Hello, everyone. I am a novice. Does anyone know how to use octree algorithm to voxel STL model？

---

## [This is a question about format conversion](https://discourse.vtk.org/t/this-is-a-question-about-format-conversion/11886)

<div class="topic-metadata">

**Author:** [@865979216](https://discourse.vtk.org/u/865979216)\
**Replies:** 0\
**Last updated:** [July 6, 2023, 3:00am UTC](https://discourse.vtk.org/t/this-is-a-question-about-format-conversion/11886 "2023-07-06T03:00:27Z")

</div>

Can I convert the . vti file to . obj, or . ply, or. stl or .glb . Do not use \[vtkMarchingCubes MarchingCubes=new vtkMarchingCubes();\]

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

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