# Latest

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

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

**Page:** 104

---

## [How to implement on double left button press](https://discourse.vtk.org/t/how-to-implement-on-double-left-button-press/10332)

<div class="topic-metadata">

**Author:** [@dexter](https://discourse.vtk.org/u/dexter)\
**Replies:** 2\
**Last updated:** [January 4, 2023, 4:00pm UTC](https://discourse.vtk.org/t/how-to-implement-on-double-left-button-press/10332 "2023-01-04T16:00:26Z")

</div>

Hi, in the official Point Picker example, onRightButtonPress event is used : renderWindow.getInteractor().onRightButtonPress((callData) =\> {... Is there a way to listen to a double left button press? Thank you

---

## [How to measure the pages displayed on the frontend](https://discourse.vtk.org/t/how-to-measure-the-pages-displayed-on-the-frontend/10378)

<div class="topic-metadata">

**Author:** [@jane](https://discourse.vtk.org/u/jane)\
**Replies:** 1\
**Last updated:** [January 4, 2023, 2:35pm UTC](https://discourse.vtk.org/t/how-to-measure-the-pages-displayed-on-the-frontend/10378 "2023-01-04T14:35:48Z")

</div>

Hello, here is the error I get when using the system-provided widget DistanceWidget: ERROR in ./src/controlPanel.html 1:0 Module parse failed: Unexpected token (1:0) You may need an appropriate loader to handle this f…

---

## [vtkOutlineGlowPass in multiview](https://discourse.vtk.org/t/vtkoutlineglowpass-in-multiview/10053)

<div class="topic-metadata">

**Author:** [@micheleivani](https://discourse.vtk.org/u/micheleivani)\
**Replies:** 6\
**Last updated:** [January 4, 2023, 2:13pm UTC](https://discourse.vtk.org/t/vtkoutlineglowpass-in-multiview/10053 "2023-01-04T14:13:08Z")

</div>

Hello, I’m using Activz (vtk c#). I have a multiview following the example https://kitware.github.io/vtk-examples/site/Cxx/Visualization/MultipleViewports/ and the main viewport has a glow effect following the example h…

---

## [ParticlePathFilter can only process vtkImageData？](https://discourse.vtk.org/t/particlepathfilter-can-only-process-vtkimagedata/10379)

<div class="topic-metadata">

**Author:** [@lizemin2016](https://discourse.vtk.org/u/lizemin2016)\
**Replies:** 0\
**Last updated:** [January 4, 2023, 7:34am UTC](https://discourse.vtk.org/t/particlepathfilter-can-only-process-vtkimagedata/10379 "2023-01-04T07:34:32Z")

</div>

I want to generate particle path from my custom polydata, But the processing object in example/test codes I can find are all vtkImageData，Is it not applicable for unstructure polydata? Are there any implementation exampl…

---

## [vtkCubeAxesActor Control tick labels and grid lines](https://discourse.vtk.org/t/vtkcubeaxesactor-control-tick-labels-and-grid-lines/10125)

<div class="topic-metadata">

**Author:** [@stu039](https://discourse.vtk.org/u/stu039)\
**Replies:** 2\
**Last updated:** [January 4, 2023, 4:04am UTC](https://discourse.vtk.org/t/vtkcubeaxesactor-control-tick-labels-and-grid-lines/10125 "2023-01-04T04:04:54Z")

</div>

Hello, I’m using a vtk cube axes actor to generate a grid & axes over a set of points. This is what I currently have How might I go about changing the x ticks, grid lines, and associated axis labels so that I have …

---

## [How to abort vtkTIFFReader to read image files](https://discourse.vtk.org/t/how-to-abort-vtktiffreader-to-read-image-files/10376)

<div class="topic-metadata">

**Author:** [@tong\_yang](https://discourse.vtk.org/u/tong_yang)\
**Replies:** 0\
**Last updated:** [January 4, 2023, 2:54am UTC](https://discourse.vtk.org/t/how-to-abort-vtktiffreader-to-read-image-files/10376 "2023-01-04T02:54:38Z")

</div>

I want to interrupt the vtkTIFFReader reading process through multithreading. Because my image file is very large and the reading process takes a long time, users want to have a way to stop it. So I would like to ask i…

---

## [Is there any way to check whether the "Delete()" has been invoked already?](https://discourse.vtk.org/t/is-there-any-way-to-check-whether-the-delete-has-been-invoked-already/10324)

<div class="topic-metadata">

**Author:** [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)\
**Replies:** 4\
**Last updated:** [January 3, 2023, 10:23pm UTC](https://discourse.vtk.org/t/is-there-any-way-to-check-whether-the-delete-has-been-invoked-already/10324 "2023-01-03T22:23:30Z")

</div>

Hello,Is there any way to check whether the “Delete()” has been invoked already?

---

## [How to sketch a 3D image](https://discourse.vtk.org/t/how-to-sketch-a-3d-image/10308)

<div class="topic-metadata">

**Author:** [@jane](https://discourse.vtk.org/u/jane)\
**Replies:** 1\
**Last updated:** [January 3, 2023, 5:01pm UTC](https://discourse.vtk.org/t/how-to-sketch-a-3d-image/10308 "2023-01-03T17:01:05Z")

</div>

Hello, after we display the three-dimensional volume drawing results to the page, how to achieve measurement and sketching.

---

## [vtkTubeFilter vary radius](https://discourse.vtk.org/t/vtktubefilter-vary-radius/10361)

<div class="topic-metadata">

**Author:** [@micheleivani](https://discourse.vtk.org/u/micheleivani)\
**Replies:** 1\
**Last updated:** [January 3, 2023, 2:55pm UTC](https://discourse.vtk.org/t/vtktubefilter-vary-radius/10361 "2023-01-03T14:55:16Z")

</div>

Hello, I need to get the following behavior. I have a list of points with x,y, and z coordinates and radius. I want to use a vtkKochanekSpline and vtkTubeFilter with the SetVaryRadiusToVaryRadiusByAbsoluteScalar op…

---

## [vtkCamera SetParallelProjection not working properly](https://discourse.vtk.org/t/vtkcamera-setparallelprojection-not-working-properly/10370)

<div class="topic-metadata">

**Author:** [@jackshen2028](https://discourse.vtk.org/u/jackshen2028)\
**Replies:** 0\
**Last updated:** [January 3, 2023, 2:19pm UTC](https://discourse.vtk.org/t/vtkcamera-setparallelprojection-not-working-properly/10370 "2023-01-03T14:19:15Z")

</div>

Dear VTK community, I am trying to change vtk camera from parallel mode to perspective mode by using SetParallelProjection(True/False), everything works as expected until I scroll the mouse, which changes the view scale…

---

## [where will the render show the final color](https://discourse.vtk.org/t/where-will-the-render-show-the-final-color/10368)

<div class="topic-metadata">

**Author:** [@gujiangtao](https://discourse.vtk.org/u/gujiangtao)\
**Replies:** 0\
**Last updated:** [January 3, 2023, 8:27am UTC](https://discourse.vtk.org/t/where-will-the-render-show-the-final-color/10368 "2023-01-03T08:27:42Z")

</div>

Hi everyone Now I am reading the source code of vtk .But I am confused about something . for example ,I have used the GPUvolumeraycastmapper to generate volume,and also set the finalcolorlevel. but I really do not kno…

---

## [\[VTK.js\] Render volume as separate, togglable surfaces](https://discourse.vtk.org/t/vtk-js-render-volume-as-separate-togglable-surfaces/10188)

<div class="topic-metadata">

**Author:** [@sanderteirlynck](https://discourse.vtk.org/u/sanderteirlynck)\
**Replies:** 2\
**Last updated:** [January 3, 2023, 7:29am UTC](https://discourse.vtk.org/t/vtk-js-render-volume-as-separate-togglable-surfaces/10188 "2023-01-03T07:29:15Z")

</div>

I have a Niftii file for a head model that I read and convert to a vtkImage. I render this volume as a surface using ImageMarchingCubes, WindowedSincPolyDataFilter and PolyDataNormals since I need to apply smoothing. All…

---

## [vtkImageMapToColors display a wrong color](https://discourse.vtk.org/t/vtkimagemaptocolors-display-a-wrong-color/10360)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 4\
**Last updated:** [January 3, 2023, 6:13am UTC](https://discourse.vtk.org/t/vtkimagemaptocolors-display-a-wrong-color/10360 "2023-01-03T06:13:54Z")

</div>

I am using vtkImageMapToColors to map gray image to color image. My image has only 0/1 value: img = vtk.vtkImageData() img.SetDimensions(256, 256, 1) img.AllocateScalars(vtk.VTK\_INT, 1) for i in range(256): for j i…

---

## [VTK 9.2.4 is out](https://discourse.vtk.org/t/vtk-9-2-4-is-out/10348)

<div class="topic-metadata">

**Author:** [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)\
**Replies:** 1\
**Last updated:** [January 2, 2023, 3:58pm UTC](https://discourse.vtk.org/t/vtk-9-2-4-is-out/10348 "2023-01-02T15:58:17Z")

</div>

VTK 9.2.4 is out.\[^1\] This release comes with Python wheels for Python 3.11 and SDKs for building further wheels based on VTK’s C++ API. It also improves compatibility for newer NumPy (1.24+) and Matplotlib (3.6+) releas…

---

## [Will 9.2 support Python 3.11](https://discourse.vtk.org/t/will-9-2-support-python-3-11/9398)

<div class="topic-metadata">

**Author:** [@parched](https://discourse.vtk.org/u/parched)\
**Replies:** 7\
**Last updated:** [January 2, 2023, 7:27am UTC](https://discourse.vtk.org/t/will-9-2-support-python-3-11/9398 "2023-01-02T07:27:42Z")

</div>

Python 3.11 is planned to be released in 1 months time and the ABI is stable. Will support be added to the 9.2 release? Is it just a matter of adding it to the CMake files, or is there breaking changes in the C API? P…

---

## [ALL\_BUILD in Visual Studio did not install VTK under program files - Windows 10](https://discourse.vtk.org/t/all-build-in-visual-studio-did-not-install-vtk-under-program-files-windows-10/10213)

<div class="topic-metadata">

**Author:** [@Jerry1](https://discourse.vtk.org/u/Jerry1)\
**Replies:** 2\
**Last updated:** [December 15, 2022, 9:55pm UTC](https://discourse.vtk.org/t/all-build-in-visual-studio-did-not-install-vtk-under-program-files-windows-10/10213 "2022-12-15T21:55:09Z")

</div>

Hello. I am new to VTK and I have downloaded, configured, and generated VTK with CMake. Once I have done that, I then went to the VTK visual studio solution file that was generated under /bin and ran the build for ALL\_B…

---

## [Polyhedral cells: storing faces as vtkCellArray](https://discourse.vtk.org/t/polyhedral-cells-storing-faces-as-vtkcellarray/5656)

<div class="topic-metadata">

**Author:** [@utkarshayachit](https://discourse.vtk.org/u/utkarshayachit)\
**Replies:** 9\
**Last updated:** [January 1, 2023, 2:36pm UTC](https://discourse.vtk.org/t/polyhedral-cells-storing-faces-as-vtkcellarray/5656 "2023-01-01T14:36:12Z")

</div>

When storing face information for polyhedral cells, vtkUnstructuredGrid uses a vtkIdTypeArray in a special format that looks awfully similar to how vtkCellArray used maintain its internal storage. I wonder if it should s…

---

## [Seg fault reading jpeg in 9.2.2](https://discourse.vtk.org/t/seg-fault-reading-jpeg-in-9-2-2/10337)

<div class="topic-metadata">

**Author:** [@efahl](https://discourse.vtk.org/u/efahl)\
**Replies:** 7\
**Last updated:** [December 31, 2022, 7:33pm UTC](https://discourse.vtk.org/t/seg-fault-reading-jpeg-in-9-2-2/10337 "2022-12-31T19:33:00Z")

</div>

jpg-bug.zip (2.2 KB) I just was playing with Python 3.10.7, pip installed VTK 9.2.2 and ran one of our image reader tests. With VTK 9.1, when reading the bad one, Samsung.jpg, I’d see some error messages and get approp…

---

## [Generated points are not reduced when sampling spacing increases](https://discourse.vtk.org/t/generated-points-are-not-reduced-when-sampling-spacing-increases/10344)

<div class="topic-metadata">

**Author:** [@lizemin2016](https://discourse.vtk.org/u/lizemin2016)\
**Replies:** 2\
**Last updated:** [December 31, 2022, 3:05pm UTC](https://discourse.vtk.org/t/generated-points-are-not-reduced-when-sampling-spacing-increases/10344 "2022-12-31T15:05:56Z")

</div>

2D Interior Area.vtp (83.3 KB) I want to generate points from the above vtp file, I don’t know how to choose the suitable distance parameter, when I increase the distance it works at the beginning, but the points genera…

---

## [how to visualizate the tetrahedron?](https://discourse.vtk.org/t/how-to-visualizate-the-tetrahedron/10339)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 6\
**Last updated:** [December 31, 2022, 3:04pm UTC](https://discourse.vtk.org/t/how-to-visualizate-the-tetrahedron/10339 "2022-12-31T15:04:31Z")

</div>

I want to visualize a tetrahedron, and my code is: nodes = \[ \[ 3.56000000e+02, 2.56000000e+02, 0.00000000e+00\], \[ 1.56000000e+02, 1.56000000e+02, 1.22464676e-14\], \[ 1.56000000e+02, 2.06000000e+02, -8.6…

---

## [Convert 3D contour point cloud to binary voxel map](https://discourse.vtk.org/t/convert-3d-contour-point-cloud-to-binary-voxel-map/4214)

<div class="topic-metadata">

**Author:** [@ferdymercury](https://discourse.vtk.org/u/ferdymercury)\
**Replies:** 8\
**Last updated:** [December 31, 2022, 2:56pm UTC](https://discourse.vtk.org/t/convert-3d-contour-point-cloud-to-binary-voxel-map/4214 "2022-12-31T14:56:44Z")

</div>

I am writing a small C++ program, which contains: a voxel grid (nX \* nY \* nZ) a voxel (i,j,k) to 3D point (x,y,z) conversion matrix an array of 3D points (x,y,z) defining a closed surface As I am new to VTK, I was loo…

---

## [Stream multiple renderwindows with wslink](https://discourse.vtk.org/t/stream-multiple-renderwindows-with-wslink/2743)

<div class="topic-metadata">

**Author:** [@ckolb](https://discourse.vtk.org/u/ckolb)\
**Replies:** 3\
**Last updated:** [December 30, 2022, 5:28pm UTC](https://discourse.vtk.org/t/stream-multiple-renderwindows-with-wslink/2743 "2022-12-30T17:28:14Z")

</div>

Hello again! I was trying to create an imageStream server which streams 3 renderwindows on different ports. But after setting up everything, all streams are showing the same image. Is “getApplication” from wslink.Serve…

---

## [How to transmit multiple render windows with a VTK server and wslink launcher?](https://discourse.vtk.org/t/how-to-transmit-multiple-render-windows-with-a-vtk-server-and-wslink-launcher/7877)

<div class="topic-metadata">

**Author:** [@joaomlap](https://discourse.vtk.org/u/joaomlap)\
**Replies:** 2\
**Last updated:** [December 30, 2022, 5:15pm UTC](https://discourse.vtk.org/t/how-to-transmit-multiple-render-windows-with-a-vtk-server-and-wslink-launcher/7877 "2022-12-30T17:15:41Z")

</div>

Hi I am currently using VTK as a server and I am also using the wslink launcher to serve multiple users. My question is if a user wants to open multiple render windows like for example Paraview here: BTW what’s the …

---

## [vtkScalarBarWidget stuck on vertical orientation](https://discourse.vtk.org/t/vtkscalarbarwidget-stuck-on-vertical-orientation/10217)

<div class="topic-metadata">

**Author:** [@BlueKnight7](https://discourse.vtk.org/u/BlueKnight7)\
**Replies:** 3\
**Last updated:** [December 29, 2022, 6:44pm UTC](https://discourse.vtk.org/t/vtkscalarbarwidget-stuck-on-vertical-orientation/10217 "2022-12-29T18:44:03Z")

</div>

I’m using Vtk 9.1 on Linux. I’ve been trying to get a vtkScalarBarWidget to orient horizontally. I’ve found that the vtkScalarBar will, but I can’t figure out how to do this with the widget. From the online example: h…

---

## [I want to complete the interactive segmentation of images. Is there any relevant example?](https://discourse.vtk.org/t/i-want-to-complete-the-interactive-segmentation-of-images-is-there-any-relevant-example/10334)

<div class="topic-metadata">

**Author:** [@marlon.ma](https://discourse.vtk.org/u/marlon.ma)\
**Replies:** 0\
**Last updated:** [December 29, 2022, 2:54am UTC](https://discourse.vtk.org/t/i-want-to-complete-the-interactive-segmentation-of-images-is-there-any-relevant-example/10334 "2022-12-29T02:54:10Z")

</div>

I want to complete the interactive segmentation of images. Is there any relevant example?

---

## [Running trame dashboard in browder from jupyter notebook](https://discourse.vtk.org/t/running-trame-dashboard-in-browder-from-jupyter-notebook/10181)

<div class="topic-metadata">

**Author:** [@Robert\_Collar](https://discourse.vtk.org/u/Robert_Collar)\
**Replies:** 4\
**Last updated:** [December 28, 2022, 5:11pm UTC](https://discourse.vtk.org/t/running-trame-dashboard-in-browder-from-jupyter-notebook/10181 "2022-12-28T17:11:19Z")

</div>

Hi VTK community! When I throw the simple example from here on the trame website into a jupyter notebook, I get the error displayed in the screenshot below. I’m able to run an app displayed in the browser from a app.py f…

---

## [Model class 'TransferFunctionModel' from module 'k3d' is loaded but can not be instantiated](https://discourse.vtk.org/t/model-class-transferfunctionmodel-from-module-k3d-is-loaded-but-can-not-be-instantiated/10312)

<div class="topic-metadata">

**Author:** [@Deepa](https://discourse.vtk.org/u/Deepa)\
**Replies:** 2\
**Last updated:** [December 28, 2022, 3:08pm UTC](https://discourse.vtk.org/t/model-class-transferfunctionmodel-from-module-k3d-is-loaded-but-can-not-be-instantiated/10312 "2022-12-28T15:08:26Z")

</div>

I am trying to run the following example (K3D-jupyter/volume\_renderer.ipynb at 3fef1ea419a84a51c8aed56cb285b9fcf0a18c9a · K3D-tools/K3D-jupyter · GitHub) in jupyter notebook. import k3d import math import numpy as np im…

---

## [Polydata to 3d image!](https://discourse.vtk.org/t/polydata-to-3d-image/10331)

<div class="topic-metadata">

**Author:** [@jongzzi\_GanJang](https://discourse.vtk.org/u/jongzzi_GanJang)\
**Replies:** 0\
**Last updated:** [December 28, 2022, 10:09am UTC](https://discourse.vtk.org/t/polydata-to-3d-image/10331 "2022-12-28T10:09:02Z")

</div>

The code below is the process of extracting polydata from the contour sequence and converting it into a volume image. def contourSequence2Volume(cs, referenceImage): polylines = contourSequence2PolyLines(cs) wh…

---

## [Change resolution of a 3D VTK dataset](https://discourse.vtk.org/t/change-resolution-of-a-3d-vtk-dataset/10322)

<div class="topic-metadata">

**Author:** [@pasvalietis](https://discourse.vtk.org/u/pasvalietis)\
**Replies:** 0\
**Last updated:** [December 28, 2022, 12:27am UTC](https://discourse.vtk.org/t/change-resolution-of-a-3d-vtk-dataset/10322 "2022-12-28T00:27:01Z")

</div>

Hello, I am working with a vtk dataset that has both scalar and vector field data, and the vtk type is vtkStructuredPoints. I want to decrease the grid resolution for each field to reduce file size and write the new dat…

---

## [How to dynamically change the color of a point in a point cloud？](https://discourse.vtk.org/t/how-to-dynamically-change-the-color-of-a-point-in-a-point-cloud/10101)

<div class="topic-metadata">

**Author:** [@zhangzhi93](https://discourse.vtk.org/u/zhangzhi93)\
**Replies:** 3\
**Last updated:** [December 27, 2022, 8:13am UTC](https://discourse.vtk.org/t/how-to-dynamically-change-the-color-of-a-point-in-a-point-cloud/10101 "2022-12-27T08:13:34Z")

</div>

I added color to the point cloud through the polyData.getPointData().setScalars() method. Now I need a hover effect. When the mouse moves over a point, it changes the color of the point. I have obtained the index of the …

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

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