# Latest

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

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

**Page:** 122

---

## [vtk.js How to replace getApiSpecificRenderWindow in GenericRenderWindow?](https://discourse.vtk.org/t/vtk-js-how-to-replace-getapispecificrenderwindow-in-genericrenderwindow/9146)

<div class="topic-metadata">

**Author:** [@Writch65](https://discourse.vtk.org/u/Writch65)\
**Replies:** 1\
**Last updated:** [August 15, 2022, 3:57pm UTC](https://discourse.vtk.org/t/vtk-js-how-to-replace-getapispecificrenderwindow-in-genericrenderwindow/9146 "2022-08-15T15:57:42Z")

</div>

Hello! I consult the example ImageCroppingWidget, and an API of FullScreenRenderWindow called getApiSpecificRenderWindow is used. Now I want to reappear this example in GenericRenderWindow, but there is no such API. My…

---

## [Render text to RenderWindow or vtkUnsignedCharArray directly](https://discourse.vtk.org/t/render-text-to-renderwindow-or-vtkunsignedchararray-directly/9143)

<div class="topic-metadata">

**Author:** [@rdbrn](https://discourse.vtk.org/u/rdbrn)\
**Replies:** 0\
**Last updated:** [August 13, 2022, 6:28pm UTC](https://discourse.vtk.org/t/render-text-to-renderwindow-or-vtkunsignedchararray-directly/9143 "2022-08-13T18:28:33Z")

</div>

I’m making an interactive measuring tool for an interactor. The interactor draws a line between the two points by setting the pixel values in a vtkUnsignedCharArray (in very much the same way as the rubberband zoom) Th…

---

## [Transport mesh from .vtu file to Blender](https://discourse.vtk.org/t/transport-mesh-from-vtu-file-to-blender/9072)

<div class="topic-metadata">

**Author:** [@Manuel\_Prova](https://discourse.vtk.org/u/Manuel_Prova)\
**Replies:** 1\
**Last updated:** [August 13, 2022, 6:07pm UTC](https://discourse.vtk.org/t/transport-mesh-from-vtu-file-to-blender/9072 "2022-08-13T18:07:57Z")

</div>

I’m trying to transport a mesh from a .vtu file to blender, i’m able to transport the vertices but i’m having problems with faces. What i need is the ids of the vertices of every face so i can create the mesh in blender.…

---

## [Weird rendering that some actors become boxes automatically when mouse down.](https://discourse.vtk.org/t/weird-rendering-that-some-actors-become-boxes-automatically-when-mouse-down/9129)

<div class="topic-metadata">

**Author:** [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)\
**Replies:** 3\
**Last updated:** [August 12, 2022, 2:00pm UTC](https://discourse.vtk.org/t/weird-rendering-that-some-actors-become-boxes-automatically-when-mouse-down/9129 "2022-08-12T14:00:10Z")

</div>

As you can see in the video,some actors become boxes and when mouse down,and everything recovers normally after mouse up.Both happends automatically.I haven’t add any code to do these. These happen more o…

---

## [Error while constructing cell map: Invalid cell size for lines.](https://discourse.vtk.org/t/error-while-constructing-cell-map-invalid-cell-size-for-lines/9137)

<div class="topic-metadata">

**Author:** [@Dwight98](https://discourse.vtk.org/u/Dwight98)\
**Replies:** 0\
**Last updated:** [August 12, 2022, 9:37am UTC](https://discourse.vtk.org/t/error-while-constructing-cell-map-invalid-cell-size-for-lines/9137 "2022-08-12T09:37:42Z")

</div>

The image above is two polygons I created with Geomagic studio, and I saved them separately as files in obj format，I then use the vtkBooleanOperationPolyDataFilter() method in vtk.py to do Intersection operations.Howe…

---

## [libf3d API Public Review !](https://discourse.vtk.org/t/libf3d-api-public-review/9130)

<div class="topic-metadata">

**Author:** [@mwestphal](https://discourse.vtk.org/u/mwestphal)\
**Replies:** 0\
**Last updated:** [August 11, 2022, 10:49am UTC](https://discourse.vtk.org/t/libf3d-api-public-review/9130 "2022-08-11T10:49:05Z")

</div>

libf3d, a simple C++/Python BSD licensed library to render meshes, created by VTK developpers and using VTK extensively, is doing a public review of its API ! It means that we are looking for anyone with a background in…

---

## [Visualize Cutplane Edges](https://discourse.vtk.org/t/visualize-cutplane-edges/9121)

<div class="topic-metadata">

**Author:** [@Jan](https://discourse.vtk.org/u/Jan)\
**Replies:** 2\
**Last updated:** [August 10, 2022, 5:39pm UTC](https://discourse.vtk.org/t/visualize-cutplane-edges/9121 "2022-08-10T17:39:24Z")

</div>

Hello everyone, I am currently finetuning the visualization of a vector field cut plane. What I try to accomplish is the visualization of the cut plane’s edges and only the edges. So far, I tried to visualize the cut pl…

---

## [No support for quarternion in vtk.js?](https://discourse.vtk.org/t/no-support-for-quarternion-in-vtk-js/9125)

<div class="topic-metadata">

**Author:** [@logicabrity](https://discourse.vtk.org/u/logicabrity)\
**Replies:** 1\
**Last updated:** [August 10, 2022, 2:13pm UTC](https://discourse.vtk.org/t/no-support-for-quarternion-in-vtk-js/9125 "2022-08-10T14:13:40Z")

</div>

Dear forum, I have a VTP file that I am visualising with the Glyph3DMapper and glyphs. The glyphs are oriented using quarternions, with I can select and see in Paraview without problems. In VTK.js however there seems t…

---

## [How to get boundary surface mesh from tetrahedral volume?](https://discourse.vtk.org/t/how-to-get-boundary-surface-mesh-from-tetrahedral-volume/9109)

<div class="topic-metadata">

**Author:** [@JayEspi](https://discourse.vtk.org/u/JayEspi)\
**Replies:** 6\
**Last updated:** [August 9, 2022, 3:14pm UTC](https://discourse.vtk.org/t/how-to-get-boundary-surface-mesh-from-tetrahedral-volume/9109 "2022-08-09T15:14:57Z")

</div>

Setup: VTK v9.2, Linux, Python v3.9 I have an object defined by a tetrahedral mesh. I would like to extract the surface mesh (triangles) of this volume. When I use vtkGeometryFilter, I get polydata where the 4 faces of…

---

## [How to pick a cell from vtkPolyData by coordinate](https://discourse.vtk.org/t/how-to-pick-a-cell-from-vtkpolydata-by-coordinate/9096)

<div class="topic-metadata">

**Author:** [@rockydut](https://discourse.vtk.org/u/rockydut)\
**Replies:** 6\
**Last updated:** [August 9, 2022, 2:21pm UTC](https://discourse.vtk.org/t/how-to-pick-a-cell-from-vtkpolydata-by-coordinate/9096 "2022-08-09T14:21:55Z")

</div>

Dear all, I extract edges from a polydata firstly, as showing below: vtkNew edges; edges-\>SetInputData(data); edges-\>Update(); vtkPolyData \*poly = edges-\>GetOutput(); Then I want to pick the corresponding line close…

---

## [vtkXdmfReader select grid in Timeseries](https://discourse.vtk.org/t/vtkxdmfreader-select-grid-in-timeseries/9116)

<div class="topic-metadata">

**Author:** [@RemDelaporteMathurin](https://discourse.vtk.org/u/RemDelaporteMathurin)\
**Replies:** 0\
**Last updated:** [August 9, 2022, 11:19am UTC](https://discourse.vtk.org/t/vtkxdmfreader-select-grid-in-timeseries/9116 "2022-08-09T11:19:57Z")

</div>

Hi all, I am rather new to VTK and especially the XDMF reader. I’m trying to read a file that contains 5 timesteps. I was able to read it with vtkXdmfReader but I would like to know how to access the data for a given …

---

## [How to Crop vtkImageData using vtkBoxWidget that can living inside or outside?](https://discourse.vtk.org/t/how-to-crop-vtkimagedata-using-vtkboxwidget-that-can-living-inside-or-outside/9115)

<div class="topic-metadata">

**Author:** [@wulicheng](https://discourse.vtk.org/u/wulicheng)\
**Replies:** 0\
**Last updated:** [August 9, 2022, 11:18am UTC](https://discourse.vtk.org/t/how-to-crop-vtkimagedata-using-vtkboxwidget-that-can-living-inside-or-outside/9115 "2022-08-09T11:18:03Z")

</div>

I cropped the vtkImageData using vtkBoxWidget (inside), but now I want to crop it outside. How can i do? auto clippingPlanes = vtkSmartPointer::New(); clip\_box\_widget\_-\>GetPlanes(clippingPlanes); double \*bounds = clip…

---

## [A user-friendly way of picking lines](https://discourse.vtk.org/t/a-user-friendly-way-of-picking-lines/9104)

<div class="topic-metadata">

**Author:** [@rdbrn](https://discourse.vtk.org/u/rdbrn)\
**Replies:** 1\
**Last updated:** [August 9, 2022, 7:55am UTC](https://discourse.vtk.org/t/a-user-friendly-way-of-picking-lines/9104 "2022-08-09T07:55:01Z")

</div>

I’m looking for a user friendly way to pick lines using the mouse. Problem with lines is that they are thin, so difficult to hit exactly with the mouse. I experimented with vtkAreaPicker to pick an area instead of a po…

---

## [Holographic Scenes for pyramid hologram](https://discourse.vtk.org/t/holographic-scenes-for-pyramid-hologram/9114)

<div class="topic-metadata">

**Author:** [@Kamil](https://discourse.vtk.org/u/Kamil)\
**Replies:** 0\
**Last updated:** [August 9, 2022, 7:35am UTC](https://discourse.vtk.org/t/holographic-scenes-for-pyramid-hologram/9114 "2022-08-09T07:35:50Z")

</div>

Hi, Is it possible to create holographic scenes for pyramid hologram? Somebody tried something like that? Thanks Kamil

---

## [Using VTK in my C# .NET application for non-commercial purposes.](https://discourse.vtk.org/t/using-vtk-in-my-c-net-application-for-non-commercial-purposes/9076)

<div class="topic-metadata">

**Author:** [@gregthom992](https://discourse.vtk.org/u/gregthom992)\
**Replies:** 2\
**Last updated:** [August 9, 2022, 12:38am UTC](https://discourse.vtk.org/t/using-vtk-in-my-c-net-application-for-non-commercial-purposes/9076 "2022-08-09T00:38:38Z")

</div>

Hi all, How can I use the latest vtk in my .NET c# application without ActiViz .NET ? I gather ActiViz .NET is not open source anymore so what is the proper way to get VTK for my application? I am simply working in a…

---

## [vtk.js How to merge VolumeViewer with PolylineWidget](https://discourse.vtk.org/t/vtk-js-how-to-merge-volumeviewer-with-polylinewidget/9092)

<div class="topic-metadata">

**Author:** [@Writch65](https://discourse.vtk.org/u/Writch65)\
**Replies:** 2\
**Last updated:** [August 8, 2022, 4:55pm UTC](https://discourse.vtk.org/t/vtk-js-how-to-merge-volumeviewer-with-polylinewidget/9092 "2022-08-08T16:55:28Z")

</div>

Hello! I am trying to merge the example VolumeViewer and PolyLineWidget, but there is something wrong. I add the necessary PolylineWidget code in function “createViewer”. When I added widgetManager.setRenderer(rendere…

---

## [Deletes the selected widget](https://discourse.vtk.org/t/deletes-the-selected-widget/9052)

<div class="topic-metadata">

**Author:** [@haoxl3](https://discourse.vtk.org/u/haoxl3)\
**Replies:** 3\
**Last updated:** [August 8, 2022, 4:51pm UTC](https://discourse.vtk.org/t/deletes-the-selected-widget/9052 "2022-08-08T16:51:04Z")

</div>

When there are many widgets on the page and I want to delete the selected widget, is there any way to get the selected widget? my code: const delHandle = () =\> { const selectedIndex = ?;// selected widget …

---

## [How to write a custom function that uses VTK C++ and then use it in Python?](https://discourse.vtk.org/t/how-to-write-a-custom-function-that-uses-vtk-c-and-then-use-it-in-python/9030)

<div class="topic-metadata">

**Author:** [@joaomlap](https://discourse.vtk.org/u/joaomlap)\
**Replies:** 6\
**Last updated:** [August 8, 2022, 1:31pm UTC](https://discourse.vtk.org/t/how-to-write-a-custom-function-that-uses-vtk-c-and-then-use-it-in-python/9030 "2022-08-08T13:31:53Z")

</div>

What is the process to write a custom function using VTK in C++ (it’s a time critical function) and then use it’s bindings in Python? I think I saw some information about this in the past but can’t seem to find it again…

---

## [? How to add points of interest (Hotspots) to VTK](https://discourse.vtk.org/t/how-to-add-points-of-interest-hotspots-to-vtk/9106)

<div class="topic-metadata">

**Author:** [@Hamza](https://discourse.vtk.org/u/Hamza)\
**Replies:** 3\
**Last updated:** [August 8, 2022, 1:28pm UTC](https://discourse.vtk.org/t/how-to-add-points-of-interest-hotspots-to-vtk/9106 "2022-08-08T13:28:22Z")

</div>

I would like to add some logic to my 3d models, by clicking on some colored balls that are scattered around the model. The functionalities should include: Zooming to a certain section of the model Displaying some infor…

---

## [How to get the section area?](https://discourse.vtk.org/t/how-to-get-the-section-area/9078)

<div class="topic-metadata">

**Author:** [@jumbojing](https://discourse.vtk.org/u/jumbojing)\
**Replies:** 2\
**Last updated:** [August 8, 2022, 12:16pm UTC](https://discourse.vtk.org/t/how-to-get-the-section-area/9078 "2022-08-08T12:16:30Z")

</div>

I want to get the section area of the Lumbar pedicle. I had got a the point cloud the section from numpy arrays, and then use :point\_down: code: def areaSect(points): "" verts = vtk.vtkPoints() p…

---

## [AlignTwoPolyDatas Example](https://discourse.vtk.org/t/aligntwopolydatas-example/1103)

<div class="topic-metadata">

**Author:** [@lorensen](https://discourse.vtk.org/u/lorensen)\
**Replies:** 11\
**Last updated:** [August 8, 2022, 11:25am UTC](https://discourse.vtk.org/t/aligntwopolydatas-example/1103 "2022-08-08T11:25:07Z")

</div>

Folks, Recently, a user wanted to align two models from a longitudinal study. He did not have access to the original image data. If he had the images, he could have used 3DSlicer or Elastix. They both have state-of-the-…

---

## [QtQuick scenegraph is using an unsupported graphics API: 4.](https://discourse.vtk.org/t/qtquick-scenegraph-is-using-an-unsupported-graphics-api-4/9095)

<div class="topic-metadata">

**Author:** [@claude](https://discourse.vtk.org/u/claude)\
**Replies:** 2\
**Last updated:** [August 8, 2022, 3:17am UTC](https://discourse.vtk.org/t/qtquick-scenegraph-is-using-an-unsupported-graphics-api-4/9095 "2022-08-08T03:17:49Z")

</div>

Hi everyone, I’m using vtk-QtQuick component(QQuickVTKRenderItem,QQuickVTKRenderWindow)，and the following problem occurs when I try to build it: Version : QT6.2 , vtk9.2.0 rc2. What can i do to solve this problem? …

---

## [multi vtkVolume rendering problem](https://discourse.vtk.org/t/multi-vtkvolume-rendering-problem/5060)

<div class="topic-metadata">

**Author:** [@yuhuimoon](https://discourse.vtk.org/u/yuhuimoon)\
**Replies:** 7\
**Last updated:** [August 8, 2022, 3:11am UTC](https://discourse.vtk.org/t/multi-vtkvolume-rendering-problem/5060 "2022-08-08T03:11:44Z")

</div>

Hi, vtk experts. My app can render a vtkVolume from a CT Image, which contain brain vessel and bone. As the first 2 pictures shows, the vessel and bone can be rendered correctly alone. If the two volumes have been rende…

---

## [Intersection of the vtkImageData with arbitrary box](https://discourse.vtk.org/t/intersection-of-the-vtkimagedata-with-arbitrary-box/9056)

<div class="topic-metadata">

**Author:** [@Leo\_Abalckin](https://discourse.vtk.org/u/Leo_Abalckin)\
**Replies:** 9\
**Last updated:** [August 7, 2022, 9:24pm UTC](https://discourse.vtk.org/t/intersection-of-the-vtkimagedata-with-arbitrary-box/9056 "2022-08-07T21:24:32Z")

</div>

I have some 3D vtkImageData and want to find a “subvolume” (I’m not sure I use this term in the right way here) that is intersection of this vtkImageData and arbitrary box. This box can be translated and rotated. I wonde…

---

## [multi-vtkvolume-rendering-problem](https://discourse.vtk.org/t/multi-vtkvolume-rendering-problem/9099)

<div class="topic-metadata">

**Author:** [@Dawid](https://discourse.vtk.org/u/Dawid)\
**Replies:** 3\
**Last updated:** [August 7, 2022, 5:02pm UTC](https://discourse.vtk.org/t/multi-vtkvolume-rendering-problem/9099 "2022-08-07T17:02:38Z")

</div>

Hi everybody, Recently I researched multi-volume rendering. I use vtkGPUVolumeRayCastMapper in VTK 9.1.0. I use a multi-volume rendering method to separate the nodules and other volume . In the following figure, I us…

---

## [Build .NET wrapper with latest VTK version](https://discourse.vtk.org/t/build-net-wrapper-with-latest-vtk-version/4199)

<div class="topic-metadata">

**Author:** [@learn\_forever](https://discourse.vtk.org/u/learn_forever)\
**Replies:** 2\
**Last updated:** [August 5, 2022, 2:13pm UTC](https://discourse.vtk.org/t/build-net-wrapper-with-latest-vtk-version/4199 "2022-08-05T14:13:01Z")

</div>

Hi Experts, Is there any possibility to build .net wrapper with latest VTK version by following the instruction? https://vtk.org/Wiki/VTK/CSharp/ActiViz/Build Thanks a lot.

---

## [VTK Examples - Qt addition and updates](https://discourse.vtk.org/t/vtk-examples-qt-addition-and-updates/9077)

<div class="topic-metadata">

**Author:** [@amaclean](https://discourse.vtk.org/u/amaclean)\
**Replies:** 4\
**Last updated:** [August 5, 2022, 9:09am UTC](https://discourse.vtk.org/t/vtk-examples-qt-addition-and-updates/9077 "2022-08-05T09:09:15Z")

</div>

A new addition to the Qt examples is Qt/MinimalQtVTKApp thanks to Julian Fausty. I also noticed that four of the existing Qt examples used the same boring image, a tomato coloured sphere on a blue background. These exam…

---

## [Custom labels on VTKHexahedrons](https://discourse.vtk.org/t/custom-labels-on-vtkhexahedrons/9084)

<div class="topic-metadata">

**Author:** [@ujjwala](https://discourse.vtk.org/u/ujjwala)\
**Replies:** 0\
**Last updated:** [August 4, 2022, 8:35pm UTC](https://discourse.vtk.org/t/custom-labels-on-vtkhexahedrons/9084 "2022-08-04T20:35:23Z")

</div>

Hi, I’m new to VTK. I’m writing a QTWidget which displays thousands of VTKHexahedrons stacked on each other using VTKUnstructuredGrid. I need to label the “visible” faces of each VTKHexahedron with a custom label. I lo…

---

## [Load HDF5 file](https://discourse.vtk.org/t/load-hdf5-file/9082)

<div class="topic-metadata">

**Author:** [@Uriel\_Dardik](https://discourse.vtk.org/u/Uriel_Dardik)\
**Replies:** 3\
**Last updated:** [August 4, 2022, 3:30pm UTC](https://discourse.vtk.org/t/load-hdf5-file/9082 "2022-08-04T15:30:32Z")

</div>

I understand how to load a .vti object in vtk.js, it goes something like this: const reader = vtk.IO.Core.vtkHttpDataSetReader.newInstance({fetchGzip: true}); mapper.setInputConnection(reader.getOutputPort()); reader …

---

## [what is the correct way of loading a nifti image with vtk.js ?](https://discourse.vtk.org/t/what-is-the-correct-way-of-loading-a-nifti-image-with-vtk-js/9075)

<div class="topic-metadata">

**Author:** [@abdelghani-amz](https://discourse.vtk.org/u/abdelghani-amz)\
**Replies:** 4\
**Last updated:** [August 4, 2022, 3:01pm UTC](https://discourse.vtk.org/t/what-is-the-correct-way-of-loading-a-nifti-image-with-vtk-js/9075 "2022-08-04T15:01:50Z")

</div>

i didnt find much documentation on ITKImageReader and this piece of code i improvised keeps giving me an “Invalid or missing input” error vtkITKImageReader.setReadImageArrayBufferFromITK(readImageArrayBuffer) const nift…

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

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