# Latest

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

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

**Page:** 147

---

## [QVTKOpenGLNativeWidget requires a \`vtkGenericOpenGLRenderWindow\`. \` vtkWin32OpenGLRenderWindow \` is not supported.](https://discourse.vtk.org/t/qvtkopenglnativewidget-requires-a-vtkgenericopenglrenderwindow-vtkwin32openglrenderwindow-is-not-supported/4127)

<div class="topic-metadata">

**Author:** [@giri\_lakshman](https://discourse.vtk.org/u/giri_lakshman)\
**Replies:** 17\
**Last updated:** [January 19, 2022, 12:04pm UTC](https://discourse.vtk.org/t/qvtkopenglnativewidget-requires-a-vtkgenericopenglrenderwindow-vtkwin32openglrenderwindow-is-not-supported/4127 "2022-01-19T12:04:31Z")

</div>

Hi, I am using Qt 5.15.0 framework and my VTK version is 9.0. I am new to VTK and I am working on reading the DICOM image application in Qt framework using VTK. The application is showing the DICOM image in a separate…

---

## [Does vtkRenderer consider the direction of vtkImageData?](https://discourse.vtk.org/t/does-vtkrenderer-consider-the-direction-of-vtkimagedata/5949)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 8\
**Last updated:** [January 19, 2022, 8:45am UTC](https://discourse.vtk.org/t/does-vtkrenderer-consider-the-direction-of-vtkimagedata/5949 "2022-01-19T08:45:21Z")

</div>

I want to show a image with vtkImageActor, and there is no other prop. I hope the image is shown in the center of screen, so I apply ResetCamera. However, the shown image is strange: But the image should be: And th…

---

## [About vtkbool remote compile for python](https://discourse.vtk.org/t/about-vtkbool-remote-compile-for-python/7662)

<div class="topic-metadata">

**Author:** [@timeanddoctor](https://discourse.vtk.org/u/timeanddoctor)\
**Replies:** 6\
**Last updated:** [January 19, 2022, 12:33am UTC](https://discourse.vtk.org/t/about-vtkbool-remote-compile-for-python/7662 "2022-01-19T00:33:40Z")

</div>

I tend to compile the vtkbool from GitHub - zippy84/vtkbool: A new boolean operations filter for VTK And I add the remote D:\\vtk\\VTK-8.2.0\\Remote such as : # # A new boolean operations filter for VTK by Ronald Romer …

---

## [How to access cells from in an octant/bin in a vtkStaticCellLocator?](https://discourse.vtk.org/t/how-to-access-cells-from-in-an-octant-bin-in-a-vtkstaticcelllocator/7660)

<div class="topic-metadata">

**Author:** [@scotsman60](https://discourse.vtk.org/u/scotsman60)\
**Replies:** 10\
**Last updated:** [January 18, 2022, 10:02pm UTC](https://discourse.vtk.org/t/how-to-access-cells-from-in-an-octant-bin-in-a-vtkstaticcelllocator/7660 "2022-01-18T22:02:53Z")

</div>

Hello!!! I want to recover the list/array of cells associated with an octant/bin in a vtkStaticCellLocator, but I don’t see any access methods on the locator to get this info. What am I missing? Thanks in advance, Do…

---

## [How to access the texture on actors loaded by GLFTImporter](https://discourse.vtk.org/t/how-to-access-the-texture-on-actors-loaded-by-glftimporter/7673)

<div class="topic-metadata">

**Author:** [@xtecox](https://discourse.vtk.org/u/xtecox)\
**Replies:** 0\
**Last updated:** [January 18, 2022, 5:36pm UTC](https://discourse.vtk.org/t/how-to-access-the-texture-on-actors-loaded-by-glftimporter/7673 "2022-01-18T17:36:06Z")

</div>

Hi, im loading an glft using the glftimporter importer = vtkGLTFImporter() importer.SetFileName("/home/thiago/Downloads/factory\_3d\_model\_1/scene.gltf") importer.SetRenderWindow(renWin) importer.Update() after loadin…

---

## [Kitware's Scientific Computing Efforts in 2022](https://discourse.vtk.org/t/kitwares-scientific-computing-efforts-in-2022/7667)

<div class="topic-metadata">

**Author:** [@will.schroeder](https://discourse.vtk.org/u/will.schroeder)\
**Replies:** 0\
**Last updated:** [January 18, 2022, 11:43am UTC](https://discourse.vtk.org/t/kitwares-scientific-computing-efforts-in-2022/7667 "2022-01-18T11:43:18Z")

</div>

Here is a high-level roadmap of some efforts that Kitware’s Scientific Computing Team will be undertaking in 2022. There are some target release dates and other useful information. If you’d like to learn more, collaborat…

---

## [VTK 9.1 OpenVR Demo Render Volume Problem](https://discourse.vtk.org/t/vtk-9-1-openvr-demo-render-volume-problem/7663)

<div class="topic-metadata">

**Author:** [@zist8888](https://discourse.vtk.org/u/zist8888)\
**Replies:** 0\
**Last updated:** [January 18, 2022, 9:57am UTC](https://discourse.vtk.org/t/vtk-9-1-openvr-demo-render-volume-problem/7663 "2022-01-18T09:57:53Z")

</div>

I use VTK9.1 OpenVR demo，and render volume by Dicom data ,which can show ,but obtained Incorrect viewing angle from HTC comos device. but VTK9.0 is good!

---

## [OpenXR support in VTK](https://discourse.vtk.org/t/openxr-support-in-vtk/5516)

<div class="topic-metadata">

**Author:** [@Lfx\_Paul](https://discourse.vtk.org/u/Lfx_Paul)\
**Replies:** 14\
**Last updated:** [January 18, 2022, 9:46am UTC](https://discourse.vtk.org/t/openxr-support-in-vtk/5516 "2022-01-18T09:46:23Z")

</div>

Hi all, The development of an OpenXR module has started and the goal is, at first, to imitate the OpenVR module, and then factorize the VR code between OpenVR and OpenXR in a GenericVR module. Notice that we could also …

---

## [New -Woverloaded-virtual warning from GetDataSet()](https://discourse.vtk.org/t/new-woverloaded-virtual-warning-from-getdataset/7658)

<div class="topic-metadata">

**Author:** [@seanm](https://discourse.vtk.org/u/seanm)\
**Replies:** 3\
**Last updated:** [January 18, 2022, 9:02am UTC](https://discourse.vtk.org/t/new-woverloaded-virtual-warning-from-getdataset/7658 "2022-01-18T09:02:12Z")

</div>

Hi all, This warning started on 2022-01-15 (Saturday): VTK/Common/DataModel/vtkUniformGridAMR.h:97:19: warning: 'vtkUniformGridAMR::GetDataSet' hides overloaded virtual function \[-Woverloaded-virtual\] vtkUniformGrid\*…

---

## [How to make the three cross sections show different colors like the flowing:](https://discourse.vtk.org/t/how-to-make-the-three-cross-sections-show-different-colors-like-the-flowing/7654)

<div class="topic-metadata">

**Author:** [@wulicheng](https://discourse.vtk.org/u/wulicheng)\
**Replies:** 1\
**Last updated:** [January 18, 2022, 5:24am UTC](https://discourse.vtk.org/t/how-to-make-the-three-cross-sections-show-different-colors-like-the-flowing/7654 "2022-01-18T05:24:55Z")

</div>

this this the axiel.

---

## [How to erase label map using paint filter and paint widget](https://discourse.vtk.org/t/how-to-erase-label-map-using-paint-filter-and-paint-widget/7644)

<div class="topic-metadata">

**Author:** [@szymswiat](https://discourse.vtk.org/u/szymswiat)\
**Replies:** 2\
**Last updated:** [January 17, 2022, 7:22pm UTC](https://discourse.vtk.org/t/how-to-erase-label-map-using-paint-filter-and-paint-widget/7644 "2022-01-17T19:22:01Z")

</div>

Hello, in following example I see there is a way to paint on label map. What about erase tools? I was analyzing source of paint filter and I noticed that buffer is filled with ones e.g. in line 97. Does this mean that …

---

## [python example code for vtkPolygon.ComputeCentroid](https://discourse.vtk.org/t/python-example-code-for-vtkpolygon-computecentroid/7655)

<div class="topic-metadata">

**Author:** [@Dgg820502](https://discourse.vtk.org/u/Dgg820502)\
**Replies:** 0\
**Last updated:** [January 17, 2022, 11:30am UTC](https://discourse.vtk.org/t/python-example-code-for-vtkpolygon-computecentroid/7655 "2022-01-17T11:30:41Z")

</div>

I try to get the Centroid data for a input polydata figure. Please let me know if there is python code for realizing my idea? Many thanks in advance. David.

---

## [close the holes when using BooleanOperationPolyDataFilter](https://discourse.vtk.org/t/close-the-holes-when-using-booleanoperationpolydatafilter/7651)

<div class="topic-metadata">

**Author:** [@Hf\_Pro](https://discourse.vtk.org/u/Hf_Pro)\
**Replies:** 0\
**Last updated:** [January 16, 2022, 7:57pm UTC](https://discourse.vtk.org/t/close-the-holes-when-using-booleanoperationpolydatafilter/7651 "2022-01-16T19:57:37Z")

</div>

how can the holes be closed when using BooleanOperationPolyDataFilter

---

## [Accessing material and pixel properties in UV mapped 3D regions of interest for mine-craft like game world](https://discourse.vtk.org/t/accessing-material-and-pixel-properties-in-uv-mapped-3d-regions-of-interest-for-mine-craft-like-game-world/7477)

<div class="topic-metadata">

**Author:** [@Joel\_Mckay](https://discourse.vtk.org/u/Joel_Mckay)\
**Replies:** 1\
**Last updated:** [January 16, 2022, 4:37pm UTC](https://discourse.vtk.org/t/accessing-material-and-pixel-properties-in-uv-mapped-3d-regions-of-interest-for-mine-craft-like-game-world/7477 "2022-01-16T16:37:15Z")

</div>

I am currently generating some search paths using vtkCutter with vtkPlane for surface contours near object texture material(s) imported with OBJImporter My preliminary first try with libvtk is a simple test of a libvtk …

---

## [Get surface area of region on polydata](https://discourse.vtk.org/t/get-surface-area-of-region-on-polydata/3738)

<div class="topic-metadata">

**Author:** [@rjs44](https://discourse.vtk.org/u/rjs44)\
**Replies:** 10\
**Last updated:** [January 16, 2022, 4:24am UTC](https://discourse.vtk.org/t/get-surface-area-of-region-on-polydata/3738 "2022-01-16T04:24:09Z")

</div>

I would like to derive the surface area of a specific region on the surface of polydata. This specific region would be the part of the surface that is visible when viewed from above (in the y-plane) such that overlapping…

---

## [How to flip the normals of partial cells of a polydata?](https://discourse.vtk.org/t/how-to-flip-the-normals-of-partial-cells-of-a-polydata/7642)

<div class="topic-metadata">

**Author:** [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)\
**Replies:** 0\
**Last updated:** [January 15, 2022, 7:24am UTC](https://discourse.vtk.org/t/how-to-flip-the-normals-of-partial-cells-of-a-polydata/7642 "2022-01-15T07:24:37Z")

</div>

Hello,I knew how to flip all normal of a poly data,the question is : how to flip the normals of partial cells of a poly data?

---

## [What type of documentation tool you use in your cmake Files ?](https://discourse.vtk.org/t/what-type-of-documentation-tool-you-use-in-your-cmake-files/7640)

<div class="topic-metadata">

**Author:** [@dschiller](https://discourse.vtk.org/u/dschiller)\
**Replies:** 3\
**Last updated:** [January 14, 2022, 3:29pm UTC](https://discourse.vtk.org/t/what-type-of-documentation-tool-you-use-in-your-cmake-files/7640 "2022-01-14T15:29:20Z")

</div>

At https://gitlab.kitware.com/vtk/vtk/-/blob/master/CMake/vtkModuleGraphviz.cmake#L1-7 you are using a documentation style I don’t know. I know about CMinx which uses #\[\[\[ ... #\]\]. I also tried doxygen but it seems not d…

---

## [extract image slice from vtkImageData and convert it to qimage, which make unexpected result](https://discourse.vtk.org/t/extract-image-slice-from-vtkimagedata-and-convert-it-to-qimage-which-make-unexpected-result/7623)

<div class="topic-metadata">

**Author:** [@xianger.qi](https://discourse.vtk.org/u/xianger.qi)\
**Replies:** 8\
**Last updated:** [January 14, 2022, 4:53am UTC](https://discourse.vtk.org/t/extract-image-slice-from-vtkimagedata-and-convert-it-to-qimage-which-make-unexpected-result/7623 "2022-01-14T04:53:26Z")

</div>

Hello guys: I extract a slice from vtkImageData with vtkImageReslice filter, then display the output of vtkImageReslice in renderwindow, meanwhile i convert the output of vtkImageReslice to qimage. BUT The result of qim…

---

## [vtkProbeFilter with oriented image](https://discourse.vtk.org/t/vtkprobefilter-with-oriented-image/7637)

<div class="topic-metadata">

**Author:** [@Stephan\_Hahn](https://discourse.vtk.org/u/Stephan_Hahn)\
**Replies:** 2\
**Last updated:** [January 13, 2022, 8:12pm UTC](https://discourse.vtk.org/t/vtkprobefilter-with-oriented-image/7637 "2022-01-13T20:12:20Z")

</div>

Hi all Maybe a question for @lassoan I have seen that vtkDiscreteMarchingCube has been updated for oriented image. And indeed the IndexToPhysicalMatrix is used through the TransformPoints method at the end of the metho…

---

## [Typo on the api documentation page for MatrixBuilder](https://discourse.vtk.org/t/typo-on-the-api-documentation-page-for-matrixbuilder/7627)

<div class="topic-metadata">

**Author:** [@Mohamed\_Waheed](https://discourse.vtk.org/u/Mohamed_Waheed)\
**Replies:** 3\
**Last updated:** [January 13, 2022, 2:08pm UTC](https://discourse.vtk.org/t/typo-on-the-api-documentation-page-for-matrixbuilder/7627 "2022-01-13T14:08:30Z")

</div>

Hello, The example given on this page has a typo “f” instead of “F” in “buildfromDegree” Nothing major, but it wasted some time and effort for me. Thank you.

---

## [What does the parameter 'index' mean in GetScalarOpacity function? the volume, the point, the cell or others?](https://discourse.vtk.org/t/what-does-the-parameter-index-mean-in-getscalaropacity-function-the-volume-the-point-the-cell-or-others/7633)

<div class="topic-metadata">

**Author:** [@YuezhenQin](https://discourse.vtk.org/u/YuezhenQin)\
**Replies:** 0\
**Last updated:** [January 13, 2022, 7:26am UTC](https://discourse.vtk.org/t/what-does-the-parameter-index-mean-in-getscalaropacity-function-the-volume-the-point-the-cell-or-others/7633 "2022-01-13T07:26:43Z")

</div>

In doc, vtkPiecewiseFunction\* vtkVolumeProperty::GetScalarOpacity ( int index ) Get the scalar opacity transfer function for the given component. What does the component mean? How to use it? If there exist any example…

---

## [How to set vtkPropCollection for vtkCellPicker](https://discourse.vtk.org/t/how-to-set-vtkpropcollection-for-vtkcellpicker/7624)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 2\
**Last updated:** [January 13, 2022, 3:39am UTC](https://discourse.vtk.org/t/how-to-set-vtkpropcollection-for-vtkcellpicker/7624 "2022-01-13T03:39:39Z")

</div>

I find that vtkPropPicker can set the vtkPropCollection for pick: int PickProp( double selectionX, double selectionY, vtkRenderer\* renderer, vtkPropCollection\* pickfrom); This function allows to pick from the speci…

---

## [All Animation in widget not work when use vtk with Qml](https://discourse.vtk.org/t/all-animation-in-widget-not-work-when-use-vtk-with-qml/7630)

<div class="topic-metadata">

**Author:** [@edwardAllen](https://discourse.vtk.org/u/edwardAllen)\
**Replies:** 0\
**Last updated:** [January 13, 2022, 12:38am UTC](https://discourse.vtk.org/t/all-animation-in-widget-not-work-when-use-vtk-with-qml/7630 "2022-01-13T00:38:15Z")

</div>

I think all animation not work when this widget is in qml . Because , all mouse event are handled in quickItem::sync() function ,and animation is running in mouse event’s callback , after deal with mouse handle , qquick…

---

## [Override DataArray values beyond set values](https://discourse.vtk.org/t/override-dataarray-values-beyond-set-values/7618)

<div class="topic-metadata">

**Author:** [@theodorebaltis](https://discourse.vtk.org/u/theodorebaltis)\
**Replies:** 2\
**Last updated:** [January 12, 2022, 10:33pm UTC](https://discourse.vtk.org/t/override-dataarray-values-beyond-set-values/7618 "2022-01-12T22:33:34Z")

</div>

I’m looking to set a new range on my data, assuming I have a new\_min and new\_max, so that values \> new\_max are set to new\_max and values \< new\_min are set to new\_min Easy enough to do with the vtk\_to\_numpy/numpy\_to\_vtk …

---

## [clipping a polydata using the implicit of another polydata via vtkClipPolyData leads to a big hole on the cut side.](https://discourse.vtk.org/t/clipping-a-polydata-using-the-implicit-of-another-polydata-via-vtkclippolydata-leads-to-a-big-hole-on-the-cut-side/7534)

<div class="topic-metadata">

**Author:** [@aveek-brahmachari](https://discourse.vtk.org/u/aveek-brahmachari)\
**Replies:** 10\
**Last updated:** [January 12, 2022, 9:30pm UTC](https://discourse.vtk.org/t/clipping-a-polydata-using-the-implicit-of-another-polydata-via-vtkclippolydata-leads-to-a-big-hole-on-the-cut-side/7534 "2022-01-12T21:30:24Z")

</div>

vtkSmartPointer\<vtkPolyData\> clipMesh (const vtkSmartPointer\<vtkPolyData\> &mesh1, const vtkSmartPointer\<vtkPolyData\> &mesh2) { vtkNew\<vtkImplicitPolyDataDistance\> implicit\_distance\_2; implicit\_distance\_2-\>SetInput(mes…

---

## [vtkPointPicker very slow](https://discourse.vtk.org/t/vtkpointpicker-very-slow/7507)

<div class="topic-metadata">

**Author:** [@Julienchz](https://discourse.vtk.org/u/Julienchz)\
**Replies:** 8\
**Last updated:** [January 12, 2022, 3:46pm UTC](https://discourse.vtk.org/t/vtkpointpicker-very-slow/7507 "2022-01-12T15:46:58Z")

</div>

Hello ! I have a vtkPoints and I am trying to peak points from my pointcloud with cursor… so for now I am using vtkPointPicker… but with a large number of points, it is clearly too slow… The idea will be to use a vtkOct…

---

## [convert VTK array to numpy array](https://discourse.vtk.org/t/convert-vtk-array-to-numpy-array/3152)

<div class="topic-metadata">

**Author:** [@Deepa](https://discourse.vtk.org/u/Deepa)\
**Replies:** 4\
**Last updated:** [January 12, 2022, 1:14pm UTC](https://discourse.vtk.org/t/convert-vtk-array-to-numpy-array/3152 "2022-01-12T13:14:55Z")

</div>

I have a VTKArray VTKArray(\[ -3.17113447, -16.9386692 , 16.73578644\], dtype=float32) I’m trying to convert this to a numpy array from vtk.util.numpy\_support import vtk\_to\_numpy vtk\_to\_numpy(edgeNode0\_pos) error: …

---

## [VTK 9.1 Release Cycle](https://discourse.vtk.org/t/vtk-9-1-release-cycle/6664)

<div class="topic-metadata">

**Author:** [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)\
**Replies:** 14\
**Last updated:** [January 12, 2022, 6:51am UTC](https://discourse.vtk.org/t/vtk-9-1-release-cycle/6664 "2022-01-12T06:51:32Z")

</div>

Hi all, It’s about time for a VTK release. The CI dashboards have been stabilizing fairly well and it seems like a good time to start cutting a release. Tentative dates: Sep 27: branch and create rc1 Oct 4: rc2 and …

---

## [Pick vtkActor from vtkPropAssembly](https://discourse.vtk.org/t/pick-vtkactor-from-vtkpropassembly/5005)

<div class="topic-metadata">

**Author:** [@tgurgui](https://discourse.vtk.org/u/tgurgui)\
**Replies:** 1\
**Last updated:** [January 11, 2022, 5:49pm UTC](https://discourse.vtk.org/t/pick-vtkactor-from-vtkpropassembly/5005 "2022-01-11T17:49:21Z")

</div>

Hello everyone, I’m trying to pick an actor from an assembly, but I’m always getting the first actor in the assembly as the picked actor. My understanding is that that I should get the picked actor from the path returne…

---

## [Various -Wunused-but-set-variable warnings](https://discourse.vtk.org/t/various-wunused-but-set-variable-warnings/7580)

<div class="topic-metadata">

**Author:** [@seanm](https://discourse.vtk.org/u/seanm)\
**Replies:** 11\
**Last updated:** [January 11, 2022, 4:36pm UTC](https://discourse.vtk.org/t/various-wunused-but-set-variable-warnings/7580 "2022-01-11T16:36:40Z")

</div>

Hi all, The newest clang gives some new -Wunused-but-set-variable warnings. Without knowing the code in question, it’s hard for someone like me to decide if the set value is harmlessly unused or if there is missing cod…

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

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