# Latest

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

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

**Page:** 127

---

## [How to create a fixed 2D vtkActor on the top of the 3D vtkActors](https://discourse.vtk.org/t/how-to-create-a-fixed-2d-vtkactor-on-the-top-of-the-3d-vtkactors/8836)

<div class="topic-metadata">

**Author:** [@Ruooo](https://discourse.vtk.org/u/Ruooo)\
**Replies:** 2\
**Last updated:** [July 4, 2022, 7:54am UTC](https://discourse.vtk.org/t/how-to-create-a-fixed-2d-vtkactor-on-the-top-of-the-3d-vtkactors/8836 "2022-07-04T07:54:29Z")

</div>

Hi all, I’m trying to put a 2D vtkActor on the display coordinate, no matter how other 3D vtkActors’ camera moved, this 2D vtkActor should be in a fixed position in the scene. Currently, this 2D vtkActor is a 2D plane w…

---

## [VTK Examples - Updated ParametricObjectsDemo](https://discourse.vtk.org/t/vtk-examples-updated-parametricobjectsdemo/8856)

<div class="topic-metadata">

**Author:** [@amaclean](https://discourse.vtk.org/u/amaclean)\
**Replies:** 0\
**Last updated:** [July 4, 2022, 2:57am UTC](https://discourse.vtk.org/t/vtk-examples-updated-parametricobjectsdemo/8856 "2022-07-04T02:57:42Z")

</div>

Following on from Changes to the VTK Eamples 1 This update now uses vtk::cli11 and vtk::fmt. Things to note The user gets an automatic help -h and adding explanations to the command line parameters is really simple. …

---

## [Does VTK support wsl?](https://discourse.vtk.org/t/does-vtk-support-wsl/3661)

<div class="topic-metadata">

**Author:** [@Yue\_JIN](https://discourse.vtk.org/u/Yue_JIN)\
**Replies:** 4\
**Last updated:** [July 4, 2022, 2:23am UTC](https://discourse.vtk.org/t/does-vtk-support-wsl/3661 "2022-07-04T02:23:58Z")

</div>

I’ve installed VTK 8.2.0 in WSL 2. But when I tried to run an example, it showed: ERROR: In /mnt/d/Toolkits/VTK-8.2.0/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, line 747 vtkXOpenGLRenderWindow (0x55d2f37462f0): Unabl…

---

## [VTK 9.1 + GUISupportQtQUICK + Qt5](https://discourse.vtk.org/t/vtk-9-1-guisupportqtquick-qt5/8084)

<div class="topic-metadata">

**Author:** [@Parisa\_Rabbani](https://discourse.vtk.org/u/Parisa_Rabbani)\
**Replies:** 3\
**Last updated:** [July 4, 2022, 2:02am UTC](https://discourse.vtk.org/t/vtk-9-1-guisupportqtquick-qt5/8084 "2022-07-04T02:02:06Z")

</div>

Hi! I built VTK 9.1 on windows 10 with GUISupportQtQuick enabled and QT 5. The build is done without any error. However, I am not able to import VTK in qml. Here is the error I get: I have defined the environment var…

---

## [Why is RGB point size fixed at 1024 and point index mismatch between “getTable” and “addRGBPoint(Long)” in Rendering/OpenGL/ImageMapper.js?](https://discourse.vtk.org/t/why-is-rgb-point-size-fixed-at-1024-and-point-index-mismatch-between-gettable-and-addrgbpoint-long-in-rendering-opengl-imagemapper-js/8854)

<div class="topic-metadata">

**Author:** [@Nam-Junho](https://discourse.vtk.org/u/Nam-Junho)\
**Replies:** 0\
**Last updated:** [July 4, 2022, 1:26am UTC](https://discourse.vtk.org/t/why-is-rgb-point-size-fixed-at-1024-and-point-index-mismatch-between-gettable-and-addrgbpoint-long-in-rendering-opengl-imagemapper-js/8854 "2022-07-04T01:26:31Z")

</div>

Dear VTK team, We are a beginner in vtkjs and image processing. We have one problem and find the cause of the problem. We want an answer to that. Problem In the picture below, the mask image color difference between…

---

## [Changes to the VTK Examples 1](https://discourse.vtk.org/t/changes-to-the-vtk-examples-1/8853)

<div class="topic-metadata">

**Author:** [@amaclean](https://discourse.vtk.org/u/amaclean)\
**Replies:** 0\
**Last updated:** [July 3, 2022, 11:48pm UTC](https://discourse.vtk.org/t/changes-to-the-vtk-examples-1/8853 "2022-07-03T23:48:17Z")

</div>

These examples highlight the latest and greatest VTK and are regularly built using the VTK master and will usually compile OK with most tests passing. Some code will not build/run with older versions of VTK, mainly due t…

---

## [Stereo problem with GPU Volume Mappers](https://discourse.vtk.org/t/stereo-problem-with-gpu-volume-mappers/7512)

<div class="topic-metadata">

**Author:** [@maximas](https://discourse.vtk.org/u/maximas)\
**Replies:** 1\
**Last updated:** [July 2, 2022, 5:52pm UTC](https://discourse.vtk.org/t/stereo-problem-with-gpu-volume-mappers/7512 "2022-07-02T17:52:19Z")

</div>

I want to use stereo anaglyph with vtkOpenGLGPUVolumeRayCastMapper or vtkGPUVolumeRayCastMapper but stereo doesn’t work with GPU mappers. Stereo works perfectly fine with vtkFixedPointVolumeRayCastMapper. Attached scre…

---

## [Compilation error for StreamlinesWithlineWidget](https://discourse.vtk.org/t/compilation-error-for-streamlineswithlinewidget/8828)

<div class="topic-metadata">

**Author:** [@yvan](https://discourse.vtk.org/u/yvan)\
**Replies:** 1\
**Last updated:** [July 2, 2022, 3:45am UTC](https://discourse.vtk.org/t/compilation-error-for-streamlineswithlinewidget/8828 "2022-07-02T03:45:15Z")

</div>

when building StreamlinesWithlineWidget sample code with VisualStudio 2017 (Windows10, x64), I get lots of C2440 compilation errors. Ex: cannot convert from vtkNew to vtkPolyData\* : vtkNew seeds; GenerateStreamlines-\>p…

---

## [How can I move the vertices by clicking with the mouse?](https://discourse.vtk.org/t/how-can-i-move-the-vertices-by-clicking-with-the-mouse/8826)

<div class="topic-metadata">

**Author:** [@ldk7972](https://discourse.vtk.org/u/ldk7972)\
**Replies:** 1\
**Last updated:** [July 1, 2022, 7:54pm UTC](https://discourse.vtk.org/t/how-can-i-move-the-vertices-by-clicking-with-the-mouse/8826 "2022-07-01T19:54:41Z")

</div>

please give me hint

---

## [Binary DataArray in XML using python/numpy: what are the leading int32 values?](https://discourse.vtk.org/t/binary-dataarray-in-xml-using-python-numpy-what-are-the-leading-int32-values/8013)

<div class="topic-metadata">

**Author:** [@bva99](https://discourse.vtk.org/u/bva99)\
**Replies:** 19\
**Last updated:** [March 22, 2022, 4:06pm UTC](https://discourse.vtk.org/t/binary-dataarray-in-xml-using-python-numpy-what-are-the-leading-int32-values/8013 "2022-03-22T16:06:30Z")

</div>

I am writing a python function that saves the CellArrays of an ImageData representation from a numpy array to a binary XML .vti file. I have read this VTK support question, but I don’t believe a solution was actually fou…

---

## [Coloring a vtkUnstructuredGrid by vector magnitude](https://discourse.vtk.org/t/coloring-a-vtkunstructuredgrid-by-vector-magnitude/8840)

<div class="topic-metadata">

**Author:** [@hye00525](https://discourse.vtk.org/u/hye00525)\
**Replies:** 1\
**Last updated:** [July 1, 2022, 7:53am UTC](https://discourse.vtk.org/t/coloring-a-vtkunstructuredgrid-by-vector-magnitude/8840 "2022-07-01T07:53:21Z")

</div>

hello, i’m trying to Coloring a vtkUnstructuredGrid by vector magnitude The value I want to use for coloring is “VECTORS solution double” value in the file below. I want to color my vtkUnstructuredGrid using its magnit…

---

## [npm install seems broken for @kitware/vtk.js@20.2.0 (latest) as well as older versions due to pack dependency](https://discourse.vtk.org/t/npm-install-seems-broken-for-kitware-vtk-js-20-2-0-latest-as-well-as-older-versions-due-to-pack-dependency/8839)

<div class="topic-metadata">

**Author:** [@JohnSkinner](https://discourse.vtk.org/u/JohnSkinner)\
**Replies:** 1\
**Last updated:** [June 30, 2022, 10:59pm UTC](https://discourse.vtk.org/t/npm-install-seems-broken-for-kitware-vtk-js-20-2-0-latest-as-well-as-older-versions-due-to-pack-dependency/8839 "2022-06-30T22:59:49Z")

</div>

npm i @kitware gives this error: mednum@devcen75$ npm i @kitware/vtk.js npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/@types/eslint/-/eslint-8.4.5.tgz - Not found npm ERR! 404 npm ERR! 4…

---

## [Remote view example in vtk.js](https://discourse.vtk.org/t/remote-view-example-in-vtk-js/8822)

<div class="topic-metadata">

**Author:** [@szm](https://discourse.vtk.org/u/szm)\
**Replies:** 2\
**Last updated:** [June 30, 2022, 7:45am UTC](https://discourse.vtk.org/t/remote-view-example-in-vtk-js/8822 "2022-06-30T07:45:33Z")

</div>

I’m learning the remote view example in vtk.js (vtk.js) . I have successfully worked on this example, but need expand it to multi-users. I referred the previous discussions and have configured Apache. When I open the bro…

---

## [How to set the rotation center of RollManipulator？](https://discourse.vtk.org/t/how-to-set-the-rotation-center-of-rollmanipulator/8823)

<div class="topic-metadata">

**Author:** [@zhangzhi93](https://discourse.vtk.org/u/zhangzhi93)\
**Replies:** 4\
**Last updated:** [June 30, 2022, 1:42am UTC](https://discourse.vtk.org/t/how-to-set-the-rotation-center-of-rollmanipulator/8823 "2022-06-30T01:42:02Z")

</div>

How does the MouseCameraTrackballRollManipulator set the center of rotation? When I use it in vtkResliceCursorWidget, the rotation center is in the upper left corner or the lower left corner.

---

## [VTK Trame Docker GPU Rendering](https://discourse.vtk.org/t/vtk-trame-docker-gpu-rendering/8815)

<div class="topic-metadata">

**Author:** [@simplyvish](https://discourse.vtk.org/u/simplyvish)\
**Replies:** 4\
**Last updated:** [June 29, 2022, 3:56pm UTC](https://discourse.vtk.org/t/vtk-trame-docker-gpu-rendering/8815 "2022-06-29T15:56:26Z")

</div>

Hi I’m trying to render a vti file inside trame docker image. There’s an existing sample code that I prepared for rendering same on a linux machine in working state. However, when I converted it into trame format for doc…

---

## [Rendering artifact](https://discourse.vtk.org/t/rendering-artifact/8830)

<div class="topic-metadata">

**Author:** [@rprueckl](https://discourse.vtk.org/u/rprueckl)\
**Replies:** 0\
**Last updated:** [June 29, 2022, 2:58pm UTC](https://discourse.vtk.org/t/rendering-artifact/8830 "2022-06-29T14:58:28Z")

</div>

Dear all, I am writing extensions for 3D Slicer and encountered some rendering artifacts: I manually load an obj and a texture and want to display this. The result is as follows: When I use the same code, but add th…

---

## [Forcing vtlResliceCursorWidget to change on slider move](https://discourse.vtk.org/t/forcing-vtlreslicecursorwidget-to-change-on-slider-move/8737)

<div class="topic-metadata">

**Author:** [@olry](https://discourse.vtk.org/u/olry)\
**Replies:** 3\
**Last updated:** [June 28, 2022, 9:59pm UTC](https://discourse.vtk.org/t/forcing-vtlreslicecursorwidget-to-change-on-slider-move/8737 "2022-06-28T21:59:15Z")

</div>

Dear VTK team, could you please help me with vtlResliceCursorWidget, I would like to render reslice changes not only when I do mouse scrolling but also when I move a slider manually created by me for the purpose of slic…

---

## [Need some guide on a number of issues/questions](https://discourse.vtk.org/t/need-some-guide-on-a-number-of-issues-questions/8770)

<div class="topic-metadata">

**Author:** [@gzt036](https://discourse.vtk.org/u/gzt036)\
**Replies:** 5\
**Last updated:** [June 28, 2022, 9:57pm UTC](https://discourse.vtk.org/t/need-some-guide-on-a-number-of-issues-questions/8770 "2022-06-28T21:57:02Z")

</div>

is possible to add two or more different actor in a scene? the actors could be of different rendering types. is it possible to pan a volume image? If so, how? to implement a 3D MPR, should it use vtkReslice or j…

---

## [when interactor disabled, the render fails too](https://discourse.vtk.org/t/when-interactor-disabled-the-render-fails-too/8808)

<div class="topic-metadata">

**Author:** [@gzt036](https://discourse.vtk.org/u/gzt036)\
**Replies:** 1\
**Last updated:** [June 28, 2022, 9:54pm UTC](https://discourse.vtk.org/t/when-interactor-disabled-the-render-fails-too/8808 "2022-06-28T21:54:41Z")

</div>

renderer.addActor(cubeAxes); const interactor = renderWindow.getInteractor(); interactor.disable(); // start rendering render\_reset\_clipping(); renderWindow.render(); The expected behavior is no response from mouse c…

---

## [How can I move, scale and rotate PolyData obtained with vtkSTLReader ?](https://discourse.vtk.org/t/how-can-i-move-scale-and-rotate-polydata-obtained-with-vtkstlreader/8814)

<div class="topic-metadata">

**Author:** [@Javi-r](https://discourse.vtk.org/u/Javi-r)\
**Replies:** 3\
**Last updated:** [June 28, 2022, 1:43pm UTC](https://discourse.vtk.org/t/how-can-i-move-scale-and-rotate-polydata-obtained-with-vtkstlreader/8814 "2022-06-28T13:43:31Z")

</div>

I want to move, rotate and scale a stl using vtk.js I only want to view it, not apply the transformation to the stl. How can I do this? const reader = vtkSTLReader.newInstance(); reader.setUrl("file.stl", { binary: tr…

---

## [Draw polygon and highlight points inside the polygon](https://discourse.vtk.org/t/draw-polygon-and-highlight-points-inside-the-polygon/8682)

<div class="topic-metadata">

**Author:** [@mdc93](https://discourse.vtk.org/u/mdc93)\
**Replies:** 8\
**Last updated:** [June 28, 2022, 1:09pm UTC](https://discourse.vtk.org/t/draw-polygon-and-highlight-points-inside-the-polygon/8682 "2022-06-28T13:09:34Z")

</div>

Hello everybody, I would like to have some suggestions on how to implement the following: I have a STL file and I would like to allow the user to draw a closed polygon and pick points of the mesh inside the closed cont…

---

## [Installing and using FFmpeg with VTK9.1.0](https://discourse.vtk.org/t/installing-and-using-ffmpeg-with-vtk9-1-0/8803)

<div class="topic-metadata">

**Author:** [@vyvex](https://discourse.vtk.org/u/vyvex)\
**Replies:** 6\
**Last updated:** [June 28, 2022, 10:09am UTC](https://discourse.vtk.org/t/installing-and-using-ffmpeg-with-vtk9-1-0/8803 "2022-06-28T10:09:58Z")

</div>

Hello everyone, i am trying to use ffmpeg to export a video of a data visualisation i’ve written but so far i have not been successful in getting vtk to be able to use ffmpeg. I am using Ubuntu 22.04 LTS and VTK9.1.0. …

---

## [Cylindrical grid dataset with VTK](https://discourse.vtk.org/t/cylindrical-grid-dataset-with-vtk/8820)

<div class="topic-metadata">

**Author:** [@RemDelaporteMathurin](https://discourse.vtk.org/u/RemDelaporteMathurin)\
**Replies:** 0\
**Last updated:** [June 28, 2022, 7:13am UTC](https://discourse.vtk.org/t/cylindrical-grid-dataset-with-vtk/8820 "2022-06-28T07:13:55Z")

</div>

Hi all, I have a set of data that in a cylindrical system of coordinates. I was able in the past to write rectilinear datasets to vtk with vtkRectilinearGrid (see snipset below). I would like to know if there is an eq…

---

## [Transform seems to not be applied to input points after vtkBox.SetTransform(). Bug? (Code included)](https://discourse.vtk.org/t/transform-seems-to-not-be-applied-to-input-points-after-vtkbox-settransform-bug-code-included/8784)

<div class="topic-metadata">

**Author:** [@MJJ](https://discourse.vtk.org/u/MJJ)\
**Replies:** 2\
**Last updated:** [June 28, 2022, 5:25am UTC](https://discourse.vtk.org/t/transform-seems-to-not-be-applied-to-input-points-after-vtkbox-settransform-bug-code-included/8784 "2022-06-28T05:25:56Z")

</div>

I have a vtkBox with a transform set. However, the transform never seems to be applied to the input points. Here is the code so you can see for yourself: import vtk box\_origin = \[420, 69, 420.69\] T = vtk.vtkTransform…

---

## [(vtk.js) Looking for a way to add always-front-facing text that maps to an underlying image](https://discourse.vtk.org/t/vtk-js-looking-for-a-way-to-add-always-front-facing-text-that-maps-to-an-underlying-image/8797)

<div class="topic-metadata">

**Author:** [@mattbrook](https://discourse.vtk.org/u/mattbrook)\
**Replies:** 6\
**Last updated:** [June 27, 2022, 7:10pm UTC](https://discourse.vtk.org/t/vtk-js-looking-for-a-way-to-add-always-front-facing-text-that-maps-to-an-underlying-image/8797 "2022-06-27T19:10:03Z")

</div>

I’m working on an existing website that already has a vtk.js viewer setup. I tried the pixelSpaceCallbackMapper, which seemed to the be the closest to accomplishing my goal, but Spheres w/ Labels example used openGL whic…

---

## [how to make rounded trapezoid vtkPolyData or vtkPoints](https://discourse.vtk.org/t/how-to-make-rounded-trapezoid-vtkpolydata-or-vtkpoints/8780)

<div class="topic-metadata">

**Author:** [@hye00525](https://discourse.vtk.org/u/hye00525)\
**Replies:** 2\
**Last updated:** [June 25, 2022, 10:59pm UTC](https://discourse.vtk.org/t/how-to-make-rounded-trapezoid-vtkpolydata-or-vtkpoints/8780 "2022-06-25T22:59:00Z")

</div>

hello, i’m trying to get vtkPoints (or vtkPolyData) that make up the rounded trapzoid shape. like below, I would like to set the diameter of the rolling circle as a parameter as below. is there good idea? or cod…

---

## [How to show in the window for CPR (curved planar reconstruction) data?](https://discourse.vtk.org/t/how-to-show-in-the-window-for-cpr-curved-planar-reconstruction-data/8794)

<div class="topic-metadata">

**Author:** [@wulicheng](https://discourse.vtk.org/u/wulicheng)\
**Replies:** 1\
**Last updated:** [June 25, 2022, 9:10pm UTC](https://discourse.vtk.org/t/how-to-show-in-the-window-for-cpr-curved-planar-reconstruction-data/8794 "2022-06-25T21:10:46Z")

</div>

I have got the data of CPR using vtkProbfilter，but how to show in the window? I have tried in vtkImageViewer and vtkImageViewer2, but failed . I tried actor added in volume. but it has questions?

---

## [CMake error trying to build VTK 9.2.0.rc1 with MPI](https://discourse.vtk.org/t/cmake-error-trying-to-build-vtk-9-2-0-rc1-with-mpi/8805)

<div class="topic-metadata">

**Author:** [@opoplawski](https://discourse.vtk.org/u/opoplawski)\
**Replies:** 4\
**Last updated:** [June 25, 2022, 9:08pm UTC](https://discourse.vtk.org/t/cmake-error-trying-to-build-vtk-9-2-0-rc1-with-mpi/8805 "2022-06-25T21:08:56Z")

</div>

I’m trying to update the Fedora VTK package to 9.2.0.rc1 and getting the following error: + CC=mpicc + export CC + CXX=mpic++ + export CXX + /usr/bin/cmake -S . -B build-mpich -DCMAKE\_C\_FLAGS\_RELEASE:STRING=-DNDEBUG -DC…

---

## [Question about VTK libpython linkage](https://discourse.vtk.org/t/question-about-vtk-libpython-linkage/7736)

<div class="topic-metadata">

**Author:** [@opoplawski](https://discourse.vtk.org/u/opoplawski)\
**Replies:** 2\
**Last updated:** [June 25, 2022, 3:09am UTC](https://discourse.vtk.org/t/question-about-vtk-libpython-linkage/7736 "2022-06-25T03:09:55Z")

</div>

I’m looking into this bug filed against the Fedora VTK package: 1979611 – linking errors It appears that at least some VTK libraries are not getting linked against libpython, but I don’t know why. I don’t believe we ar…

---

## [GDAL Library building/binding](https://discourse.vtk.org/t/gdal-library-building-binding/8787)

<div class="topic-metadata">

**Author:** [@drpeterfranz](https://discourse.vtk.org/u/drpeterfranz)\
**Replies:** 3\
**Last updated:** [June 24, 2022, 11:38pm UTC](https://discourse.vtk.org/t/gdal-library-building-binding/8787 "2022-06-24T23:38:18Z")

</div>

I want to use vtkGDALRasterReader in my project. VTK is bound into my project using CMake, and I use VTK via add\_subdirectory. vtkGDARasterReader requires the GDAL library which is available from https://github.com/OSGe…

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

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