# Latest

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

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

**Page:** 146

---

## [where is the ninja compile result located](https://discourse.vtk.org/t/where-is-the-ninja-compile-result-located/7699)

<div class="topic-metadata">

**Author:** [@longjiang321](https://discourse.vtk.org/u/longjiang321)\
**Replies:** 6\
**Last updated:** [January 24, 2022, 3:05pm UTC](https://discourse.vtk.org/t/where-is-the-ninja-compile-result-located/7699 "2022-01-24T15:05:57Z")

</div>

hi friends: Thank you in advance!! I am trying to compile VTK as below tool chain: Cmake3.21.1 + VS2022 + VTK 9.1 + ninja the detail command as below: But though I had set the install-prefix to specify the install…

---

## [High-DPI scaling issues](https://discourse.vtk.org/t/high-dpi-scaling-issues/7693)

<div class="topic-metadata">

**Author:** [@drpeterfranz](https://discourse.vtk.org/u/drpeterfranz)\
**Replies:** 2\
**Last updated:** [January 24, 2022, 3:00pm UTC](https://discourse.vtk.org/t/high-dpi-scaling-issues/7693 "2022-01-24T15:00:22Z")

</div>

Hi there, I am trialling out a new 4k display. Moving over from 1920x1080 to 3840x2040 of course results in tiny fonts etc, so I am using my system’s desktop scaling mechanism to so that everything is scaled by a factor…

---

## [vtkActor getCenter() doesn't work unless getBounds() is called first](https://discourse.vtk.org/t/vtkactor-getcenter-doesnt-work-unless-getbounds-is-called-first/7701)

<div class="topic-metadata">

**Author:** [@Mohamed\_Waheed](https://discourse.vtk.org/u/Mohamed_Waheed)\
**Replies:** 2\
**Last updated:** [January 24, 2022, 11:46am UTC](https://discourse.vtk.org/t/vtkactor-getcenter-doesnt-work-unless-getbounds-is-called-first/7701 "2022-01-24T11:46:28Z")

</div>

Hello, The getCenter() method of vtkActor (of vtkProp3D really) does not work (returns \[0,0,0\]) unless getBounds() is called first. I am using STL models as sources. here is the official STLReader example, with the add…

---

## [VTK: how to use QT to realize volume rendering clipping?](https://discourse.vtk.org/t/vtk-how-to-use-qt-to-realize-volume-rendering-clipping/7527)

<div class="topic-metadata">

**Author:** [@wulicheng](https://discourse.vtk.org/u/wulicheng)\
**Replies:** 5\
**Last updated:** [January 24, 2022, 6:09am UTC](https://discourse.vtk.org/t/vtk-how-to-use-qt-to-realize-volume-rendering-clipping/7527 "2022-01-24T06:09:57Z")

</div>

---

## [3D mode ROI (volume rendering)](https://discourse.vtk.org/t/3d-mode-roi-volume-rendering/7705)

<div class="topic-metadata">

**Author:** [@sun](https://discourse.vtk.org/u/sun)\
**Replies:** 0\
**Last updated:** [January 24, 2022, 2:53am UTC](https://discourse.vtk.org/t/3d-mode-roi-volume-rendering/7705 "2022-01-24T02:53:35Z")

</div>

In MPR, I implemented the ROI extraction function using the vtkContourWidget widget. But when I use vtkContourWidget in 3D mode (volume rendering), it doesn’t display well. I want to draw a closed circle on the screen …

---

## [Substraction between one volume respect other two volumes does not affect the intersected areas](https://discourse.vtk.org/t/substraction-between-one-volume-respect-other-two-volumes-does-not-affect-the-intersected-areas/2760)

<div class="topic-metadata">

**Author:** [@zandarina](https://discourse.vtk.org/u/zandarina)\
**Replies:** 19\
**Last updated:** [January 24, 2022, 2:51am UTC](https://discourse.vtk.org/t/substraction-between-one-volume-respect-other-two-volumes-does-not-affect-the-intersected-areas/2760 "2022-01-24T02:51:41Z")

</div>

Hello, I have a doubt I hope someone can give me an idea. I want to substract one volume (obtained from a polydata with vtkPolyDataToImageStencil) from several cubes which are polydatas too. I append the cubes with vtkA…

---

## [Import and export OFF or STL files to do mesh Boolean operations(Union, Difference, Intersection)](https://discourse.vtk.org/t/import-and-export-off-or-stl-files-to-do-mesh-boolean-operations-union-difference-intersection/6918)

<div class="topic-metadata">

**Author:** [@Sumil\_Sood](https://discourse.vtk.org/u/Sumil_Sood)\
**Replies:** 4\
**Last updated:** [January 24, 2022, 2:12am UTC](https://discourse.vtk.org/t/import-and-export-off-or-stl-files-to-do-mesh-boolean-operations-union-difference-intersection/6918 "2022-01-24T02:12:59Z")

</div>

Hi, I compiled the example Implicit Boolean(https://kitware.github.io/vtkexamples/site/Cxx/Filtering/ImplicitBoolean/) and it works fine for mesh Boolean operations. However, it uses the it’s own sphere, I want to impor…

---

## [How to preserve the original cell color when using scalars to change the partial cell color?](https://discourse.vtk.org/t/how-to-preserve-the-original-cell-color-when-using-scalars-to-change-the-partial-cell-color/7685)

<div class="topic-metadata">

**Author:** [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)\
**Replies:** 2\
**Last updated:** [January 23, 2022, 4:12pm UTC](https://discourse.vtk.org/t/how-to-preserve-the-original-cell-color-when-using-scalars-to-change-the-partial-cell-color/7685 "2022-01-23T16:12:43Z")

</div>

Hello, these code was used to change partial cells’s color: void coloringSelectedCells() { vtkNew nc; auto orbg = property()-\>GetColor(); double originalColor\[4\] = { orbg\[0\] \* 255, orbg\[1\] \* 255, orbg\[2\] \* 255, 1 }; …

---

## [Why does the opacity get changed when using vtkLookupTable to set cell color?](https://discourse.vtk.org/t/why-does-the-opacity-get-changed-when-using-vtklookuptable-to-set-cell-color/7684)

<div class="topic-metadata">

**Author:** [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)\
**Replies:** 1\
**Last updated:** [January 23, 2022, 2:08pm UTC](https://discourse.vtk.org/t/why-does-the-opacity-get-changed-when-using-vtklookuptable-to-set-cell-color/7684 "2022-01-23T14:08:30Z")

</div>

Hello,blow code was used to set cell color: void SceneObject::coloringSelectedCells() { vtkNew nc; auto orbg = property()-\>GetColor(); double originalColor\[4\] = { orbg\[0\] \* 255, orbg\[1\] \* 255, orbg\[2\] \* 255, 1 }; a…

---

## [python vtk: how to import QVTKOpenGLNativeWidget](https://discourse.vtk.org/t/python-vtk-how-to-import-qvtkopenglnativewidget/7641)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 5\
**Last updated:** [January 23, 2022, 1:36pm UTC](https://discourse.vtk.org/t/python-vtk-how-to-import-qvtkopenglnativewidget/7641 "2022-01-23T13:36:47Z")

</div>

I am using python based vtk, and I want to import QVTKOpenGLNativeWidget, but an error is reported: AttributeError: module 'vtkmodules.all' has no attribute 'QVTKOpenGLNativeWidget' How can I import QVTKOpenGLNativeWi…

---

## [QT6.2 + VTK9.1 compile failed](https://discourse.vtk.org/t/qt6-2-vtk9-1-compile-failed/7666)

<div class="topic-metadata">

**Author:** [@longjiang321](https://discourse.vtk.org/u/longjiang321)\
**Replies:** 2\
**Last updated:** [January 23, 2022, 4:10am UTC](https://discourse.vtk.org/t/qt6-2-vtk9-1-compile-failed/7666 "2022-01-23T04:10:48Z")

</div>

hi friends: when I try to compile QT6.2 with VTK9.1 on windows 10, had encounter so much diffcult, event though I had enable VTK\_GROUP\_ENABLE\_QT and set the QT version as 6! thank you very much in advance for your resp…

---

## [REPRESENT A 3D MODEL OF A BONE WITH A COLORMAP BASED ON BONE THICKNESS](https://discourse.vtk.org/t/represent-a-3d-model-of-a-bone-with-a-colormap-based-on-bone-thickness/7704)

<div class="topic-metadata">

**Author:** [@Albsb](https://discourse.vtk.org/u/Albsb)\
**Replies:** 0\
**Last updated:** [January 22, 2022, 5:17pm UTC](https://discourse.vtk.org/t/represent-a-3d-model-of-a-bone-with-a-colormap-based-on-bone-thickness/7704 "2022-01-22T17:17:19Z")

</div>

Hello! We have an array of contours with information about the thickness of a bone tissue. In each one of the slices, all the values are zero except those that show the thickness. The following image is an example of on…

---

## [application based on vtk will crash when memory is insufficient](https://discourse.vtk.org/t/application-based-on-vtk-will-crash-when-memory-is-insufficient/7635)

<div class="topic-metadata">

**Author:** [@xianger.qi](https://discourse.vtk.org/u/xianger.qi)\
**Replies:** 1\
**Last updated:** [January 22, 2022, 4:12pm UTC](https://discourse.vtk.org/t/application-based-on-vtk-will-crash-when-memory-is-insufficient/7635 "2022-01-22T16:12:30Z")

</div>

when i allocate the space of memory which is more than the capacity of computer ram in vtk, and the application will crash with no exception thrown. just like the code below: how could i prevent the situation to happ…

---

## [Error happend while linking vtkProbeOpenGLVersion.cxx.o](https://discourse.vtk.org/t/error-happend-while-linking-vtkprobeopenglversion-cxx-o/7572)

<div class="topic-metadata">

**Author:** [@imgoofy](https://discourse.vtk.org/u/imgoofy)\
**Replies:** 6\
**Last updated:** [January 22, 2022, 4:10pm UTC](https://discourse.vtk.org/t/error-happend-while-linking-vtkprobeopenglversion-cxx-o/7572 "2022-01-22T16:10:24Z")

</div>

I’m trying to build VTK in my Linux machine, but I got below linking error. How could I fix it? ld: CMakeFiles/vtkProbeOpenGLVersion.dir/vtkProbeOpenGLVersion.cxx.o: undefined reference to symbo ‘\_ZStlsISt11char\_traints…

---

## [VTK on windows10](https://discourse.vtk.org/t/vtk-on-windows10/2131)

<div class="topic-metadata">

**Author:** [@banikr](https://discourse.vtk.org/u/banikr)\
**Replies:** 10\
**Last updated:** [January 22, 2022, 2:14pm UTC](https://discourse.vtk.org/t/vtk-on-windows10/2131 "2022-01-22T14:14:06Z")

</div>

Hello, I have used VTK in Linux. Now I need to use VTK in windows10. Is there a way I can use that like Ubuntu systems…like ccmake and make command lines and all for C++ codes? Thanks

---

## [Update 2D image](https://discourse.vtk.org/t/update-2d-image/7696)

<div class="topic-metadata">

**Author:** [@jamsoft](https://discourse.vtk.org/u/jamsoft)\
**Replies:** 0\
**Last updated:** [January 21, 2022, 6:02pm UTC](https://discourse.vtk.org/t/update-2d-image/7696 "2022-01-21T18:02:48Z")

</div>

Hello all, In my project, I need to cut the volume by plane, move the plane by the keyboard arrows and show the slice content. Everything works well with the following (part of) code: planeSagittal\_vtkPlane = vtk.v…

---

## [Cube in cube](https://discourse.vtk.org/t/cube-in-cube/7366)

<div class="topic-metadata">

**Author:** [@jamsoft](https://discourse.vtk.org/u/jamsoft)\
**Replies:** 5\
**Last updated:** [January 21, 2022, 5:16pm UTC](https://discourse.vtk.org/t/cube-in-cube/7366 "2022-01-21T17:16:36Z")

</div>

Hello all, I have the following problem that I don’t know how to solve…: I’ve successfully created 3D volume (reconstruction) from the DICOM MRI slices. What I need now is to create (imaginary) cube that will progressiv…

---

## [Problems with linking GLEW (in MXE build)](https://discourse.vtk.org/t/problems-with-linking-glew-in-mxe-build/7522)

<div class="topic-metadata">

**Author:** [@Aziuth](https://discourse.vtk.org/u/Aziuth)\
**Replies:** 4\
**Last updated:** [January 21, 2022, 3:15pm UTC](https://discourse.vtk.org/t/problems-with-linking-glew-in-mxe-build/7522 "2022-01-21T15:15:50Z")

</div>

I have a (C++) project using VTK (8.2) which I cross-compile to Windows using MXE (with cmake). The latter information is relevant since the MXE folder contains all the libraries, including Qt, VTK and GLEW, and has act…

---

## [Proposal: adding a \`vtkPointCloud\` data structure](https://discourse.vtk.org/t/proposal-adding-a-vtkpointcloud-data-structure/3872)

<div class="topic-metadata">

**Author:** [@Yohann\_Bearzi](https://discourse.vtk.org/u/Yohann_Bearzi)\
**Replies:** 22\
**Last updated:** [January 21, 2022, 2:42pm UTC](https://discourse.vtk.org/t/proposal-adding-a-vtkpointcloud-data-structure/3872 "2022-01-21T14:42:18Z")

</div>

As of today, VTK does not have a specialized class to store point clouds. One way to store a point cloud is to create a vtkPolyData using only vtkVertex cells. It works sometimes: some filters taking a vtkPolyData as inp…

---

## [Compile vtk-9.1 with mingw-Error](https://discourse.vtk.org/t/compile-vtk-9-1-with-mingw-error/7464)

<div class="topic-metadata">

**Author:** [@rockydut](https://discourse.vtk.org/u/rockydut)\
**Replies:** 6\
**Last updated:** [January 21, 2022, 2:07pm UTC](https://discourse.vtk.org/t/compile-vtk-9-1-with-mingw-error/7464 "2022-01-21T14:07:05Z")

</div>

Dear all. When I compile vtk-9.1 with mingw, it shows the following errors. How to fix this error? When I delete the TestAngularPeriodicDataArray.cxx in the compile source, it can compile correctly, but my program shows…

---

## [GUISupportMFC missing files](https://discourse.vtk.org/t/guisupportmfc-missing-files/7599)

<div class="topic-metadata">

**Author:** [@Jaroslaw\_Sosnicki](https://discourse.vtk.org/u/Jaroslaw_Sosnicki)\
**Replies:** 4\
**Last updated:** [January 21, 2022, 1:24pm UTC](https://discourse.vtk.org/t/guisupportmfc-missing-files/7599 "2022-01-21T13:24:41Z")

</div>

I am using latest code downloaded from master. Listed files are included in “vtkMFCWindow.h” but are missing from master VTK/GUISupport/MFC at master · Kitware/VTK (github.com) missing files are: #include “vtkGUISu…

---

## [vtkDataObject subclassing example \[python\]](https://discourse.vtk.org/t/vtkdataobject-subclassing-example-python/7619)

<div class="topic-metadata">

**Author:** [@Nicholas\_Yue](https://discourse.vtk.org/u/Nicholas_Yue)\
**Replies:** 2\
**Last updated:** [January 21, 2022, 1:24pm UTC](https://discourse.vtk.org/t/vtkdataobject-subclassing-example-python/7619 "2022-01-21T13:24:14Z")

</div>

I would like to pass customised data types into and out of a vtkAlgorithm subclass Where can I find more python information about subclass vtkDataObject The following is the gist of my idea of what I am trying to achei…

---

## [Change color to cells in vtkjs using vtkLookupTable](https://discourse.vtk.org/t/change-color-to-cells-in-vtkjs-using-vtklookuptable/7649)

<div class="topic-metadata">

**Author:** [@micheleivani](https://discourse.vtk.org/u/micheleivani)\
**Replies:** 8\
**Last updated:** [January 21, 2022, 8:31am UTC](https://discourse.vtk.org/t/change-color-to-cells-in-vtkjs-using-vtklookuptable/7649 "2022-01-21T08:31:41Z")

</div>

Hi, My goal is to highlight some cells of a polydata. The ids are included in a given list. I have successfully created the code for the regular c# VTK application. I would like to reproduce the same result in vtkjs. I …

---

## [How to invert the single cell's normal ?](https://discourse.vtk.org/t/how-to-invert-the-single-cells-normal/7683)

<div class="topic-metadata">

**Author:** [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)\
**Replies:** 1\
**Last updated:** [January 21, 2022, 7:32am UTC](https://discourse.vtk.org/t/how-to-invert-the-single-cells-normal/7683 "2022-01-21T07:32:46Z")

</div>

Hello,I knew how to invert the all normal of an actor,question is how to inver the cell normal of a single cell?

---

## [vtkProperty missing GetAllTextures() on Python](https://discourse.vtk.org/t/vtkproperty-missing-getalltextures-on-python/7692)

<div class="topic-metadata">

**Author:** [@xtecox](https://discourse.vtk.org/u/xtecox)\
**Replies:** 1\
**Last updated:** [January 20, 2022, 4:17pm UTC](https://discourse.vtk.org/t/vtkproperty-missing-getalltextures-on-python/7692 "2022-01-20T16:17:11Z")

</div>

Hi, im still trying to access the vtktexture of an actor loaded by the gltfimporter, I tried accessing it on the actor.GetProperty().GetAllTextures() but the property doesn’t have this function, was it ported to python?

---

## [vtkPNGReader/vtkPNGWriter : Update() consistency ?](https://discourse.vtk.org/t/vtkpngreader-vtkpngwriter-update-consistency/7681)

<div class="topic-metadata">

**Author:** [@Nicholas\_Yue](https://discourse.vtk.org/u/Nicholas_Yue)\
**Replies:** 3\
**Last updated:** [January 20, 2022, 1:51pm UTC](https://discourse.vtk.org/t/vtkpngreader-vtkpngwriter-update-consistency/7681 "2022-01-20T13:51:17Z")

</div>

Hi, Calling Update() on vtkPNGReader performs a file read but calling Update() on vtkPNGWriter does not write out a proper PNG file, one has to call Write(), if I just call Update(), a file of the expected size is writt…

---

## [vtk on android 2d mode](https://discourse.vtk.org/t/vtk-on-android-2d-mode/7575)

<div class="topic-metadata">

**Author:** [@Albert\_Negron](https://discourse.vtk.org/u/Albert_Negron)\
**Replies:** 2\
**Last updated:** [January 20, 2022, 10:36am UTC](https://discourse.vtk.org/t/vtk-on-android-2d-mode/7575 "2022-01-20T10:36:50Z")

</div>

I am using vtk on android, and setInteractorStyle to vtkInteractorStyleImage, why the interactor not responding to the motion event, I need to disable camera rotation and keep the camera translation on x-y plane, is the…

---

## [vtkCellPicker unexpected work](https://discourse.vtk.org/t/vtkcellpicker-unexpected-work/7686)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 0\
**Last updated:** [January 20, 2022, 9:24am UTC](https://discourse.vtk.org/t/vtkcellpicker-unexpected-work/7686 "2022-01-20T09:24:59Z")

</div>

I am using vtkCellPicker in my project, and I find it unexpected work. The code to reproduce my problem is: import vtk lineSource = vtk.vtkLineSource() lineSource.SetPoint1(0, 0, 0) lineSource.SetPoint2(512, 512, 0) l…

---

## [vtkClipClosedSurface GenerateOutline - Width](https://discourse.vtk.org/t/vtkclipclosedsurface-generateoutline-width/7677)

<div class="topic-metadata">

**Author:** [@mallikarjun49](https://discourse.vtk.org/u/mallikarjun49)\
**Replies:** 4\
**Last updated:** [January 20, 2022, 5:08am UTC](https://discourse.vtk.org/t/vtkclipclosedsurface-generateoutline-width/7677 "2022-01-20T05:08:57Z")

</div>

Hi All, I am using vtkClipClosedSurface filter to clip and close the polydata and also to generate the outline where ever the planes intersect with the polydata. I managed to give a separate color to outline by overridd…

---

## [Dicom reslice upside down problem](https://discourse.vtk.org/t/dicom-reslice-upside-down-problem/7631)

<div class="topic-metadata">

**Author:** [@syj](https://discourse.vtk.org/u/syj)\
**Replies:** 3\
**Last updated:** [January 19, 2022, 3:32pm UTC](https://discourse.vtk.org/t/dicom-reslice-upside-down-problem/7631 "2022-01-19T15:32:20Z")

</div>

Hi guys, I import dicom data Using vtkDICOMImageReader(). The 3-plane result is upside-down, as follows: But if I convert the DICOM files to .mha or .nii.gz, and using vtk to visualize them, there is no upside-d…

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

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