# Latest

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

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

**Page:** 124

---

## [Wrong behaviour stacking different images with vtkImageAppend](https://discourse.vtk.org/t/wrong-behaviour-stacking-different-images-with-vtkimageappend/1761)

<div class="topic-metadata">

**Author:** [@dev3011](https://discourse.vtk.org/u/dev3011)\
**Replies:** 5\
**Last updated:** [July 27, 2022, 9:27am UTC](https://discourse.vtk.org/t/wrong-behaviour-stacking-different-images-with-vtkimageappend/1761 "2022-07-27T09:27:43Z")

</div>

Hey, I have trouble solving the following task with VTK: I have a couple of 2D images I obtain from OpenCV that represent slices of a 3D object. I want to stack these 2D images (in z direction) to reconstruct the 3D st…

---

## [Read a VTK from a file content](https://discourse.vtk.org/t/read-a-vtk-from-a-file-content/9017)

<div class="topic-metadata">

**Author:** [@moshec](https://discourse.vtk.org/u/moshec)\
**Replies:** 5\
**Last updated:** [July 27, 2022, 1:53am UTC](https://discourse.vtk.org/t/read-a-vtk-from-a-file-content/9017 "2022-07-27T01:53:27Z")

</div>

Hi everyone, I’m using Python, I have a tar file that contains some VTK files, I don’t want to extract the files to the hard disk and then read the file with a reader- Instead, I assign the VTK file content in run ti…

---

## [Python Overloading Resolution issue with vtkMultiProcessController::Gather](https://discourse.vtk.org/t/python-overloading-resolution-issue-with-vtkmultiprocesscontroller-gather/9023)

<div class="topic-metadata">

**Author:** [@spyridon97](https://discourse.vtk.org/u/spyridon97)\
**Replies:** 4\
**Last updated:** [July 26, 2022, 11:04pm UTC](https://discourse.vtk.org/t/python-overloading-resolution-issue-with-vtkmultiprocesscontroller-gather/9023 "2022-07-26T23:04:39Z")

</div>

I want to invoke the following function from python: int Gather(vtkDataObject\* sendBuffer, std::vector\<vtkSmartPointer\<vtkDataObject\>\>& recvBuffer, int destProcessId) I have the following python code gathered\_…

---

## [Compile error when use VTK static library in QT Creator](https://discourse.vtk.org/t/compile-error-when-use-vtk-static-library-in-qt-creator/1039)

<div class="topic-metadata">

**Author:** [@Edward](https://discourse.vtk.org/u/Edward)\
**Replies:** 8\
**Last updated:** [July 26, 2022, 1:41pm UTC](https://discourse.vtk.org/t/compile-error-when-use-vtk-static-library-in-qt-creator/1039 "2022-07-26T13:41:00Z")

</div>

Hi, I’m trying to use VTK static lib in QT Creator, but got so many compile error(\> 2000), if I compile the same program with VTK dynamic lib, no error and the program works well. I have already add all VTK libraries i…

---

## [VTK 9.2.0.rc1 is out](https://discourse.vtk.org/t/vtk-9-2-0-rc1-is-out/8771)

<div class="topic-metadata">

**Author:** [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)\
**Replies:** 3\
**Last updated:** [July 26, 2022, 1:39pm UTC](https://discourse.vtk.org/t/vtk-9-2-0-rc1-is-out/8771 "2022-07-26T13:39:50Z")

</div>

VTK 9.2.0.rc1 is finally out. This release comes with Python wheels for Python 3.10 and SDKs for building further wheels based on VTK’s C++ API. Downloads: https://vtk.org/download/ Release notes: https://gitlab.kitwar…

---

## [How to scale vtkTensorGlyphs to get constant size glyphs with respect to the screen](https://discourse.vtk.org/t/how-to-scale-vtktensorglyphs-to-get-constant-size-glyphs-with-respect-to-the-screen/9020)

<div class="topic-metadata">

**Author:** [@rischoe](https://discourse.vtk.org/u/rischoe)\
**Replies:** 0\
**Last updated:** [July 26, 2022, 10:29am UTC](https://discourse.vtk.org/t/how-to-scale-vtktensorglyphs-to-get-constant-size-glyphs-with-respect-to-the-screen/9020 "2022-07-26T10:29:57Z")

</div>

With vtkGlyph3d I’m able to visualize points as spheres with constant “screensize” by using SetScaleModeToScaleByScalar and vtkDistanceToCamera to generate the distance scalars. Another point representation I want to rea…

---

## [I have a problem regarding vtkSelectPolyData](https://discourse.vtk.org/t/i-have-a-problem-regarding-vtkselectpolydata/9019)

<div class="topic-metadata">

**Author:** [@loufear](https://discourse.vtk.org/u/loufear)\
**Replies:** 0\
**Last updated:** [July 26, 2022, 10:02am UTC](https://discourse.vtk.org/t/i-have-a-problem-regarding-vtkselectpolydata/9019 "2022-07-26T10:02:08Z")

</div>

If my polygon data has multiple layers (the polygon data also contains polygon data), when vtkSelectPolyData is selected, the internal data will be fixed and the surface selected part will be output. i am confused

---

## [How to use hardwareSelector](https://discourse.vtk.org/t/how-to-use-hardwareselector/9012)

<div class="topic-metadata">

**Author:** [@gzt036](https://discourse.vtk.org/u/gzt036)\
**Replies:** 1\
**Last updated:** [July 26, 2022, 12:26am UTC](https://discourse.vtk.org/t/how-to-use-hardwareselector/9012 "2022-07-26T00:26:57Z")

</div>

I am trying to debug issue of hardwareSelector picking. hardwareSelector getSourceDataAsync(renderer, x1, y1, x2, y2)? in the example it uses event() to get x,y then call getSourceDataAsync() const \[x, y\] = eventToWin…

---

## [Light source questions](https://discourse.vtk.org/t/light-source-questions/8996)

<div class="topic-metadata">

**Author:** [@llobera](https://discourse.vtk.org/u/llobera)\
**Replies:** 2\
**Last updated:** [July 25, 2022, 5:32pm UTC](https://discourse.vtk.org/t/light-source-questions/8996 "2022-07-25T17:32:21Z")

</div>

I would like to set a light source on a location on a terrain (PolyData). a) If I wanted the light to be like a lightbulb, which type of light would I use (and what settings?)? I do not want any other source of light. b)…

---

## [Compile 9.0 without opengl](https://discourse.vtk.org/t/compile-9-0-without-opengl/4026)

<div class="topic-metadata">

**Author:** [@wenyan4work](https://discourse.vtk.org/u/wenyan4work)\
**Replies:** 4\
**Last updated:** [July 25, 2022, 4:54pm UTC](https://discourse.vtk.org/t/compile-9-0-without-opengl/4026 "2022-07-25T16:54:10Z")

</div>

Is it possible to compile vtk 9.0 without opengl? The only thing we need is the IO module of legacy vtk files and binary xml vtk files (pvtp, vtp, pvtu, vtu, etc). I found instructions about this from an email back in 2…

---

## [Creating a parallel vtk structured grid](https://discourse.vtk.org/t/creating-a-parallel-vtk-structured-grid/9009)

<div class="topic-metadata">

**Author:** [@zetwal](https://discourse.vtk.org/u/zetwal)\
**Replies:** 0\
**Last updated:** [July 25, 2022, 2:16pm UTC](https://discourse.vtk.org/t/creating-a-parallel-vtk-structured-grid/9009 "2022-07-25T14:16:22Z")

</div>

Hello I’m trying to create a parallel structured grid but the extents for the pieces are wrong. This is how it looks like: \<?xml version="1.0"?\> \<VTKFile type="PStructuredGrid" version="0.1" byte\_order="LittleEndian" h…

---

## [Remove non-manifold edges from decimated polydata](https://discourse.vtk.org/t/remove-non-manifold-edges-from-decimated-polydata/9002)

<div class="topic-metadata">

**Author:** [@mau\_igna\_06](https://discourse.vtk.org/u/mau_igna_06)\
**Replies:** 1\
**Last updated:** [July 25, 2022, 12:30pm UTC](https://discourse.vtk.org/t/remove-non-manifold-edges-from-decimated-polydata/9002 "2022-07-25T12:30:16Z")

</div>

Hope this script is useful for someone… It’s done to be executed on Slicer but you can easily adapt it to pure vtk. guide\_dec = getNode('guide-dec') idFilter = vtk.vtkIdFilter() idFilter.SetInputData(guide\_dec.GetMesh…

---

## [Intersect for plane and polydata](https://discourse.vtk.org/t/intersect-for-plane-and-polydata/9006)

<div class="topic-metadata">

**Author:** [@LostRaccoon](https://discourse.vtk.org/u/LostRaccoon)\
**Replies:** 0\
**Last updated:** [July 25, 2022, 8:46am UTC](https://discourse.vtk.org/t/intersect-for-plane-and-polydata/9006 "2022-07-25T08:46:59Z")

</div>

I hope that the official can provide the intersection line of the plane and polydata , and the direct use vtkIntersectionPolyDataFilter efficiency is relatively low

---

## [How to get the illuminated cells of an actor when using light?](https://discourse.vtk.org/t/how-to-get-the-illuminated-cells-of-an-actor-when-using-light/9004)

<div class="topic-metadata">

**Author:** [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)\
**Replies:** 0\
**Last updated:** [July 25, 2022, 4:04am UTC](https://discourse.vtk.org/t/how-to-get-the-illuminated-cells-of-an-actor-when-using-light/9004 "2022-07-25T04:04:23Z")

</div>

Hello,is there any way get the illuminated cells when using light?

---

## [RenderPointsAsSpheres() in vtk.js](https://discourse.vtk.org/t/renderpointsasspheres-in-vtk-js/9000)

<div class="topic-metadata">

**Author:** [@Sigsev-Dev](https://discourse.vtk.org/u/Sigsev-Dev)\
**Replies:** 2\
**Last updated:** [July 24, 2022, 11:53am UTC](https://discourse.vtk.org/t/renderpointsasspheres-in-vtk-js/9000 "2022-07-24T11:53:06Z")

</div>

Hi, I am pretty new with vtk.js I am reading a poly data using the tube filter example application but I need to also render the points as spheres. A function RenderPointsAsSpheres() is available in VTK to do so, and a…

---

## [Maximum number of clients reachedERROR: In /home/aarju/VTK-7.1.1/Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx, line 1497 vtkXOpenGLRenderWindow (0x555dac8b7280): bad X server connection. DISPLAY=:0. Aborting.](https://discourse.vtk.org/t/maximum-number-of-clients-reachederror-in-home-aarju-vtk-7-1-1-rendering-opengl2-vtkxopenglrenderwindow-cxx-line-1497-vtkxopenglrenderwindow-0x555dac8b7280-bad-x-server-connection-display-0-aborting/8977)

<div class="topic-metadata">

**Author:** [@guptaaarju](https://discourse.vtk.org/u/guptaaarju)\
**Replies:** 5\
**Last updated:** [July 22, 2022, 2:29pm UTC](https://discourse.vtk.org/t/maximum-number-of-clients-reachederror-in-home-aarju-vtk-7-1-1-rendering-opengl2-vtkxopenglrenderwindow-cxx-line-1497-vtkxopenglrenderwindow-0x555dac8b7280-bad-x-server-connection-display-0-aborting/8977 "2022-07-22T14:29:39Z")

</div>

Hi, I’m using VTK with QT. After running 215 frames of point cloud data, My program is crashing and getting this error. Maximum number of clients reachedERROR: In /home/aarju/VTK-7.1.1/Rendering/OpenGL2/vtkXOpenGLRende…

---

## [Implement three.js transform controller](https://discourse.vtk.org/t/implement-three-js-transform-controller/8991)

<div class="topic-metadata">

**Author:** [@gzt036](https://discourse.vtk.org/u/gzt036)\
**Replies:** 1\
**Last updated:** [July 22, 2022, 10:24am UTC](https://discourse.vtk.org/t/implement-three-js-transform-controller/8991 "2022-07-22T10:24:23Z")

</div>

same to the post below, a three.js transform style of controller is very much desired. In reply it says “Building that is already possible using vtk.js widgets. However, building a UX similar to that is not on any roa…

---

## [QVTKOpenGLWidget: Vertices disappear when RenderPointsAsSpheresON()](https://discourse.vtk.org/t/qvtkopenglwidget-vertices-disappear-when-renderpointsassphereson/1007)

<div class="topic-metadata">

**Author:** [@sdobashi](https://discourse.vtk.org/u/sdobashi)\
**Replies:** 2\
**Last updated:** [July 22, 2022, 3:04am UTC](https://discourse.vtk.org/t/qvtkopenglwidget-vertices-disappear-when-renderpointsassphereson/1007 "2022-07-22T03:04:16Z")

</div>

Hi everyone, When using QVTKOpenGLWidget, the vertices cannot be rendered as spheres (they disappear) when I set “RenderPointsAsSpheresON()”, while they are properly rendered with vtkRenderWindow. I want to obtain the…

---

## [What's the best way of CSharp custom vtk widget?](https://discourse.vtk.org/t/whats-the-best-way-of-csharp-custom-vtk-widget/8993)

<div class="topic-metadata">

**Author:** [@Endless](https://discourse.vtk.org/u/Endless)\
**Replies:** 0\
**Last updated:** [July 22, 2022, 1:20am UTC](https://discourse.vtk.org/t/whats-the-best-way-of-csharp-custom-vtk-widget/8993 "2022-07-22T01:20:04Z")

</div>

Such as the title. Our team use Kitware.VTK(ActiViz.NET) to build csharp vtk application. But custom widget/actor/representation is not easy to achieve.

---

## [How to check whether software/hardware environment supports VTK.](https://discourse.vtk.org/t/how-to-check-whether-software-hardware-environment-supports-vtk/8616)

<div class="topic-metadata">

**Author:** [@Endless](https://discourse.vtk.org/u/Endless)\
**Replies:** 3\
**Last updated:** [July 22, 2022, 1:15am UTC](https://discourse.vtk.org/t/how-to-check-whether-software-hardware-environment-supports-vtk/8616 "2022-07-22T01:15:15Z")

</div>

Our team use the VTK 9.0 to build 3D program. We find the following messages: vtkOpenGLExtensionManager VTK： vtkOpenGLExtensionManager Class Reference VTK/OpenGL Driver Information VTK/OpenGL 驱动程序信息 - KitwarePublic O…

---

## [How to use vtkpicker to pick the closest actor](https://discourse.vtk.org/t/how-to-use-vtkpicker-to-pick-the-closest-actor/8983)

<div class="topic-metadata">

**Author:** [@gzt036](https://discourse.vtk.org/u/gzt036)\
**Replies:** 1\
**Last updated:** [July 21, 2022, 11:25pm UTC](https://discourse.vtk.org/t/how-to-use-vtkpicker-to-pick-the-closest-actor/8983 "2022-07-21T23:25:48Z")

</div>

"vtkPicker may return more than one vtkProp3D, since more than one bounding box may be intersected. vtkPicker returns an unsorted list of props that were hit, and a list of the corresponding world points of the hits. F…

---

## [SetOrigin, SetPosition in a vtk3DProp](https://discourse.vtk.org/t/setorigin-setposition-in-a-vtk3dprop/8973)

<div class="topic-metadata">

**Author:** [@ujjwala](https://discourse.vtk.org/u/ujjwala)\
**Replies:** 4\
**Last updated:** [July 21, 2022, 6:41pm UTC](https://discourse.vtk.org/t/setorigin-setposition-in-a-vtk3dprop/8973 "2022-07-21T18:41:20Z")

</div>

Hi, I’m new to VTK and I’m struggling to understand what setOrigin and setPosition mean in vtk3DProp. I’m trying to display multiple cubes ( with specific x, y, z lengths and x, y, z co-ordinates with labels) using vtkA…

---

## [Animation with geometry fixed while pointdata or celldata varies](https://discourse.vtk.org/t/animation-with-geometry-fixed-while-pointdata-or-celldata-varies/8959)

<div class="topic-metadata">

**Author:** [@lizemin2016](https://discourse.vtk.org/u/lizemin2016)\
**Replies:** 2\
**Last updated:** [July 21, 2022, 9:19am UTC](https://discourse.vtk.org/t/animation-with-geometry-fixed-while-pointdata-or-celldata-varies/8959 "2022-07-21T09:19:23Z")

</div>

AnimationProxyManager example shows an animation in which the actor’s geometry or position varies every frame. My own data is a Eular simulation result(like FEM/FVM)，which the geometry(points,polys) are fixed, but pointd…

---

## [Manually add seeds when using vtkSeedWidget?](https://discourse.vtk.org/t/manually-add-seeds-when-using-vtkseedwidget/8979)

<div class="topic-metadata">

**Author:** [@cmengich](https://discourse.vtk.org/u/cmengich)\
**Replies:** 3\
**Last updated:** [July 21, 2022, 7:23am UTC](https://discourse.vtk.org/t/manually-add-seeds-when-using-vtkseedwidget/8979 "2022-07-21T07:23:42Z")

</div>

Hello, When using the vtkSeedWidget, is there a method to manually add a seedpoint from within code? I have gone through the documentation, and only find the GetSeed() & DeleteSeed() methods. Is there any way to add a…

---

## [VTKCutter leaves gaps, does not return the every point it intersects](https://discourse.vtk.org/t/vtkcutter-leaves-gaps-does-not-return-the-every-point-it-intersects/8986)

<div class="topic-metadata">

**Author:** [@ugursasun](https://discourse.vtk.org/u/ugursasun)\
**Replies:** 0\
**Last updated:** [July 21, 2022, 3:49am UTC](https://discourse.vtk.org/t/vtkcutter-leaves-gaps-does-not-return-the-every-point-it-intersects/8986 "2022-07-21T03:49:43Z")

</div>

I have an STL file, I’m working on it a while to collect xyz data through the line drawn on its surface(red line). I wrote a function using VTKCutter and believed that the class was collecting each point its implicit …

---

## [Interactor and callback: VTK 9.1 + QtQuick](https://discourse.vtk.org/t/interactor-and-callback-vtk-9-1-qtquick/8800)

<div class="topic-metadata">

**Author:** [@Parisa\_Rabbani](https://discourse.vtk.org/u/Parisa_Rabbani)\
**Replies:** 1\
**Last updated:** [July 20, 2022, 10:33pm UTC](https://discourse.vtk.org/t/interactor-and-callback-vtk-9-1-qtquick/8800 "2022-07-20T22:33:44Z")

</div>

Hi, I have a simple GUI with VTK+QT that would update the volume constantly. We use it to have 3D live volume rendering. I am trying to do the same thing with a QtQuick GUI, I faced two issues: 1- The timer callback t…

---

## [Is there a way to apply gamma correction in VTK.js?](https://discourse.vtk.org/t/is-there-a-way-to-apply-gamma-correction-in-vtk-js/8972)

<div class="topic-metadata">

**Author:** [@Yuvi-416](https://discourse.vtk.org/u/Yuvi-416)\
**Replies:** 6\
**Last updated:** [July 20, 2022, 4:31pm UTC](https://discourse.vtk.org/t/is-there-a-way-to-apply-gamma-correction-in-vtk-js/8972 "2022-07-20T16:31:35Z")

</div>

Hi all, I am wondering if there is a way to apply the gamma correction function in VTK.js? and also trying to figure out whether it is possible to apply a z-axis plane slider for the 3D viewer. I mean to say, I have su…

---

## [What is the best way to send a single and/or a stream of vtkPolyData over a network?](https://discourse.vtk.org/t/what-is-the-best-way-to-send-a-single-and-or-a-stream-of-vtkpolydata-over-a-network/8928)

<div class="topic-metadata">

**Author:** [@joaomlap](https://discourse.vtk.org/u/joaomlap)\
**Replies:** 6\
**Last updated:** [July 20, 2022, 8:12am UTC](https://discourse.vtk.org/t/what-is-the-best-way-to-send-a-single-and-or-a-stream-of-vtkpolydata-over-a-network/8928 "2022-07-20T08:12:43Z")

</div>

Hi, I was researching the best way to send a vtkPolyData object over a network and came across this GitHub issue: Where @Sebastien\_Jourdain states there is a way of converting it to a vtp format and the use XMLPolyDat…

---

## [3D bar charts in VTK?](https://discourse.vtk.org/t/3d-bar-charts-in-vtk/8953)

<div class="topic-metadata">

**Author:** [@DStranz](https://discourse.vtk.org/u/DStranz)\
**Replies:** 4\
**Last updated:** [July 19, 2022, 2:24pm UTC](https://discourse.vtk.org/t/3d-bar-charts-in-vtk/8953 "2022-07-19T14:24:33Z")

</div>

I would like to implement a 3D bar chart similar to this (from qwt3D) or what is available in matplotlib. Is there any such class in VTK? If not can I ask for some pointers about how to get started? Thanks.

---

## [How to use rotateWXYZ](https://discourse.vtk.org/t/how-to-use-rotatewxyz/8962)

<div class="topic-metadata">

**Author:** [@gzt036](https://discourse.vtk.org/u/gzt036)\
**Replies:** 4\
**Last updated:** [July 19, 2022, 1:07pm UTC](https://discourse.vtk.org/t/how-to-use-rotatewxyz/8962 "2022-07-19T13:07:05Z")

</div>

“Rotate the Prop3D in degrees about an arbitrary axis specified by the last three arguments. The axis is specified in world coordinates. To rotate an about its model axes, use RotateX, RotateY, RotateZ.” Questions ar…

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

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