# Latest

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

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

**Page:** 167

---

## [Iterate over the faces of an UnstructuredGrid](https://discourse.vtk.org/t/iterate-over-the-faces-of-an-unstructuredgrid/2184)

<div class="topic-metadata">

**Author:** [@balborian](https://discourse.vtk.org/u/balborian)\
**Replies:** 2\
**Last updated:** [August 17, 2021, 4:02pm UTC](https://discourse.vtk.org/t/iterate-over-the-faces-of-an-unstructuredgrid/2184 "2021-08-17T16:02:00Z")

</div>

What’s the most efficient way to iterate over all the faces of an UnstructuredGrid? I know I can iterate over the cells first and then get its faces for each cell, but this will lead me to visit the same face two times (…

---

## [Extract part of a vtkPolyData based on vertices ids](https://discourse.vtk.org/t/extract-part-of-a-vtkpolydata-based-on-vertices-ids/6399)

<div class="topic-metadata">

**Author:** [@Manuel](https://discourse.vtk.org/u/Manuel)\
**Replies:** 3\
**Last updated:** [August 17, 2021, 1:57pm UTC](https://discourse.vtk.org/t/extract-part-of-a-vtkpolydata-based-on-vertices-ids/6399 "2021-08-17T13:57:16Z")

</div>

Dear All, I am currently looking for the best way to extract a subpart of a vtkPolyData from known vertices ids on this vtkPolyData. The input of the function should be a vtkPolyData and a list of vtkIdType and the outp…

---

## [how to draw line on imagePlanewidget](https://discourse.vtk.org/t/how-to-draw-line-on-imageplanewidget/6395)

<div class="topic-metadata">

**Author:** [@eton](https://discourse.vtk.org/u/eton)\
**Replies:** 1\
**Last updated:** [August 17, 2021, 10:01am UTC](https://discourse.vtk.org/t/how-to-draw-line-on-imageplanewidget/6395 "2021-08-17T10:01:29Z")

</div>

Hi, every. I try to use ImagePlaneWidget to create a MPR view. but when I want to draw a line to mark the other plane positon I failed. The effect I want to reach is in the image. Any One has some advice? PS: as not …

---

## [vtkTextWidget](https://discourse.vtk.org/t/vtktextwidget/6394)

<div class="topic-metadata">

**Author:** [@Erikevin](https://discourse.vtk.org/u/Erikevin)\
**Replies:** 0\
**Last updated:** [August 17, 2021, 2:03am UTC](https://discourse.vtk.org/t/vtktextwidget/6394 "2021-08-17T02:03:42Z")

</div>

Hi masters， I want to realize these effects below: 1. set border line color and style for vtkTextWidget; 2. set background color for vtkTextWidget; for No.2 item,i’ve tried calling vtkActorText\*-\>GetTextProperty()-\>S…

---

## [vtk.js data structure please explain please help](https://discourse.vtk.org/t/vtk-js-data-structure-please-explain-please-help/6376)

<div class="topic-metadata">

**Author:** [@gzt036](https://discourse.vtk.org/u/gzt036)\
**Replies:** 4\
**Last updated:** [August 16, 2021, 4:10pm UTC](https://discourse.vtk.org/t/vtk-js-data-structure-please-explain-please-help/6376 "2021-08-16T16:10:34Z")

</div>

Please explain the vtk.js data structure, expecially how ‘model’ is used. For example, const range = imageData.getPointData().getScalars().getRange(); if you go through debugger, you can see imageData is a bunch of usel…

---

## [About MultiSliceImageMapper](https://discourse.vtk.org/t/about-multisliceimagemapper/6368)

<div class="topic-metadata">

**Author:** [@zuolx](https://discourse.vtk.org/u/zuolx)\
**Replies:** 1\
**Last updated:** [August 16, 2021, 4:08pm UTC](https://discourse.vtk.org/t/about-multisliceimagemapper/6368 "2021-08-16T16:08:25Z")

</div>

I want to render a obj file in center of MultiSliceImageMapper, please tell me how to do? I have tried to set obj file’s actor position by using the data of the vti file’s data, but it is not satisfied // The vti fi…

---

## [Problem installing mayavi](https://discourse.vtk.org/t/problem-installing-mayavi/6382)

<div class="topic-metadata">

**Author:** [@KitCarson03](https://discourse.vtk.org/u/KitCarson03)\
**Replies:** 1\
**Last updated:** [August 16, 2021, 10:41am UTC](https://discourse.vtk.org/t/problem-installing-mayavi/6382 "2021-08-16T10:41:38Z")

</div>

Hi, i’m having some issues with mayavi installation in windows 10, python 3.8.9, mingw32 compiler the installation stops at running build message all the requirements are satisfied

---

## [How can I display the vtk 3d volume rendering results onscreen in a remote connection with workstation(X11)?](https://discourse.vtk.org/t/how-can-i-display-the-vtk-3d-volume-rendering-results-onscreen-in-a-remote-connection-with-workstation-x11/6356)

<div class="topic-metadata">

**Author:** [@cspark](https://discourse.vtk.org/u/cspark)\
**Replies:** 4\
**Last updated:** [August 15, 2021, 8:17pm UTC](https://discourse.vtk.org/t/how-can-i-display-the-vtk-3d-volume-rendering-results-onscreen-in-a-remote-connection-with-workstation-x11/6356 "2021-08-15T20:17:03Z")

</div>

Hi all. I’m newbee want to use vtk. I think it’s a really good tool for 3d volume rendering, so I’m studying to use it. I have a problem using it, so I leave a question. I use X11 to connect workstation remotely from …

---

## [DataArray example](https://discourse.vtk.org/t/dataarray-example/6000)

<div class="topic-metadata">

**Author:** [@Konstantin.U](https://discourse.vtk.org/u/Konstantin.U)\
**Replies:** 24\
**Last updated:** [August 14, 2021, 9:55pm UTC](https://discourse.vtk.org/t/dataarray-example/6000 "2021-08-14T21:55:59Z")

</div>

A seemingly basic question, that I could not find an example for: I am trying to visualize finite-element analysis results in which I have PolyData (triangular elements) and nodal scalar output. I can successfully creat…

---

## [Problem in Dynamic Library](https://discourse.vtk.org/t/problem-in-dynamic-library/6365)

<div class="topic-metadata">

**Author:** [@Luis\_Carlos\_Carneiro](https://discourse.vtk.org/u/Luis_Carlos_Carneiro)\
**Replies:** 22\
**Last updated:** [August 14, 2021, 5:19am UTC](https://discourse.vtk.org/t/problem-in-dynamic-library/6365 "2021-08-14T05:19:46Z")

</div>

Dear all, I am compiling a dynamic library of my own (testlib.so) When I load it, it gives the following error OSError: .//server//vtkpython//testlib.so: undefined symbol: \_ZN26vtkImageConnectivityFilter3NewEv It not…

---

## [Error while adding missing .ddl files to pvpython](https://discourse.vtk.org/t/error-while-adding-missing-ddl-files-to-pvpython/6370)

<div class="topic-metadata">

**Author:** [@BadCookie](https://discourse.vtk.org/u/BadCookie)\
**Replies:** 5\
**Last updated:** [August 14, 2021, 4:18am UTC](https://discourse.vtk.org/t/error-while-adding-missing-ddl-files-to-pvpython/6370 "2021-08-14T04:18:33Z")

</div>

Hi all, As an example, I’m using vtk as a server, paraview web as a client and running them with pvpython of Paraview 5.9.0.I want to be able to use vtkImageViewer2. For some reason, vtkInteractionImage is not included …

---

## [Getting VTK animations to run in VR](https://discourse.vtk.org/t/getting-vtk-animations-to-run-in-vr/6374)

<div class="topic-metadata">

**Author:** [@agashea](https://discourse.vtk.org/u/agashea)\
**Replies:** 0\
**Last updated:** [August 14, 2021, 1:37am UTC](https://discourse.vtk.org/t/getting-vtk-animations-to-run-in-vr/6374 "2021-08-14T01:37:53Z")

</div>

Hi, I currently have made a VTK animation. To do so, I wrote a .cxx file that reads in a set of .vtp files and adds them to a renderer, and then toggles their visibility to create an animation. I used CMake to configure …

---

## [VTK Remote Server with C++](https://discourse.vtk.org/t/vtk-remote-server-with-c/6218)

<div class="topic-metadata">

**Author:** [@PWeissenbacher](https://discourse.vtk.org/u/PWeissenbacher)\
**Replies:** 28\
**Last updated:** [August 13, 2021, 4:33pm UTC](https://discourse.vtk.org/t/vtk-remote-server-with-c/6218 "2021-08-13T16:33:49Z")

</div>

Hello. I’m currently developing a web platform utilizing a simple variation of “remote” VTK rendering for volume visualiziation/interaction (C#) with rather complex VTK algorithms (C++) to achieve the goals of my proje…

---

## [vtkImageData 3D cropping](https://discourse.vtk.org/t/vtkimagedata-3d-cropping/6361)

<div class="topic-metadata">

**Author:** [@Hanxin\_Hua](https://discourse.vtk.org/u/Hanxin_Hua)\
**Replies:** 6\
**Last updated:** [August 13, 2021, 1:32pm UTC](https://discourse.vtk.org/t/vtkimagedata-3d-cropping/6361 "2021-08-13T13:32:40Z")

</div>

Hi, I’m having a trouble of vtkImageData. Basically, I used vtkImageData to read and store the DICOM. And use vtkVolume to display this image. See the pic below. And now I want to define a 3D polygon (say Three-dime…

---

## [vtk.js complex user interaction on 3D polyData](https://discourse.vtk.org/t/vtk-js-complex-user-interaction-on-3d-polydata/6287)

<div class="topic-metadata">

**Author:** [@siebe](https://discourse.vtk.org/u/siebe)\
**Replies:** 11\
**Last updated:** [August 13, 2021, 7:32am UTC](https://discourse.vtk.org/t/vtk-js-complex-user-interaction-on-3d-polydata/6287 "2021-08-13T07:32:52Z")

</div>

Dear vtk js, I’m about to start building a tool for segmentation of mesh data, but I’m not sure what the best way forward would be. Could you perhaps point me towards a (high-level) approach? Also, if it would turn out …

---

## [vtkInteractorStyleImage do not work in QVTKWidget](https://discourse.vtk.org/t/vtkinteractorstyleimage-do-not-work-in-qvtkwidget/6358)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 2\
**Last updated:** [August 13, 2021, 5:24am UTC](https://discourse.vtk.org/t/vtkinteractorstyleimage-do-not-work-in-qvtkwidget/6358 "2021-08-13T05:24:06Z")

</div>

I find vtkInteractorStyleImage do not work in QVTKWidget. For example, the following code: import vtk from vtk.util.numpy\_support import vtk\_to\_numpy, numpy\_to\_vtk import numpy as np def numpyToVTK(data): if len(d…

---

## [Window passed, Linux failed with "SetArray argument 1: incorrect buffer type, expected q but received l"](https://discourse.vtk.org/t/window-passed-linux-failed-with-setarray-argument-1-incorrect-buffer-type-expected-q-but-received-l/6364)

<div class="topic-metadata">

**Author:** [@Hongying\_Feng](https://discourse.vtk.org/u/Hongying_Feng)\
**Replies:** 2\
**Last updated:** [August 13, 2021, 1:25am UTC](https://discourse.vtk.org/t/window-passed-linux-failed-with-setarray-argument-1-incorrect-buffer-type-expected-q-but-received-l/6364 "2021-08-13T01:25:13Z")

</div>

I tried to run such python codes: import vtk import numpy as np arraySize = 81 lineArray = np.array(\[ 12, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 0, 12, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 11, 12, 22, 23, 24, 25,…

---

## [How to convert dicom series to vti file using vtk.js](https://discourse.vtk.org/t/how-to-convert-dicom-series-to-vti-file-using-vtk-js/3966)

<div class="topic-metadata">

**Author:** [@bang98.2016](https://discourse.vtk.org/u/bang98.2016)\
**Replies:** 8\
**Last updated:** [August 12, 2021, 7:26pm UTC](https://discourse.vtk.org/t/how-to-convert-dicom-series-to-vti-file-using-vtk-js/3966 "2021-08-12T19:26:27Z")

</div>

I’m using readDICOMSeries to read a series .dcm image, but it’s very slow to load 500 .dcm image on https://kitware.github.io/itk-vtk-viewer/app/ So that I want to convert series .dcm image to .vti Thanks in advance fo…

---

## [How to Compile VTK-9.0.20210224 with TBB into webassembly](https://discourse.vtk.org/t/how-to-compile-vtk-9-0-20210224-with-tbb-into-webassembly/6352)

<div class="topic-metadata">

**Author:** [@reichtiger](https://discourse.vtk.org/u/reichtiger)\
**Replies:** 2\
**Last updated:** [August 12, 2021, 8:53am UTC](https://discourse.vtk.org/t/how-to-compile-vtk-9-0-20210224-with-tbb-into-webassembly/6352 "2021-08-12T08:53:56Z")

</div>

Hi, all I have compiled VTK-9.0.20210224 as lib and it worked well with my project. Now the question is , how can I use TBB or OpenMP for multithreading in web page ? I have tested on win 10 + VTK+TBB it is all OK. dir…

---

## [Correct way to update a vtkImageData and refresh the render window (renderWindow.Render() not working)](https://discourse.vtk.org/t/correct-way-to-update-a-vtkimagedata-and-refresh-the-render-window-renderwindow-render-not-working/6359)

<div class="topic-metadata">

**Author:** [@bva99](https://discourse.vtk.org/u/bva99)\
**Replies:** 15\
**Last updated:** [August 11, 2021, 11:40pm UTC](https://discourse.vtk.org/t/correct-way-to-update-a-vtkimagedata-and-refresh-the-render-window-renderwindow-render-not-working/6359 "2021-08-11T23:40:50Z")

</div>

I have created a class that encapsulates the creation of: a vtkImageData referred to here as “mesh”, a lookup table, a poly data set (from vtkImageDataGeometryFilter), a mapper (using vtkPolyDataMapper), that associate…

---

## [How to blend a gray and rgb image ?](https://discourse.vtk.org/t/how-to-blend-a-gray-and-rgb-image/6357)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 2\
**Last updated:** [August 11, 2021, 11:04pm UTC](https://discourse.vtk.org/t/how-to-blend-a-gray-and-rgb-image/6357 "2021-08-11T23:04:07Z")

</div>

I want to blend a gray and rgb image. Firstly, I have a image: torgbGray = np.zeros(shape=\[256, 256\]) for i in range(256): for j in range(256): torgbGray\[i, j\] = i+j Then, I convert this gray image to a rg…

---

## [vtkWindowedSincPolyDataFilter Smoothing - Processing Script](https://discourse.vtk.org/t/vtkwindowedsincpolydatafilter-smoothing-processing-script/6346)

<div class="topic-metadata">

**Author:** [@Kyle](https://discourse.vtk.org/u/Kyle)\
**Replies:** 7\
**Last updated:** [August 11, 2021, 6:25pm UTC](https://discourse.vtk.org/t/vtkwindowedsincpolydatafilter-smoothing-processing-script/6346 "2021-08-11T18:25:08Z")

</div>

Hello, I understand that vtkWindowedSincPolyDataFilter implements Taubin smoothing on closed surfaces. I am attempting to implement a script which achieves the following: input: .nii file containing 3D segmentation lab…

---

## [Documentation on delivery protocols](https://discourse.vtk.org/t/documentation-on-delivery-protocols/2561)

<div class="topic-metadata">

**Author:** [@BotellaA](https://discourse.vtk.org/u/BotellaA)\
**Replies:** 8\
**Last updated:** [August 11, 2021, 2:43pm UTC](https://discourse.vtk.org/t/documentation-on-delivery-protocols/2561 "2021-08-11T14:43:10Z")

</div>

I am trying to use VTKWeb but I am not sure what delivery protocol should I use between vtkWebPublishImageDelivery(decode=True/False), vtkWebViewPortImageDelivery() and vtkWebViewPortGeometryDelivery(). Is there a docume…

---

## [vtkRendering issue](https://discourse.vtk.org/t/vtkrendering-issue/6326)

<div class="topic-metadata">

**Author:** [@Philip\_George](https://discourse.vtk.org/u/Philip_George)\
**Replies:** 3\
**Last updated:** [August 11, 2021, 12:51pm UTC](https://discourse.vtk.org/t/vtkrendering-issue/6326 "2021-08-11T12:51:01Z")

</div>

Hi, I have a cylindrical shell inside which a quadrilateral is located as shown in the figure. When I keep my camera on the quad and view direction as shown and render in perspective projection, I am getting a false vi…

---

## [How to make empty space in vtkPolyData?](https://discourse.vtk.org/t/how-to-make-empty-space-in-vtkpolydata/6344)

<div class="topic-metadata">

**Author:** [@11119](https://discourse.vtk.org/u/11119)\
**Replies:** 2\
**Last updated:** [August 11, 2021, 2:58am UTC](https://discourse.vtk.org/t/how-to-make-empty-space-in-vtkpolydata/6344 "2021-08-11T02:58:38Z")

</div>

I want to create an empty space in one plane. Each plane is made up of hexagons, and one plane contains the other and has a larger shape. I tried to find the difference using vtkBooleanOperationPolyData, but I couldn’t…

---

## [Mapping points on segmentation (labelmap) to points on an isosurface](https://discourse.vtk.org/t/mapping-points-on-segmentation-labelmap-to-points-on-an-isosurface/6293)

<div class="topic-metadata">

**Author:** [@vsrivastava](https://discourse.vtk.org/u/vsrivastava)\
**Replies:** 3\
**Last updated:** [August 11, 2021, 4:07am UTC](https://discourse.vtk.org/t/mapping-points-on-segmentation-labelmap-to-points-on-an-isosurface/6293 "2021-08-11T04:07:34Z")

</div>

Hello, I am trying to understand on how to use coordinates, transforms using vtk to develop an application. For this I am trying to create an isosurface from labelmaps (Nrrd format) using Marching Cubes, and trying to m…

---

## [gitlab.kitware.com expected downtime August 10, 5:30PM ET](https://discourse.vtk.org/t/gitlab-kitware-com-expected-downtime-august-10-5-30pm-et/6349)

<div class="topic-metadata">

**Author:** [@cory.quammen](https://discourse.vtk.org/u/cory.quammen)\
**Replies:** 1\
**Last updated:** [August 10, 2021, 11:00pm UTC](https://discourse.vtk.org/t/gitlab-kitware-com-expected-downtime-august-10-5-30pm-et/6349 "2021-08-10T23:00:23Z")

</div>

gitlab.kitware.com will be offline for maintenance starting at 5:30pm ET today, August 10, 2021. A process that takes an unknown amount of time (at least a few hours) needs to complete before it will be back online.

---

## [Issues building VTK with TK bindings](https://discourse.vtk.org/t/issues-building-vtk-with-tk-bindings/3506)

<div class="topic-metadata">

**Author:** [@johansh](https://discourse.vtk.org/u/johansh)\
**Replies:** 9\
**Last updated:** [August 10, 2021, 2:48pm UTC](https://discourse.vtk.org/t/issues-building-vtk-with-tk-bindings/3506 "2021-08-10T14:48:15Z")

</div>

I have been trying for hours now to set up and build VTK with the TK integration without success. I’m still stuck on configuring Cmake with the following warnings and issues. I’m building on Windows (10) with TDM-MinGW …

---

## [problem about LookingGlassVTKModule](https://discourse.vtk.org/t/problem-about-lookingglassvtkmodule/6339)

<div class="topic-metadata">

**Author:** [@ZUNTING\_HU](https://discourse.vtk.org/u/ZUNTING_HU)\
**Replies:** 0\
**Last updated:** [August 10, 2021, 1:11am UTC](https://discourse.vtk.org/t/problem-about-lookingglassvtkmodule/6339 "2021-08-10T01:11:01Z")

</div>

Hi~ I am using LookingGlassVTKModule these days. I build vtk with LookingGlassVTKModule successfully. But, when I debug the test project, the function “vtkRegressionTestImage(renderWindow)” always return vtkRegressionTe…

---

## [Python 2 deprecation?](https://discourse.vtk.org/t/python-2-deprecation/5833)

<div class="topic-metadata">

**Author:** [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)\
**Replies:** 3\
**Last updated:** [August 9, 2021, 4:36pm UTC](https://discourse.vtk.org/t/python-2-deprecation/5833 "2021-08-09T16:36:13Z")

</div>

I’ve opened an MR to deprecate Python2 support. Any objections? We can remove it in the VTK release after the next one.

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

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