# Latest

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

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

**Page:** 93

---

## [Compile and Installation of VTK 9.2.6 with CMake and Visual Studio](https://discourse.vtk.org/t/compile-and-installation-of-vtk-9-2-6-with-cmake-and-visual-studio/11065)

<div class="topic-metadata">

**Author:** [@mnekkach](https://discourse.vtk.org/u/mnekkach)\
**Replies:** 5\
**Last updated:** [March 30, 2023, 10:37pm UTC](https://discourse.vtk.org/t/compile-and-installation-of-vtk-9-2-6-with-cmake-and-visual-studio/11065 "2023-03-30T22:37:36Z")

</div>

Hello, I am trying to compile and install VTK 9.2.6 on Windows 10 using CMake 3.21.3 and Visual Studio 2019. I am using CMake to configure and generate the necessary files to build the project. I am modifying the CMAKE\_…

---

## [Cut one actor by another actor](https://discourse.vtk.org/t/cut-one-actor-by-another-actor/11061)

<div class="topic-metadata">

**Author:** [@ToWorldMe](https://discourse.vtk.org/u/ToWorldMe)\
**Replies:** 8\
**Last updated:** [March 30, 2023, 4:52pm UTC](https://discourse.vtk.org/t/cut-one-actor-by-another-actor/11061 "2023-03-30T16:52:11Z")

</div>

Hi, I use vtk.js where I show how one object will be in the stone with inclusions. I have two ply actors. One actor will be in second 100%. I want to cut all what not inside second actor? Is it possible? Mb, possible…

---

## ['vtkProxyManager' is a type and must be imported using a type-only import...](https://discourse.vtk.org/t/vtkproxymanager-is-a-type-and-must-be-imported-using-a-type-only-import/11040)

<div class="topic-metadata">

**Author:** [@davidshq](https://discourse.vtk.org/u/davidshq)\
**Replies:** 2\
**Last updated:** [March 30, 2023, 4:02pm UTC](https://discourse.vtk.org/t/vtkproxymanager-is-a-type-and-must-be-imported-using-a-type-only-import/11040 "2023-03-30T16:02:30Z")

</div>

I’m working on a Vue 3 / Pinia / TS project that uses VTK.js. In my Pinia store (successor to Vuex) I’m getting the following TS error: TS1444: ‘vtkProxyManager’ is a type and must be imported using a type-only import …

---

## [Contour plot of 2D array with inetegers or floats](https://discourse.vtk.org/t/contour-plot-of-2d-array-with-inetegers-or-floats/11086)

<div class="topic-metadata">

**Author:** [@Zolo](https://discourse.vtk.org/u/Zolo)\
**Replies:** 1\
**Last updated:** [March 30, 2023, 1:28pm UTC](https://discourse.vtk.org/t/contour-plot-of-2d-array-with-inetegers-or-floats/11086 "2023-03-30T13:28:58Z")

</div>

Hi there, I am trying to write a code snippet which will take a 2D array of integers or floats and create a 2D contour plot. The head slice example is relatively close to what I would like to achieve however I would lik…

---

## [How does the vtkplanewidget set the size of the arrow and control handle(the sphere)?](https://discourse.vtk.org/t/how-does-the-vtkplanewidget-set-the-size-of-the-arrow-and-control-handle-the-sphere/7737)

<div class="topic-metadata">

**Author:** [@wulicheng](https://discourse.vtk.org/u/wulicheng)\
**Replies:** 2\
**Last updated:** [March 30, 2023, 6:21am UTC](https://discourse.vtk.org/t/how-does-the-vtkplanewidget-set-the-size-of-the-arrow-and-control-handle-the-sphere/7737 "2023-03-30T06:21:31Z")

</div>

---

## [vtkImageViewer2 show image fit window](https://discourse.vtk.org/t/vtkimageviewer2-show-image-fit-window/11091)

<div class="topic-metadata">

**Author:** [@842034272](https://discourse.vtk.org/u/842034272)\
**Replies:** 0\
**Last updated:** [March 30, 2023, 3:01am UTC](https://discourse.vtk.org/t/vtkimageviewer2-show-image-fit-window/11091 "2023-03-30T03:01:11Z")

</div>

I use vtkImageViewer2 to display the image, but just open the image, it is always displayed very small, it looks bad

---

## [Setting scalar range in vtkPolyDataMapper - vtkLookupTable vs vtkColorTransferFunction](https://discourse.vtk.org/t/setting-scalar-range-in-vtkpolydatamapper-vtklookuptable-vs-vtkcolortransferfunction/11089)

<div class="topic-metadata">

**Author:** [@ashishgupta79](https://discourse.vtk.org/u/ashishgupta79)\
**Replies:** 0\
**Last updated:** [March 29, 2023, 9:15pm UTC](https://discourse.vtk.org/t/setting-scalar-range-in-vtkpolydatamapper-vtklookuptable-vs-vtkcolortransferfunction/11089 "2023-03-29T21:15:17Z")

</div>

Hi I am trying to setup a poly mapper with a lookup table or a color transfer function. If I use a lookup table, then setting the SetScalarRange is used if UseLookupTableScalrRange is False and not when UseLookupTableS…

---

## [vtk: how to smooth surface?](https://discourse.vtk.org/t/vtk-how-to-smooth-surface/11084)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 4\
**Last updated:** [March 29, 2023, 4:53pm UTC](https://discourse.vtk.org/t/vtk-how-to-smooth-surface/11084 "2023-03-29T16:53:18Z")

</div>

I have a surface (vtkPolyData), and it looks like: The red color indicates some unsoomth mesh. Is it possible to smooth the unsmooth mesh? The automatic and semi-automatic is accepted. I have tried vtkWindowedSincP…

---

## [How can Make 3D & 2D Countor from DICOM(RTStrucure) file?](https://discourse.vtk.org/t/how-can-make-3d-2d-countor-from-dicom-rtstrucure-file/11071)

<div class="topic-metadata">

**Author:** [@A.M\_Shahpouri](https://discourse.vtk.org/u/A.M_Shahpouri)\
**Replies:** 1\
**Last updated:** [March 28, 2023, 5:28pm UTC](https://discourse.vtk.org/t/how-can-make-3d-2d-countor-from-dicom-rtstrucure-file/11071 "2023-03-28T17:28:35Z")

</div>

Hi I want to read DICOM which have RTstrucure Data (Data of organ countor) and show 3D of that and show 2D view by resliceing (vtkImageResliceMapper). I has tried this way =\> read point data List of \> each sl…

---

## [Sync zoom factor between vtk.js canvas and second canvas rendered on top of it](https://discourse.vtk.org/t/sync-zoom-factor-between-vtk-js-canvas-and-second-canvas-rendered-on-top-of-it/11063)

<div class="topic-metadata">

**Author:** [@Lukasz\_Skrzeszewski](https://discourse.vtk.org/u/Lukasz_Skrzeszewski)\
**Replies:** 2\
**Last updated:** [March 28, 2023, 11:34am UTC](https://discourse.vtk.org/t/sync-zoom-factor-between-vtk-js-canvas-and-second-canvas-rendered-on-top-of-it/11063 "2023-03-28T11:34:19Z")

</div>

I am rendering a 3d scene using vtk.js. I am using vtkMouseCameraTrackballZoomToMouseManipulator to add zoom to mouse functionality. Setup is pretty standard I can add example code if needed. That part works fine. I r…

---

## [vtkcharxy with rectangles](https://discourse.vtk.org/t/vtkcharxy-with-rectangles/11026)

<div class="topic-metadata">

**Author:** [@antoine1](https://discourse.vtk.org/u/antoine1)\
**Replies:** 1\
**Last updated:** [March 27, 2023, 6:19pm UTC](https://discourse.vtk.org/t/vtkcharxy-with-rectangles/11026 "2023-03-27T18:19:01Z")

</div>

Hello, I have a plot on vtkcharXY and i have a qslider (from qt). the slider is a double slider ( or a range slider). The idea is the user can set the double slider to select a window on the plot. To show this window…

---

## [is there have an interface convert vtktransform to eulerangle?](https://discourse.vtk.org/t/is-there-have-an-interface-convert-vtktransform-to-eulerangle/11052)

<div class="topic-metadata">

**Author:** [@marlon.ma](https://discourse.vtk.org/u/marlon.ma)\
**Replies:** 1\
**Last updated:** [March 27, 2023, 1:02pm UTC](https://discourse.vtk.org/t/is-there-have-an-interface-convert-vtktransform-to-eulerangle/11052 "2023-03-27T13:02:21Z")

</div>

is there have an interface convert vtktransform to eulerangle?

---

## [How can I Rotate VTKImageSlice ?](https://discourse.vtk.org/t/how-can-i-rotate-vtkimageslice/10689)

<div class="topic-metadata">

**Author:** [@A.M\_Shahpouri](https://discourse.vtk.org/u/A.M_Shahpouri)\
**Replies:** 2\
**Last updated:** [March 27, 2023, 1:01pm UTC](https://discourse.vtk.org/t/how-can-i-rotate-vtkimageslice/10689 "2023-03-27T13:01:48Z")

</div>

Hi I have problem in Reslicing With vtkPlane I want to reslice in 4 axes-\>(Axial , Sagittal , Coronal , oblique ) with vtkPlane , so I use vtkImageReliceMapper and set Plane for each one . Then I make vtkImageSlice …

---

## [How can I make a Pyramid ?](https://discourse.vtk.org/t/how-can-i-make-a-pyramid/10690)

<div class="topic-metadata">

**Author:** [@A.M\_Shahpouri](https://discourse.vtk.org/u/A.M_Shahpouri)\
**Replies:** 4\
**Last updated:** [March 27, 2023, 1:01pm UTC](https://discourse.vtk.org/t/how-can-i-make-a-pyramid/10690 "2023-03-27T13:01:14Z")

</div>

Hi How Can I make a Pyramid and get It’s vtkImageData ? (I want vtkImageData of my Pyramid) Thanks a lot :))

---

## [Can vtk file or vtp file save texture image, or can we write mtl file to reference texture image like obj file?](https://discourse.vtk.org/t/can-vtk-file-or-vtp-file-save-texture-image-or-can-we-write-mtl-file-to-reference-texture-image-like-obj-file/11056)

<div class="topic-metadata">

**Author:** [@Ericsson-paul](https://discourse.vtk.org/u/Ericsson-paul)\
**Replies:** 8\
**Last updated:** [March 27, 2023, 12:47pm UTC](https://discourse.vtk.org/t/can-vtk-file-or-vtp-file-save-texture-image-or-can-we-write-mtl-file-to-reference-texture-image-like-obj-file/11056 "2023-03-27T12:47:52Z")

</div>

When we write a vtk file or vtp file, we can only save the texture coordinates in the file, and the texture image needs to be added to the role at rendering time via SetTexture. w I want to introduce a link to the textur…

---

## [Observer crash after double clicking](https://discourse.vtk.org/t/observer-crash-after-double-clicking/11046)

<div class="topic-metadata">

**Author:** [@Hamedo\_Esk](https://discourse.vtk.org/u/Hamedo_Esk)\
**Replies:** 1\
**Last updated:** [March 27, 2023, 12:40pm UTC](https://discourse.vtk.org/t/observer-crash-after-double-clicking/11046 "2023-03-27T12:40:31Z")

</div>

I made a simple app to track the number of clicks. Everything works fine and the number of clicks is printed as expected, but the observer stops working after performing double clicks. How can i solve this issue? from…

---

## [How to restore the mouseHow to restore the mouse to click on the screen to make the model rotate and move to click on the screen to make the model rotate and move](https://discourse.vtk.org/t/how-to-restore-the-mousehow-to-restore-the-mouse-to-click-on-the-screen-to-make-the-model-rotate-and-move-to-click-on-the-screen-to-make-the-model-rotate-and-move/11032)

<div class="topic-metadata">

**Author:** [@sunlin0oo](https://discourse.vtk.org/u/sunlin0oo)\
**Replies:** 3\
**Last updated:** [March 27, 2023, 2:41am UTC](https://discourse.vtk.org/t/how-to-restore-the-mousehow-to-restore-the-mouse-to-click-on-the-screen-to-make-the-model-rotate-and-move-to-click-on-the-screen-to-make-the-model-rotate-and-move/11032 "2023-03-27T02:41:58Z")

</div>

Hello! I used Manipulators.vtkMouseBoxSelectorManipulator to create boxSelector // build-MouseBoxSelectorManipulator const boxSelector = Manipulators.vtkMouseBoxSelectorManipulator.newInstance({ button: 1, }); …

---

## [Why doesn't cell normal changed after cell points reversed?](https://discourse.vtk.org/t/why-doesnt-cell-normal-changed-after-cell-points-reversed/11042)

<div class="topic-metadata">

**Author:** [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)\
**Replies:** 3\
**Last updated:** [March 26, 2023, 11:52am UTC](https://discourse.vtk.org/t/why-doesnt-cell-normal-changed-after-cell-points-reversed/11042 "2023-03-26T11:52:14Z")

</div>

Hello,I have a cude.obj which has a cell with reversed normal like this: # Blender 3.4.1 # www.blender.org o Cube.001 v 1.000000 1.000000 -1.000000 v -1.000000 1.000000 -1.000000 v -1.000000 1.000000 1.000000 v 1.00000…

---

## [libvtkRenderingTk-9.2.so : No such file or directory](https://discourse.vtk.org/t/libvtkrenderingtk-9-2-so-no-such-file-or-directory/10994)

<div class="topic-metadata">

**Author:** [@Assia](https://discourse.vtk.org/u/Assia)\
**Replies:** 18\
**Last updated:** [March 25, 2023, 3:15pm UTC](https://discourse.vtk.org/t/libvtkrenderingtk-9-2-so-no-such-file-or-directory/10994 "2023-03-25T15:15:16Z")

</div>

Dear VTK developers, I am encountering an issue with the libvtkRenderingTk-9.2.so library file when using VTK with Python. Specifically, I am receiving the following error message: libvtkRenderingTk-9.2.so: cannot open…

---

## [vtkImageCropFilter - performance in vtk.js](https://discourse.vtk.org/t/vtkimagecropfilter-performance-in-vtk-js/11039)

<div class="topic-metadata">

**Author:** [@GraphicsDeveloper3D](https://discourse.vtk.org/u/GraphicsDeveloper3D)\
**Replies:** 4\
**Last updated:** [March 24, 2023, 10:14pm UTC](https://discourse.vtk.org/t/vtkimagecropfilter-performance-in-vtk-js/11039 "2023-03-24T22:14:02Z")

</div>

Good morning forum! Firstly, thank you vtk community for providing such an awesome framework! I have a question on vtkImageCropFilter performance. We are using vtkImageCropFilter to crop and render 3-D volume, The widge…

---

## [Way to detect Shift + left button](https://discourse.vtk.org/t/way-to-detect-shift-left-button/11041)

<div class="topic-metadata">

**Author:** [@Kevin\_Sweeney](https://discourse.vtk.org/u/Kevin_Sweeney)\
**Replies:** 1\
**Last updated:** [March 24, 2023, 10:10pm UTC](https://discourse.vtk.org/t/way-to-detect-shift-left-button/11041 "2023-03-24T22:10:13Z")

</div>

From this: RenderWindowInteractor | vtk.js Is there a way to detect when the left mouse button has been clicked (onLeftButtonPress) and the shift (or other control button) is being held?

---

## [Basic ITK / VTK Example](https://discourse.vtk.org/t/basic-itk-vtk-example/10982)

<div class="topic-metadata">

**Author:** [@davidshq](https://discourse.vtk.org/u/davidshq)\
**Replies:** 1\
**Last updated:** [March 24, 2023, 1:30pm UTC](https://discourse.vtk.org/t/basic-itk-vtk-example/10982 "2023-03-24T13:30:22Z")

</div>

I’m working on a new Vue 3.x app that utilizes VTK.js (and ITK-wasm). I’m keeping the old branches as they demonstrate different levels of integration - starting with the most simplistic. I know I’ll forget how I accompl…

---

## [How to freeze an actor in the render and not rotate with the other actors.](https://discourse.vtk.org/t/how-to-freeze-an-actor-in-the-render-and-not-rotate-with-the-other-actors/5871)

<div class="topic-metadata">

**Author:** [@JAHDv](https://discourse.vtk.org/u/JAHDv)\
**Replies:** 6\
**Last updated:** [March 24, 2023, 12:50pm UTC](https://discourse.vtk.org/t/how-to-freeze-an-actor-in-the-render-and-not-rotate-with-the-other-actors/5871 "2023-03-24T12:50:52Z")

</div>

Hi, is there any mechanism to tell the render/Actor not to update the position of an actor inside the render when I rotate? For example, I have 8 sphere actors forming a cube (one sphere per vertex) when I rotate the sc…

---

## [About panning when use Interactor Style Trackball Camera](https://discourse.vtk.org/t/about-panning-when-use-interactor-style-trackball-camera/11031)

<div class="topic-metadata">

**Author:** [@dbtruong](https://discourse.vtk.org/u/dbtruong)\
**Replies:** 0\
**Last updated:** [March 24, 2023, 3:28am UTC](https://discourse.vtk.org/t/about-panning-when-use-interactor-style-trackball-camera/11031 "2023-03-24T03:28:38Z")

</div>

Hello How can I rotate a cone after panning it? I was doing it, but when I rotated it focal point of the camera changed so it wasn’t normal Thanks.

---

## [About vtkWSLinkClient in vtkjs](https://discourse.vtk.org/t/about-vtkwslinkclient-in-vtkjs/11013)

<div class="topic-metadata">

**Author:** [@dbtruong](https://discourse.vtk.org/u/dbtruong)\
**Replies:** 4\
**Last updated:** [March 24, 2023, 1:12am UTC](https://discourse.vtk.org/t/about-vtkwslinkclient-in-vtkjs/11013 "2023-03-24T01:12:42Z")

</div>

How can I use vtkWSLinkClient to send a message to server ?

---

## [Implementing Shadows](https://discourse.vtk.org/t/implementing-shadows/4756)

<div class="topic-metadata">

**Author:** [@Darshan\_K](https://discourse.vtk.org/u/Darshan_K)\
**Replies:** 1\
**Last updated:** [March 23, 2023, 10:24am UTC](https://discourse.vtk.org/t/implementing-shadows/4756 "2023-03-23T10:24:40Z")

</div>

Hello, I’m currently working on a project, and I’m facing some issues with lighting. I have started with this minimalist program and work on it: import vtk sphere\_1 = vtk.vtkSphereSource() sphere\_1.SetCenter(25, 0, 0)…

---

## [Antialiasing Error in Setting Opacity of vtkTexturedSphereSource](https://discourse.vtk.org/t/antialiasing-error-in-setting-opacity-of-vtktexturedspheresource/5560)

<div class="topic-metadata">

**Author:** [@EchoVan](https://discourse.vtk.org/u/EchoVan)\
**Replies:** 2\
**Last updated:** [March 23, 2023, 10:10am UTC](https://discourse.vtk.org/t/antialiasing-error-in-setting-opacity-of-vtktexturedspheresource/5560 "2023-03-23T10:10:13Z")

</div>

I try to visualize some 3d scatter using vtkTexturedSphereSource. Everything seems well when I using RenderWindow.SetMultiSamples(12) to anti-aliasing as the users-guide commend. But when I set opacity by RenderWindow.Se…

---

## [About 3D image cutting](https://discourse.vtk.org/t/about-3d-image-cutting/11011)

<div class="topic-metadata">

**Author:** [@HWsir](https://discourse.vtk.org/u/HWsir)\
**Replies:** 4\
**Last updated:** [March 23, 2023, 9:56am UTC](https://discourse.vtk.org/t/about-3d-image-cutting/11011 "2023-03-23T09:56:50Z")

</div>

I have some questions about 3D image cutting. I draw a polygon through the lasso tool and generate a polydata, that is, a polyprism, according to the original volume data in the vertical direction of the screen, as shown…

---

## [gourard interpolation in vtk js](https://discourse.vtk.org/t/gourard-interpolation-in-vtk-js/11025)

<div class="topic-metadata">

**Author:** [@wael869](https://discourse.vtk.org/u/wael869)\
**Replies:** 1\
**Last updated:** [March 22, 2023, 4:08pm UTC](https://discourse.vtk.org/t/gourard-interpolation-in-vtk-js/11025 "2023-03-22T16:08:34Z")

</div>

I am trying to change interpolation to gourard but it shows results as phong or flat. in desktop version of my application using activwiz it worked well when I added polydatanormals filter and computed normals. how to …

---

## [VTK multi RenderWindow and RenderItem in QML](https://discourse.vtk.org/t/vtk-multi-renderwindow-and-renderitem-in-qml/10985)

<div class="topic-metadata">

**Author:** [@praveenkumar](https://discourse.vtk.org/u/praveenkumar)\
**Replies:** 4\
**Last updated:** [March 22, 2023, 3:43pm UTC](https://discourse.vtk.org/t/vtk-multi-renderwindow-and-renderitem-in-qml/10985 "2023-03-22T15:43:30Z")

</div>

I’m Trying to display Multi Render item in QML. I created 2x2 grid layout with 4 rectangle and 4 Render window and Render Item, but it was displaying only one at a time. If I try with 1 Render Window with 4 Render I…

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

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