# Latest

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

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

**Page:** 142

---

## [Compiling VTK 9.1.0 in MSYS2/MinGW64 with gcc 8.3.0 and 11.2.0: error in debug mode.](https://discourse.vtk.org/t/compiling-vtk-9-1-0-in-msys2-mingw64-with-gcc-8-3-0-and-11-2-0-error-in-debug-mode/7940)

<div class="topic-metadata">

**Author:** [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)\
**Replies:** 2\
**Last updated:** [March 2, 2022, 2:13pm UTC](https://discourse.vtk.org/t/compiling-vtk-9-1-0-in-msys2-mingw64-with-gcc-8-3-0-and-11-2-0-error-in-debug-mode/7940 "2022-03-02T14:13:24Z")

</div>

Greetings, I’m getting this error when compiling VTK 9.1.0 in debug mode (release mode compiles just fine): CMakeFiles\\IOLegacy.dir/objects.a(vtkCompositeDataReader.cxx.obj): In function \`vtkCompositeDataReader::ReadCo…

---

## [widget.setCenter() is not updating Reslices unless hover](https://discourse.vtk.org/t/widget-setcenter-is-not-updating-reslices-unless-hover/7948)

<div class="topic-metadata">

**Author:** [@dexter](https://discourse.vtk.org/u/dexter)\
**Replies:** 3\
**Last updated:** [March 2, 2022, 1:31pm UTC](https://discourse.vtk.org/t/widget-setcenter-is-not-updating-reslices-unless-hover/7948 "2022-03-02T13:31:46Z")

</div>

Hey, I’m really stuck, I’m updating the center of a vtkResliceCursorWidget after a button click but the center of the widget is not updated unless I hover in each view, I need to update views right after update the cent…

---

## [How to read .vtkjs files](https://discourse.vtk.org/t/how-to-read-vtkjs-files/7953)

<div class="topic-metadata">

**Author:** [@dexter](https://discourse.vtk.org/u/dexter)\
**Replies:** 5\
**Last updated:** [March 2, 2022, 9:58am UTC](https://discourse.vtk.org/t/how-to-read-vtkjs-files/7953 "2022-03-02T09:58:51Z")

</div>

Hey, I need an example of how to read volumes with .vtkjs extension, I’m considering using it because .VTI file takes too long to charge from the server and to render, Also I will be grateful if you guide me to how to …

---

## [Method to generate vector using camera location as origin from mouse click](https://discourse.vtk.org/t/method-to-generate-vector-using-camera-location-as-origin-from-mouse-click/7943)

<div class="topic-metadata">

**Author:** [@Yavol\_Foxxen](https://discourse.vtk.org/u/Yavol_Foxxen)\
**Replies:** 1\
**Last updated:** [March 2, 2022, 6:06am UTC](https://discourse.vtk.org/t/method-to-generate-vector-using-camera-location-as-origin-from-mouse-click/7943 "2022-03-02T06:06:21Z")

</div>

i am familiar with getting camera position in world.(x,y,z) but getting (i,j,k) vector based on mouse click evades me. trying to be able to click on an arbitrary point on a sphere defined with a center and a radius. the …

---

## [Caching data using MTime](https://discourse.vtk.org/t/caching-data-using-mtime/7831)

<div class="topic-metadata">

**Author:** [@Jens\_Munk\_Hansen](https://discourse.vtk.org/u/Jens_Munk_Hansen)\
**Replies:** 4\
**Last updated:** [March 1, 2022, 6:52pm UTC](https://discourse.vtk.org/t/caching-data-using-mtime/7831 "2022-03-01T18:52:29Z")

</div>

Hi Developers I am looking at a problem, where a module needs to access data from the past. I am thinking of writing a module similar to vtkTemporalDataCache, but where data are stored using a time derived from GetMTime…

---

## [Hover/click interaction with mesh](https://discourse.vtk.org/t/hover-click-interaction-with-mesh/7930)

<div class="topic-metadata">

**Author:** [@eudoxos](https://discourse.vtk.org/u/eudoxos)\
**Replies:** 3\
**Last updated:** [March 1, 2022, 4:59pm UTC](https://discourse.vtk.org/t/hover-click-interaction-with-mesh/7930 "2022-03-01T16:59:15Z")

</div>

I have a simple vtk.js-based viewer of a vtp mesh and would like to show spatial coordinates when hovering (or clicking, if that is simpler) on the mesh. It can be fairly coarse, meaning that the callback only needs to i…

---

## [Centre camera to clicked sphere](https://discourse.vtk.org/t/centre-camera-to-clicked-sphere/7949)

<div class="topic-metadata">

**Author:** [@Kevin\_Sweeney](https://discourse.vtk.org/u/Kevin_Sweeney)\
**Replies:** 1\
**Last updated:** [March 1, 2022, 3:02pm UTC](https://discourse.vtk.org/t/centre-camera-to-clicked-sphere/7949 "2022-03-01T15:02:06Z")

</div>

I have an application where there are multiple (10k+) spheres rendered. I would like the camera to focus on a particular sphere when the user selects the point, i.e. centre the sphere on screen and zoom to a distance of …

---

## [How to save the VTK created components in memory?](https://discourse.vtk.org/t/how-to-save-the-vtk-created-components-in-memory/7944)

<div class="topic-metadata">

**Author:** [@rockydut](https://discourse.vtk.org/u/rockydut)\
**Replies:** 1\
**Last updated:** [March 1, 2022, 11:35am UTC](https://discourse.vtk.org/t/how-to-save-the-vtk-created-components-in-memory/7944 "2022-03-01T11:35:21Z")

</div>

I want to use VTK to create many components, such as cylinder, polydata, unstructured grid and so on. Of course, these components are easy to be created by VTK, but how to save these different types of components in memo…

---

## [Cannot find Histogram method in Python vtk 9.0](https://discourse.vtk.org/t/cannot-find-histogram-method-in-python-vtk-9-0/7935)

<div class="topic-metadata">

**Author:** [@perphy](https://discourse.vtk.org/u/perphy)\
**Replies:** 1\
**Last updated:** [March 1, 2022, 8:57am UTC](https://discourse.vtk.org/t/cannot-find-histogram-method-in-python-vtk-9-0/7935 "2022-03-01T08:57:50Z")

</div>

Hi: I am looking for vtkImageHistogram in Python vtk version 9 above. I cannot find it. How can I do Image Histogram in Python version 9 above? Thanks

---

## [no libvtkRenderingTk with pip install vtk](https://discourse.vtk.org/t/no-libvtkrenderingtk-with-pip-install-vtk/5613)

<div class="topic-metadata">

**Author:** [@itan](https://discourse.vtk.org/u/itan)\
**Replies:** 18\
**Last updated:** [March 1, 2022, 6:18am UTC](https://discourse.vtk.org/t/no-libvtkrenderingtk-with-pip-install-vtk/5613 "2022-03-01T06:18:07Z")

</div>

Hi, I am on ubuntu 20.04 and trying to build a small GUI with Python 3.8.5, VTK 9.0.1 and Tkinter. Using VTK and Tkinter separately both work well, but I am having difficulties combining them. I have tried it with a vtk…

---

## [Compute the air zone or negative mesh](https://discourse.vtk.org/t/compute-the-air-zone-or-negative-mesh/7915)

<div class="topic-metadata">

**Author:** [@DFlyer](https://discourse.vtk.org/u/DFlyer)\
**Replies:** 5\
**Last updated:** [March 1, 2022, 12:55am UTC](https://discourse.vtk.org/t/compute-the-air-zone-or-negative-mesh/7915 "2022-03-01T00:55:50Z")

</div>

I have a varying height mesh hovering over a structured mesh (a plane). I need a mesh/surface that crops the air zone between them. Attached a figure for reference. Method tried : Create lines from the plane and use…

---

## [Pink streak with viridis colormap](https://discourse.vtk.org/t/pink-streak-with-viridis-colormap/7939)

<div class="topic-metadata">

**Author:** [@Yasushi\_Saito](https://discourse.vtk.org/u/Yasushi_Saito)\
**Replies:** 1\
**Last updated:** [February 28, 2022, 6:34pm UTC](https://discourse.vtk.org/t/pink-streak-with-viridis-colormap/7939 "2022-02-28T18:34:02Z")

</div>

Using a viridis colormap, I usually see a pink band in wrong places, like below. When I load the same mesh in Paraview (desktop), these pink anomalies don’t show. It looks like vtkColorTransferFunctionInterpolateDiver…

---

## [Shared libraries can't be redistributed since they refer to their build path](https://discourse.vtk.org/t/shared-libraries-cant-be-redistributed-since-they-refer-to-their-build-path/7892)

<div class="topic-metadata">

**Author:** [@Martin3d](https://discourse.vtk.org/u/Martin3d)\
**Replies:** 2\
**Last updated:** [February 28, 2022, 10:10am UTC](https://discourse.vtk.org/t/shared-libraries-cant-be-redistributed-since-they-refer-to-their-build-path/7892 "2022-02-28T10:10:21Z")

</div>

Hi everyone, I am building VTK 9.1 for Java for few platforms as I could not find VTK java build on CDash (I hope I am not wrong). I make this open and available for download to anyone. My problem is that I recently no…

---

## [How to position sphere on VtkActor on mouse click?](https://discourse.vtk.org/t/how-to-position-sphere-on-vtkactor-on-mouse-click/7910)

<div class="topic-metadata">

**Author:** [@dexter](https://discourse.vtk.org/u/dexter)\
**Replies:** 2\
**Last updated:** [February 28, 2022, 8:58am UTC](https://discourse.vtk.org/t/how-to-position-sphere-on-vtkactor-on-mouse-click/7910 "2022-02-28T08:58:29Z")

</div>

Hey, I’m using ResliceCursorWidget to update the positon of a 3dSphere (the red sphere) in the VtkActor (it is working fine), I’m wondering, is it possible to update the position of the sphere (setCenter()) after mo…

---

## [Re-close the surface of combined meshs](https://discourse.vtk.org/t/re-close-the-surface-of-combined-meshs/7928)

<div class="topic-metadata">

**Author:** [@syj](https://discourse.vtk.org/u/syj)\
**Replies:** 0\
**Last updated:** [February 28, 2022, 7:45am UTC](https://discourse.vtk.org/t/re-close-the-surface-of-combined-meshs/7928 "2022-02-28T07:45:04Z")

</div>

Hi guys, I’m trying to do a clip on any closed mesh using a sphere, and get a closed mesh after clip. And here is my try: clip the mesh using vtk.vtkClipPolyData() with a sphere get the sphere polys inside the to-be-…

---

## [More pythonic interface / closer to numpy](https://discourse.vtk.org/t/more-pythonic-interface-closer-to-numpy/7905)

<div class="topic-metadata">

**Author:** [@berk.geveci](https://discourse.vtk.org/u/berk.geveci)\
**Replies:** 12\
**Last updated:** [February 28, 2022, 6:32am UTC](https://discourse.vtk.org/t/more-pythonic-interface-closer-to-numpy/7905 "2022-02-28T06:32:39Z")

</div>

Hi everyone, I would like to propose some improvements to VTK both at C++ and Python level with the following goals: Convenient interface between the VTK data model and numpy, pandas etc. (wrapper changes -done-, pyth…

---

## [Disable caption widget anchor point picking and dragging](https://discourse.vtk.org/t/disable-caption-widget-anchor-point-picking-and-dragging/7883)

<div class="topic-metadata">

**Author:** [@Kent](https://discourse.vtk.org/u/Kent)\
**Replies:** 4\
**Last updated:** [February 25, 2022, 4:11pm UTC](https://discourse.vtk.org/t/disable-caption-widget-anchor-point-picking-and-dragging/7883 "2022-02-25T16:11:23Z")

</div>

Hi, I am trying to disable anchor point picking and dragging for a caption widget. I found this article on stack overflow: The responses seem to indicate that the proposed solutions do not necessarily work. Is ther…

---

## [vtkPlotLine wrong width visualization](https://discourse.vtk.org/t/vtkplotline-wrong-width-visualization/7924)

<div class="topic-metadata">

**Author:** [@Mezitor](https://discourse.vtk.org/u/Mezitor)\
**Replies:** 0\
**Last updated:** [February 25, 2022, 3:00pm UTC](https://discourse.vtk.org/t/vtkplotline-wrong-width-visualization/7924 "2022-02-25T15:00:35Z")

</div>

Hello! I am trying to visualize a 2D plot. Y range = 3790, step = 0.1 And I need plot to be thicker. But for some reason when m\_Width = 1 plot looks great, but when I’m starting to increase width, it’s becoming someth…

---

## [Add points to polyline](https://discourse.vtk.org/t/add-points-to-polyline/7914)

<div class="topic-metadata">

**Author:** [@Julienchz](https://discourse.vtk.org/u/Julienchz)\
**Replies:** 5\
**Last updated:** [February 25, 2022, 2:37pm UTC](https://discourse.vtk.org/t/add-points-to-polyline/7914 "2022-02-25T14:37:56Z")

</div>

Hello, I have a vtkPoints and a vtkPolyline. And I would like to add a point to my vtkPoints with the points connected by lines. I manage to do it at initialization but when I am trying to do it later, it doesn’t work. …

---

## [vtkXMLPUnstructuredGridWriter.h is missing](https://discourse.vtk.org/t/vtkxmlpunstructuredgridwriter-h-is-missing/7922)

<div class="topic-metadata">

**Author:** [@Marshdweller](https://discourse.vtk.org/u/Marshdweller)\
**Replies:** 3\
**Last updated:** [February 25, 2022, 1:28pm UTC](https://discourse.vtk.org/t/vtkxmlpunstructuredgridwriter-h-is-missing/7922 "2022-02-25T13:28:45Z")

</div>

I am trying to link an existing software to VTK9.1, and keep getting a compile-time error “vtkXMLPUnstructuredGridWriter.h not found”. It is indeed missing from the …/include directory, although vtkXMLPUnstructuredGridRe…

---

## [VTK Online Trainings at Kitware Europe in March 2022](https://discourse.vtk.org/t/vtk-online-trainings-at-kitware-europe-in-march-2022/7920)

<div class="topic-metadata">

**Author:** [@Francois\_Mazen](https://discourse.vtk.org/u/Francois_Mazen)\
**Replies:** 0\
**Last updated:** [February 25, 2022, 8:38am UTC](https://discourse.vtk.org/t/vtk-online-trainings-at-kitware-europe-in-march-2022/7920 "2022-02-25T08:38:40Z")

</div>

Kitware Europe is organizing online training courses for VTK users and for VTK developers in March 2022. If you want to learn how to use VTK to create data analysis pipelines and beautiful visualizations, you may be int…

---

## [Crash during offscreen rendering of QVTKNativeWidget window](https://discourse.vtk.org/t/crash-during-offscreen-rendering-of-qvtknativewidget-window/7899)

<div class="topic-metadata">

**Author:** [@andreasbuykx](https://discourse.vtk.org/u/andreasbuykx)\
**Replies:** 1\
**Last updated:** [February 24, 2022, 4:19pm UTC](https://discourse.vtk.org/t/crash-during-offscreen-rendering-of-qvtknativewidget-window/7899 "2022-02-24T16:19:36Z")

</div>

Our application gives opengl errors when making offscreen images of the QVTKNativeWidget. Saving images uses a second offscreen render window, because we want the image to have a different screen size than the widget’s …

---

## [Has anybody used OffscreenCanvas and web workers for rendering?](https://discourse.vtk.org/t/has-anybody-used-offscreencanvas-and-web-workers-for-rendering/2801)

<div class="topic-metadata">

**Author:** [@rvilums](https://discourse.vtk.org/u/rvilums)\
**Replies:** 2\
**Last updated:** [February 24, 2022, 3:32pm UTC](https://discourse.vtk.org/t/has-anybody-used-offscreencanvas-and-web-workers-for-rendering/2801 "2022-02-24T15:32:47Z")

</div>

Hi, I load vtk files for a user to view. If a file is quite large, interaction like rotating is a bit lagging. I have an idea to speed up by using OffscreenCanvas and a web worker. Is it possible in general? Does anybo…

---

## [Using VTK with unity for reading .VTU files but not Visualizing. Mac OS](https://discourse.vtk.org/t/using-vtk-with-unity-for-reading-vtu-files-but-not-visualizing-mac-os/7894)

<div class="topic-metadata">

**Author:** [@Saquan\_Anthony](https://discourse.vtk.org/u/Saquan_Anthony)\
**Replies:** 4\
**Last updated:** [February 24, 2022, 2:20pm UTC](https://discourse.vtk.org/t/using-vtk-with-unity-for-reading-vtu-files-but-not-visualizing-mac-os/7894 "2022-02-24T14:20:56Z")

</div>

Hello, Working on a project in Unity and looking to be able to read and visualize VTU files that are compressed with “vtkZLibDataCompressor” and use a binary format for the byte information. Currently I can read and vi…

---

## [How to update ResliceCursorWidget after setCenter](https://discourse.vtk.org/t/how-to-update-reslicecursorwidget-after-setcenter/7911)

<div class="topic-metadata">

**Author:** [@dexter](https://discourse.vtk.org/u/dexter)\
**Replies:** 4\
**Last updated:** [February 24, 2022, 2:17pm UTC](https://discourse.vtk.org/t/how-to-update-reslicecursorwidget-after-setcenter/7911 "2022-02-24T14:17:56Z")

</div>

Hey, I’m using ResliceCursorWidget the same way used in the official website, I want to set the center with values I already have : widget.getWidgetState().setCenter(x,y,z); the problem is, in each render of the 3 vi…

---

## [AddController in vtkGenericRenderWindow](https://discourse.vtk.org/t/addcontroller-in-vtkgenericrenderwindow/7903)

<div class="topic-metadata">

**Author:** [@stoune](https://discourse.vtk.org/u/stoune)\
**Replies:** 2\
**Last updated:** [February 24, 2022, 12:30pm UTC](https://discourse.vtk.org/t/addcontroller-in-vtkgenericrenderwindow/7903 "2022-02-24T12:30:28Z")

</div>

Hey I want to add a Button (Zoom and pan ) in a vtkGenericRenderWindow below the actual actor I’m displaying, I tried to do that but it doesn’t work and I don’t know what to do: const ZoomPan = () =\>{ \<div\> \<Button\> …

---

## [Renderers disappear on Interaction Event](https://discourse.vtk.org/t/renderers-disappear-on-interaction-event/7887)

<div class="topic-metadata">

**Author:** [@stoune](https://discourse.vtk.org/u/stoune)\
**Replies:** 2\
**Last updated:** [February 23, 2022, 10:38pm UTC](https://discourse.vtk.org/t/renderers-disappear-on-interaction-event/7887 "2022-02-23T22:38:41Z")

</div>

Hello, I’m using in React, ResliceCursorWidget to get the locations in the brain slices on each onEndInteractionEvent and , at the same move a sphere (the red sphere) in other rendrer that display the vtk 3D of the brain…

---

## [How to calculate position in MPR?](https://discourse.vtk.org/t/how-to-calculate-position-in-mpr/7909)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 0\
**Last updated:** [February 24, 2022, 7:23am UTC](https://discourse.vtk.org/t/how-to-calculate-position-in-mpr/7909 "2022-02-24T07:23:46Z")

</div>

I am implementing MPR (multiplanar reformation) in my project. I have finish all the calculation except the position. For example, the RadiAnt display position as: I understand the charact of R/L/A/P/S/I as: R: righ…

---

## [Can not find vtkVolumeRayCastMIPFunction in vtk 9.1](https://discourse.vtk.org/t/can-not-find-vtkvolumeraycastmipfunction-in-vtk-9-1/7908)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 0\
**Last updated:** [February 24, 2022, 6:35am UTC](https://discourse.vtk.org/t/can-not-find-vtkvolumeraycastmipfunction-in-vtk-9-1/7908 "2022-02-24T06:35:21Z")

</div>

I want to implement maximum intensity projection in my project, and vtkVolumeRayCastMIPFunction is what I want. However, I can not find it in vtk 9.1. Is there any method can replace vtkVolumeRayCastMIPFunction? Or how c…

---

## [Multi-texture OBJ texture blending issue](https://discourse.vtk.org/t/multi-texture-obj-texture-blending-issue/7898)

<div class="topic-metadata">

**Author:** [@thebookins](https://discourse.vtk.org/u/thebookins)\
**Replies:** 3\
**Last updated:** [February 23, 2022, 11:02pm UTC](https://discourse.vtk.org/t/multi-texture-obj-texture-blending-issue/7898 "2022-02-23T23:02:25Z")

</div>

Hi, I’m trying to load an OBJ file with more than one texture, using VTK 9.1.0 in Python. This post shows the basic idea and there is some further discussion here. The following code shows the essential steps. Given a p…

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

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