# Latest

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

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

**Page:** 138

---

## [Get Open CASCADE TopoDS\_Shape from vtkPolyData](https://discourse.vtk.org/t/get-open-cascade-topods-shape-from-vtkpolydata/8068)

<div class="topic-metadata">

**Author:** [@KeyboardMan](https://discourse.vtk.org/u/KeyboardMan)\
**Replies:** 3\
**Last updated:** [March 31, 2022, 9:53am UTC](https://discourse.vtk.org/t/get-open-cascade-topods-shape-from-vtkpolydata/8068 "2022-03-31T09:53:39Z")

</div>

I got the output vtkPolyData of vtkContourFilter, next I want to generate TopoDS\_Shape by vtkPolyData.PolyData is a completely closed box） My current approach is to store the PolyData as an STL file, then use Open CASCA…

---

## [How to apply preset color map to vtkColorTransferFunction?](https://discourse.vtk.org/t/how-to-apply-preset-color-map-to-vtkcolortransferfunction/8166)

<div class="topic-metadata">

**Author:** [@eino](https://discourse.vtk.org/u/eino)\
**Replies:** 3\
**Last updated:** [March 31, 2022, 9:53am UTC](https://discourse.vtk.org/t/how-to-apply-preset-color-map-to-vtkcolortransferfunction/8166 "2022-03-31T09:53:21Z")

</div>

Hi, I need to color a PolyData points/cells by a value in its fields. This works well, but how can I use a preset color maps (e.g. “Cool to Warm”) for coloring? In vtk.js one can do const preset = vtkColorMaps.…

---

## [Is there a way to index VTK Actors](https://discourse.vtk.org/t/is-there-a-way-to-index-vtk-actors/8183)

<div class="topic-metadata">

**Author:** [@Jishnu](https://discourse.vtk.org/u/Jishnu)\
**Replies:** 0\
**Last updated:** [March 31, 2022, 4:03am UTC](https://discourse.vtk.org/t/is-there-a-way-to-index-vtk-actors/8183 "2022-03-31T04:03:00Z")

</div>

I am developing a simple GUI where users can import multiple stl files and view them and interact with them in real-time. I am using QT (PySide6/PyQt) (TreeView model) for showing the list of stl files imported. Now I st…

---

## [VTK js, renderwindow black screen](https://discourse.vtk.org/t/vtk-js-renderwindow-black-screen/8080)

<div class="topic-metadata">

**Author:** [@PPYoung](https://discourse.vtk.org/u/PPYoung)\
**Replies:** 13\
**Last updated:** [March 30, 2022, 5:18pm UTC](https://discourse.vtk.org/t/vtk-js-renderwindow-black-screen/8080 "2022-03-30T17:18:58Z")

</div>

I made a web STL viewer using vtk js. So far it’s been working fine. But from today, when I load a specific STL file, the renderwindow appears black. The 3d model is also not shown. At this time, if I adjust the tran…

---

## [static fucntion DistanceToPolygon not working](https://discourse.vtk.org/t/static-fucntion-distancetopolygon-not-working/8175)

<div class="topic-metadata">

**Author:** [@RAUMIK\_RANA](https://discourse.vtk.org/u/RAUMIK_RANA)\
**Replies:** 1\
**Last updated:** [March 30, 2022, 2:08pm UTC](https://discourse.vtk.org/t/static-fucntion-distancetopolygon-not-working/8175 "2022-03-30T14:08:10Z")

</div>

I tried to find distance between point to polygon with static function “DistanceToPolygon” As per documentation 3rd argument should be points which I assumed list of tuples which contain xyz. https://vtk.org/doc/nightl…

---

## [First time using 3d mode and VTK sdk helps](https://discourse.vtk.org/t/first-time-using-3d-mode-and-vtk-sdk-helps/8178)

<div class="topic-metadata">

**Author:** [@Csanmek](https://discourse.vtk.org/u/Csanmek)\
**Replies:** 0\
**Last updated:** [March 30, 2022, 12:33pm UTC](https://discourse.vtk.org/t/first-time-using-3d-mode-and-vtk-sdk-helps/8178 "2022-03-30T12:33:28Z")

</div>

I was downloaded the VTk sdk to use in unity and went to do a test in play and this message appeared can someone help me find a solution?

---

## [vtkResliceImageViewer display RGBA image](https://discourse.vtk.org/t/vtkresliceimageviewer-display-rgba-image/8174)

<div class="topic-metadata">

**Author:** [@Zhengduo\_Zhu](https://discourse.vtk.org/u/Zhengduo_Zhu)\
**Replies:** 0\
**Last updated:** [March 30, 2022, 7:20am UTC](https://discourse.vtk.org/t/vtkresliceimageviewer-display-rgba-image/8174 "2022-03-30T07:20:05Z")

</div>

Hey guys: How can I let resliceimageviewer display a colored image? I know that vtkResliceImageViewer can setup lookup table. But I need to blend two images after map image to color. I use DICOM reader to read image da…

---

## [Thermograph color map](https://discourse.vtk.org/t/thermograph-color-map/8160)

<div class="topic-metadata">

**Author:** [@hamid\_badi](https://discourse.vtk.org/u/hamid_badi)\
**Replies:** 2\
**Last updated:** [March 29, 2022, 9:45pm UTC](https://discourse.vtk.org/t/thermograph-color-map/8160 "2022-03-29T21:45:45Z")

</div>

Hi, I can’t find a well know thermography colormap (as below) neither in paraview nor in vtk xml file. Does anybody already find/implemented it ? Thanks

---

## [Drawing polys and one verts (vtkOpenGLPolyDataMapper)](https://discourse.vtk.org/t/drawing-polys-and-one-verts-vtkopenglpolydatamapper/8172)

<div class="topic-metadata">

**Author:** [@danay8991](https://discourse.vtk.org/u/danay8991)\
**Replies:** 0\
**Last updated:** [March 29, 2022, 8:47pm UTC](https://discourse.vtk.org/t/drawing-polys-and-one-verts-vtkopenglpolydatamapper/8172 "2022-03-29T20:47:40Z")

</div>

I try draw one polys(4 points) and one verts. After that I have diagonal in this polys. I use vtkopenglpolydatamapper. has anyone had such a problem?

---

## [How to build vtkDicom in Windows10??](https://discourse.vtk.org/t/how-to-build-vtkdicom-in-windows10/8128)

<div class="topic-metadata">

**Author:** [@kookoo9999](https://discourse.vtk.org/u/kookoo9999)\
**Replies:** 11\
**Last updated:** [March 29, 2022, 3:05pm UTC](https://discourse.vtk.org/t/how-to-build-vtkdicom-in-windows10/8128 "2022-03-29T15:05:36Z")

</div>

@dgobbi Hello, I tried to build vtk8.0 with option vtk-module-vtkDicom using gdcm2.8.0(after Cmake build). CMake configure and generate hasn’t error, but all\_build occured error in vtk.sln . Can you explain in detail…

---

## [DataAccessHelper is not defined](https://discourse.vtk.org/t/dataaccesshelper-is-not-defined/8139)

<div class="topic-metadata">

**Author:** [@Nicolas\_Schmidt](https://discourse.vtk.org/u/Nicolas_Schmidt)\
**Replies:** 5\
**Last updated:** [March 29, 2022, 2:29pm UTC](https://discourse.vtk.org/t/dataaccesshelper-is-not-defined/8139 "2022-03-29T14:29:52Z")

</div>

In @kitware/vtk.js version 23.3.0 I’m receiving an error that DataAccessHelper is not defined. This would be the module imported from: import DataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper' In VSCode …

---

## [how to rotate a .obj object](https://discourse.vtk.org/t/how-to-rotate-a-obj-object/8117)

<div class="topic-metadata">

**Author:** [@george66s](https://discourse.vtk.org/u/george66s)\
**Replies:** 1\
**Last updated:** [March 29, 2022, 2:26am UTC](https://discourse.vtk.org/t/how-to-rotate-a-obj-object/8117 "2022-03-29T02:26:19Z")

</div>

Hi, I am trying to rotate an object with .obj format. Is there any example that I can learn from? I checked out the example RotationAroundLine.cxx. It is about rotating an Arrow. It has the following code: // Create ar…

---

## [Kalman Filter for vtkTransform](https://discourse.vtk.org/t/kalman-filter-for-vtktransform/8141)

<div class="topic-metadata">

**Author:** [@Jens\_Munk\_Hansen](https://discourse.vtk.org/u/Jens_Munk_Hansen)\
**Replies:** 9\
**Last updated:** [March 29, 2022, 1:04am UTC](https://discourse.vtk.org/t/kalman-filter-for-vtktransform/8141 "2022-03-29T01:04:37Z")

</div>

Hi Developers I am currently implementing a pose Kalman Filter using MEKF as a spare-time project. This means that I could add this as a contribution to the VTK repository if you think it is a good idea. So far, I have…

---

## [Cross compiling VTK for Jetson nano with GUISupportQt](https://discourse.vtk.org/t/cross-compiling-vtk-for-jetson-nano-with-guisupportqt/8159)

<div class="topic-metadata">

**Author:** [@Timor](https://discourse.vtk.org/u/Timor)\
**Replies:** 0\
**Last updated:** [March 28, 2022, 9:32pm UTC](https://discourse.vtk.org/t/cross-compiling-vtk-for-jetson-nano-with-guisupportqt/8159 "2022-03-28T21:32:01Z")

</div>

I’m trying to compile vtk for jetson nano and I need to compile it with GUISupportQt I used this tutorial for compiling qt5.15 for the device then I tried to compile vtk with cmake with cmake -D CMAKE\_TOOLCHAIN\_FILE=…

---

## [Clipping Geometry](https://discourse.vtk.org/t/clipping-geometry/8144)

<div class="topic-metadata">

**Author:** [@Nicolas\_Schmidt](https://discourse.vtk.org/u/Nicolas_Schmidt)\
**Replies:** 3\
**Last updated:** [March 28, 2022, 5:02pm UTC](https://discourse.vtk.org/t/clipping-geometry/8144 "2022-03-28T17:02:15Z")

</div>

I’d like to make a widget like the ImageCroppingWidget but for geometry. These models are generally vtkjs scenes made up of multiple datasets like the one below: I was considering a way to use the vtkCutter filter bu…

---

## [Advice for Implicit Boolean operations -- jagged edges](https://discourse.vtk.org/t/advice-for-implicit-boolean-operations-jagged-edges/8146)

<div class="topic-metadata">

**Author:** [@BlueKnight7](https://discourse.vtk.org/u/BlueKnight7)\
**Replies:** 1\
**Last updated:** [March 28, 2022, 1:50pm UTC](https://discourse.vtk.org/t/advice-for-implicit-boolean-operations-jagged-edges/8146 "2022-03-28T13:50:29Z")

</div>

I’ve looked at the Ice Cream, Implicit Boolean, and Implicit Boolean examples. All of these examples generate a contour surface from sampling. I’ve noticed from this method that the resulting (final) object does not ha…

---

## [How to get the path between the root and a branch](https://discourse.vtk.org/t/how-to-get-the-path-between-the-root-and-a-branch/8157)

<div class="topic-metadata">

**Author:** [@lkuan](https://discourse.vtk.org/u/lkuan)\
**Replies:** 0\
**Last updated:** [March 28, 2022, 12:45pm UTC](https://discourse.vtk.org/t/how-to-get-the-path-between-the-root-and-a-branch/8157 "2022-03-28T12:45:58Z")

</div>

Hello Team, I have a centerline tree extracted from trachea. The centerline tree contains many discrete points. It can be visualized in the renderwindow correctly. The work I want to achieve is to build a path from the …

---

## [The plugin '/home/aarju/Qt/Tools/QtCreator/lib/Qt/plugins/designer/libQVTKWidgetPlugin.so' uses incompatible Qt library. (5.13.0) \[release\]](https://discourse.vtk.org/t/the-plugin-home-aarju-qt-tools-qtcreator-lib-qt-plugins-designer-libqvtkwidgetplugin-so-uses-incompatible-qt-library-5-13-0-release/8154)

<div class="topic-metadata">

**Author:** [@guptaaarju](https://discourse.vtk.org/u/guptaaarju)\
**Replies:** 0\
**Last updated:** [March 28, 2022, 6:54am UTC](https://discourse.vtk.org/t/the-plugin-home-aarju-qt-tools-qtcreator-lib-qt-plugins-designer-libqvtkwidgetplugin-so-uses-incompatible-qt-library-5-13-0-release/8154 "2022-03-28T06:54:54Z")

</div>

VTK: 7.1.1 QT: 5.13.2 Getting below error for plugings Error: The plugin ‘/home/aarju/Qt/Tools/QtCreator/lib/Qt/plugins/designer/libQVTKWidgetPlugin.so’ uses incompatible Qt library. (5.13.0) \[release\]

---

## [paraview，vtk](https://discourse.vtk.org/t/paraview-vtk/8150)

<div class="topic-metadata">

**Author:** [@chengchengjing](https://discourse.vtk.org/u/chengchengjing)\
**Replies:** 0\
**Last updated:** [March 28, 2022, 1:50am UTC](https://discourse.vtk.org/t/paraview-vtk/8150 "2022-03-28T01:50:10Z")

</div>

In paraview variables, how to call in C++ or python version of VTK?

---

## [Why vtkCubeSource isn't a closed surface?](https://discourse.vtk.org/t/why-vtkcubesource-isnt-a-closed-surface/8143)

<div class="topic-metadata">

**Author:** [@xianger.qi](https://discourse.vtk.org/u/xianger.qi)\
**Replies:** 2\
**Last updated:** [March 28, 2022, 1:38am UTC](https://discourse.vtk.org/t/why-vtkcubesource-isnt-a-closed-surface/8143 "2022-03-28T01:38:16Z")

</div>

Hey All: There are a question why the output of vtkCubeSource isn’t a closed one? I write the codes to indicate my thinking. code below. vtkNew《vtkCubeSource》 cube; auto res = vtkSelectEnclosedPoints::IsSurfaceClosed…

---

## [Program crash with vtk 9.1.0](https://discourse.vtk.org/t/program-crash-with-vtk-9-1-0/8145)

<div class="topic-metadata">

**Author:** [@Daniel](https://discourse.vtk.org/u/Daniel)\
**Replies:** 1\
**Last updated:** [March 27, 2022, 7:33pm UTC](https://discourse.vtk.org/t/program-crash-with-vtk-9-1-0/8145 "2022-03-27T19:33:49Z")

</div>

Hi all, so far I have been working with vtk 8.1.1 and have been able to install and run a (Java) application developed with it on different computers. Now I wanted to switch to vtk 9.1.0. Using CMake, I made the approp…

---

## [Constrained Delaunay2D doesn't cover the whole area](https://discourse.vtk.org/t/constrained-delaunay2d-doesnt-cover-the-whole-area/8132)

<div class="topic-metadata">

**Author:** [@MoonMarcher](https://discourse.vtk.org/u/MoonMarcher)\
**Replies:** 2\
**Last updated:** [March 25, 2022, 1:03pm UTC](https://discourse.vtk.org/t/constrained-delaunay2d-doesnt-cover-the-whole-area/8132 "2022-03-25T13:03:19Z")

</div>

Hello VTK users, I’ve been trying for quite some time to triangulate an area of points with a few polygons which must be hollowed up in the area. I’m using ConstrainedDelaunay2D as the basis of my implementation but the…

---

## [Add Custom Fields to vtkObjects (Display Names)](https://discourse.vtk.org/t/add-custom-fields-to-vtkobjects-display-names/7790)

<div class="topic-metadata">

**Author:** [@Nicolas\_Schmidt](https://discourse.vtk.org/u/Nicolas_Schmidt)\
**Replies:** 4\
**Last updated:** [March 24, 2022, 7:42pm UTC](https://discourse.vtk.org/t/add-custom-fields-to-vtkobjects-display-names/7790 "2022-03-24T19:42:18Z")

</div>

Is there a good way to add an id / name / displayName field to vtkObjects? For instance I’d like to know the name of the vtkLookupTable I’m using or the vtkActor I’m manipulating. I’ve tried a few different things, but h…

---

## [Trying to run ResliceCursorWidget example but getting error regarding xyzToViewType](https://discourse.vtk.org/t/trying-to-run-reslicecursorwidget-example-but-getting-error-regarding-xyztoviewtype/8046)

<div class="topic-metadata">

**Author:** [@Yuvi-416](https://discourse.vtk.org/u/Yuvi-416)\
**Replies:** 4\
**Last updated:** [March 24, 2022, 2:35pm UTC](https://discourse.vtk.org/t/trying-to-run-reslicecursorwidget-example-but-getting-error-regarding-xyztoviewtype/8046 "2022-03-24T14:35:28Z")

</div>

Hi, I am trying to run (vtk.js) this example but i am getting error in this line: obj.widgetInstance = obj.widgetManager.addWidget(widget, xyzToViewType\[i\]); I just chnage base path location as BASE\_PATH = “vtk.js” …

---

## [vtkSelectvisiblePoints selects unvisible points](https://discourse.vtk.org/t/vtkselectvisiblepoints-selects-unvisible-points/8120)

<div class="topic-metadata">

**Author:** [@csad6517](https://discourse.vtk.org/u/csad6517)\
**Replies:** 4\
**Last updated:** [March 23, 2022, 6:34pm UTC](https://discourse.vtk.org/t/vtkselectvisiblepoints-selects-unvisible-points/8120 "2022-03-23T18:34:10Z")

</div>

Hello, I am using vtkSelectVisiblePoints to get the number of visible points on my 3d volume, which is generated through vtkVolume and represented in a rendered scene. If I threshold the volume and want to know the num…

---

## [QVTKWidget Shows Transparent Plane](https://discourse.vtk.org/t/qvtkwidget-shows-transparent-plane/8130)

<div class="topic-metadata">

**Author:** [@Panda12197](https://discourse.vtk.org/u/Panda12197)\
**Replies:** 0\
**Last updated:** [March 24, 2022, 4:19am UTC](https://discourse.vtk.org/t/qvtkwidget-shows-transparent-plane/8130 "2022-03-24T04:19:01Z")

</div>

Hello Guys, I try this Example to visualize the Point Cloud. But when I run the code, QVTKWidget becomes like this image. QVTKWidget is transparent and can see background desktop screen at the place of widget. I also tr…

---

## [vtkSplineWidget is unable to set open loop such as ClosedOff() or SetClosed(true)](https://discourse.vtk.org/t/vtksplinewidget-is-unable-to-set-open-loop-such-as-closedoff-or-setclosed-true/8123)

<div class="topic-metadata">

**Author:** [@gui](https://discourse.vtk.org/u/gui)\
**Replies:** 1\
**Last updated:** [March 23, 2022, 8:45pm UTC](https://discourse.vtk.org/t/vtksplinewidget-is-unable-to-set-open-loop-such-as-closedoff-or-setclosed-true/8123 "2022-03-23T20:45:44Z")

</div>

Hi everyone. I use vtk.js version 23.0.0 (the latest) and vtkSplineWidget.js has no method such as ClosedOff() or SetClosed(true) to create only straight line without continuous loop. Is there any other ways to create an…

---

## [Threshold from vtk image data](https://discourse.vtk.org/t/threshold-from-vtk-image-data/8126)

<div class="topic-metadata">

**Author:** [@Nige\_Terminator](https://discourse.vtk.org/u/Nige_Terminator)\
**Replies:** 0\
**Last updated:** [March 23, 2022, 6:24pm UTC](https://discourse.vtk.org/t/threshold-from-vtk-image-data/8126 "2022-03-23T18:24:50Z")

</div>

I everyone I just approach vtk in python for my master thesis I import a file.nii.gz from segmentation obtain through mri. Then I read it through vtkNIFTIImageReader and with get output I obtain a Vtk image data file N…

---

## [Implicit Quadric model with Perlin or other noise applied](https://discourse.vtk.org/t/implicit-quadric-model-with-perlin-or-other-noise-applied/8115)

<div class="topic-metadata">

**Author:** [@Spacetracker](https://discourse.vtk.org/u/Spacetracker)\
**Replies:** 3\
**Last updated:** [March 23, 2022, 3:04pm UTC](https://discourse.vtk.org/t/implicit-quadric-model-with-perlin-or-other-noise-applied/8115 "2022-03-23T15:04:05Z")

</div>

I create a complex implicit surface model with quadric function boolean combinations. I want to perturb or filter these individual smooth surfaces to make them bumpy or irregular with the Perlin function or something li…

---

## [Cogwheel](https://discourse.vtk.org/t/cogwheel/8119)

<div class="topic-metadata">

**Author:** [@bernland](https://discourse.vtk.org/u/bernland)\
**Replies:** 1\
**Last updated:** [March 23, 2022, 2:57pm UTC](https://discourse.vtk.org/t/cogwheel/8119 "2022-03-23T14:57:42Z")

</div>

I created disks with an image texture using vtkConcentricCylinderSource: What is the best approach to add inner and outer toothing?

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

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