# Latest

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

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

**Page:** 94

---

## [Example (or code snippet) for Matplotlib from a C++ application?](https://discourse.vtk.org/t/example-or-code-snippet-for-matplotlib-from-a-c-application/2126)

<div class="topic-metadata">

**Author:** [@cesss](https://discourse.vtk.org/u/cesss)\
**Replies:** 6\
**Last updated:** [March 22, 2023, 5:52am UTC](https://discourse.vtk.org/t/example-or-code-snippet-for-matplotlib-from-a-c-application/2126 "2023-03-22T05:52:58Z")

</div>

If I’m reading it correctly, it is possible for a C++ application to “call” the Matplotlib functionality included in VTK, transparently hiding the Python “plumbing” implied. Is there any code snippet showing, for exampl…

---

## [modules.json and ChartsCore](https://discourse.vtk.org/t/modules-json-and-chartscore/11016)

<div class="topic-metadata">

**Author:** [@Paul\_Harris](https://discourse.vtk.org/u/Paul_Harris)\
**Replies:** 1\
**Last updated:** [March 22, 2023, 4:22am UTC](https://discourse.vtk.org/t/modules-json-and-chartscore/11016 "2023-03-22T04:22:01Z")

</div>

Hi, I noticed in my build folder for 9.2.5 that there is no mention of the ChartsCore module. Is the modules.json supposed to list ALL modules possible? Or does its content depend on the flags in CMake? Or something …

---

## [Open position - Surgical Navigation Software Engineer](https://discourse.vtk.org/t/open-position-surgical-navigation-software-engineer/11018)

<div class="topic-metadata">

**Author:** [@ClaroNavKolahiInc](https://discourse.vtk.org/u/ClaroNavKolahiInc)\
**Replies:** 1\
**Last updated:** [March 21, 2023, 8:16pm UTC](https://discourse.vtk.org/t/open-position-surgical-navigation-software-engineer/11018 "2023-03-21T20:16:41Z")

</div>

Looking for a challenging and rewarding position in the medical device field? Location: Toronto, Canada Description: ClaroNav Kolahi Inc. (CKI) is offering a unique opportunity for a talented software engineer to parti…

---

## [How to traverse all points of read data (dcm)？](https://discourse.vtk.org/t/how-to-traverse-all-points-of-read-data-dcm/11015)

<div class="topic-metadata">

**Author:** [@zbz](https://discourse.vtk.org/u/zbz)\
**Replies:** 0\
**Last updated:** [March 21, 2023, 1:08pm UTC](https://discourse.vtk.org/t/how-to-traverse-all-points-of-read-data-dcm/11015 "2023-03-21T13:08:00Z")

</div>

How to traverse all points of read data (dcm)？

---

## [Questions about layer of vtkRenderer](https://discourse.vtk.org/t/questions-about-layer-of-vtkrenderer/10837)

<div class="topic-metadata">

**Author:** [@tong\_yang](https://discourse.vtk.org/u/tong_yang)\
**Replies:** 9\
**Last updated:** [March 21, 2023, 5:30am UTC](https://discourse.vtk.org/t/questions-about-layer-of-vtkrenderer/10837 "2023-03-21T05:30:48Z")

</div>

Hello, I have a question about the layer of the vtkRenderer. I set two layers/renders for vtkRenderWindow, when the two renders/layers display extent are different, the display is annormal. as shown here. The white …

---

## [ShadowLightsDemo - extents of shadows, light frustum, darkened areas](https://discourse.vtk.org/t/shadowlightsdemo-extents-of-shadows-light-frustum-darkened-areas/3410)

<div class="topic-metadata">

**Author:** [@michele-arrival](https://discourse.vtk.org/u/michele-arrival)\
**Replies:** 3\
**Last updated:** [March 21, 2023, 3:33am UTC](https://discourse.vtk.org/t/shadowlightsdemo-extents-of-shadows-light-frustum-darkened-areas/3410 "2023-03-21T03:33:02Z")

</div>

Hi all, this is my first post in this forum. Long post ahead, because I’ve been trying to learn how lights and shadows work in VTK and i’ve encountered some situations that i cannot explain. I’ve expressed my concerns …

---

## [Python Planes Tutorial Error and Resolution](https://discourse.vtk.org/t/python-planes-tutorial-error-and-resolution/11009)

<div class="topic-metadata">

**Author:** [@JimCAmato](https://discourse.vtk.org/u/JimCAmato)\
**Replies:** 4\
**Last updated:** [March 20, 2023, 10:16pm UTC](https://discourse.vtk.org/t/python-planes-tutorial-error-and-resolution/11009 "2023-03-20T22:16:27Z")

</div>

While working through the python “Planes” tutorial, several errors show up in the console and captions do not appear in the render window. I found that adding import vtkmodules.vtkRenderingFreeType resolves the issue. I …

---

## [How to speed rendering of histogram?](https://discourse.vtk.org/t/how-to-speed-rendering-of-histogram/11006)

<div class="topic-metadata">

**Author:** [@antoine1](https://discourse.vtk.org/u/antoine1)\
**Replies:** 8\
**Last updated:** [March 20, 2023, 4:44pm UTC](https://discourse.vtk.org/t/how-to-speed-rendering-of-histogram/11006 "2023-03-20T16:44:08Z")

</div>

hello, I’m beginner and i just code my first vtk plot link with QT. This plot should represent the histogram of an image. So the input data will just be a std::vector with a size of 65 536. The problem that i encount…

---

## [model.cutFunction.getMTime is not a function](https://discourse.vtk.org/t/model-cutfunction-getmtime-is-not-a-function/11005)

<div class="topic-metadata">

**Author:** [@materdd](https://discourse.vtk.org/u/materdd)\
**Replies:** 1\
**Last updated:** [March 20, 2023, 8:48am UTC](https://discourse.vtk.org/t/model-cutfunction-getmtime-is-not-a-function/11005 "2023-03-20T08:48:29Z")

</div>

I try to use vtk cutter with kitware/vtk.js as the below code. But “model.cutFunction.getMTime is not a function” happens. Do you have some ideas to solve it?? Thank you in advance.

---

## [vtk9.2 vtkOpenFOAMReader Failed to read openFOAM file.](https://discourse.vtk.org/t/vtk9-2-vtkopenfoamreader-failed-to-read-openfoam-file/10987)

<div class="topic-metadata">

**Author:** [@w7v](https://discourse.vtk.org/u/w7v)\
**Replies:** 1\
**Last updated:** [March 20, 2023, 2:44am UTC](https://discourse.vtk.org/t/vtk9-2-vtkopenfoamreader-failed-to-read-openfoam-file/10987 "2023-03-20T02:44:55Z")

</div>

An error occurred when reading openFOAM files in versions after 9.2: corrupted size vs. prev\_size. Crash at line 365 of the vtkStaticCellLinksTemplate.txx: numPts value is 0. In version 9.1 it was successful.

---

## [Why are the cells with reversed normal always black even the Backface property got set?](https://discourse.vtk.org/t/why-are-the-cells-with-reversed-normal-always-black-even-the-backface-property-got-set/11003)

<div class="topic-metadata">

**Author:** [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)\
**Replies:** 2\
**Last updated:** [March 19, 2023, 2:36pm UTC](https://discourse.vtk.org/t/why-are-the-cells-with-reversed-normal-always-black-even-the-backface-property-got-set/11003 "2023-03-19T14:36:06Z")

</div>

Hello,I need to set the one face of the cell with reversed normal blue,and the another face to red.Test code like this: #include \<vtkVersion.h\> #include \<vtkNew.h\> #include \<vtkPolyDataMapper.h\> #include \<vtkProperty.h\>…

---

## [Cmake: impossible to open .h files](https://discourse.vtk.org/t/cmake-impossible-to-open-h-files/10995)

<div class="topic-metadata">

**Author:** [@antoine1](https://discourse.vtk.org/u/antoine1)\
**Replies:** 2\
**Last updated:** [March 19, 2023, 12:26am UTC](https://discourse.vtk.org/t/cmake-impossible-to-open-h-files/10995 "2023-03-19T00:26:47Z")

</div>

Hello, I tried to include vtk to code and to use it but it’s look like cmake was not able to find .h files. i include VTK using this cmake code: set(VTK\_DIR "C:/vtk/VTK-9.2.6-install/lib/cmake/vtk-9.2/") function(add\_…

---

## [Is this a memory leak](https://discourse.vtk.org/t/is-this-a-memory-leak/10997)

<div class="topic-metadata">

**Author:** [@marlon.ma](https://discourse.vtk.org/u/marlon.ma)\
**Replies:** 2\
**Last updated:** [March 19, 2023, 12:20am UTC](https://discourse.vtk.org/t/is-this-a-memory-leak/10997 "2023-03-19T00:20:06Z")

</div>

vtkDebugLeaks has detected LEAKS! Class “vtkMinimalStandardRandomSequence” has 1 instance still around. Class “vtkCellArray” has 1 instance still around. Class “vtkBoxMuellerRandomSequence” has 1 instance still around…

---

## [How to transparently render only the background](https://discourse.vtk.org/t/how-to-transparently-render-only-the-background/10998)

<div class="topic-metadata">

**Author:** [@shanzeipan](https://discourse.vtk.org/u/shanzeipan)\
**Replies:** 2\
**Last updated:** [March 18, 2023, 7:40am UTC](https://discourse.vtk.org/t/how-to-transparently-render-only-the-background/10998 "2023-03-18T07:40:31Z")

</div>

I’m trying to use vtk on pyqt5. I just need to display the model in the background of my window. The background rendered by Renerer is too ugly. Can I make the background of Renerer transparent?

---

## [Distance beteween polydata ojects](https://discourse.vtk.org/t/distance-beteween-polydata-ojects/7159)

<div class="topic-metadata">

**Author:** [@peterneher](https://discourse.vtk.org/u/peterneher)\
**Replies:** 13\
**Last updated:** [March 17, 2023, 4:32pm UTC](https://discourse.vtk.org/t/distance-beteween-polydata-ojects/7159 "2023-03-17T16:32:42Z")

</div>

Hi everyone. Is there a filter to calculate the smallest distance between to polydata objects? Best, Peter

---

## [VTK import is confusing in VTK tests](https://discourse.vtk.org/t/vtk-import-is-confusing-in-vtk-tests/10746)

<div class="topic-metadata">

**Author:** [@lassoan](https://discourse.vtk.org/u/lassoan)\
**Replies:** 9\
**Last updated:** [March 17, 2023, 3:51am UTC](https://discourse.vtk.org/t/vtk-import-is-confusing-in-vtk-tests/10746 "2023-03-17T03:51:16Z")

</div>

VTK tests have been recently reworked to improve robustness of VTK test execution. Unfortunately, this change has also made importing VTK into Python extremely complicated. This would be OK if only VTK core developers wo…

---

## [Which coordinates of SetNormal and SetOrigin of 2 vtkPlanes I must set from points drawn via vtkPolyLineWidget?](https://discourse.vtk.org/t/which-coordinates-of-setnormal-and-setorigin-of-2-vtkplanes-i-must-set-from-points-drawn-via-vtkpolylinewidget/10960)

<div class="topic-metadata">

**Author:** [@BJladika](https://discourse.vtk.org/u/BJladika)\
**Replies:** 1\
**Last updated:** [March 17, 2023, 1:33am UTC](https://discourse.vtk.org/t/which-coordinates-of-setnormal-and-setorigin-of-2-vtkplanes-i-must-set-from-points-drawn-via-vtkpolylinewidget/10960 "2023-03-17T01:33:14Z")

</div>

I’ve a Volume with mapper vtkGPUVolumeRayCastMapper and vtkFixedPointVolumeRayCastMapper and I wanted to make to try to make a basic scissors (scalpel), decided to start with vtkPolyLineWidget and vtkPolyLineRepresentati…

---

## [Show a PLY Pointcloud](https://discourse.vtk.org/t/show-a-ply-pointcloud/10889)

<div class="topic-metadata">

**Author:** [@juanilogo](https://discourse.vtk.org/u/juanilogo)\
**Replies:** 1\
**Last updated:** [March 16, 2023, 8:38pm UTC](https://discourse.vtk.org/t/show-a-ply-pointcloud/10889 "2023-03-16T20:38:04Z")

</div>

Hello, I want to see my pointcloud from a .ply file comming from a 3D scanner. (no cells) With the curren configuration I kan see something but not what desired. I want to see every point as a small sphere or point. D…

---

## [Problem with cmake FetchContent](https://discourse.vtk.org/t/problem-with-cmake-fetchcontent/10967)

<div class="topic-metadata">

**Author:** [@BlackCatRuelle](https://discourse.vtk.org/u/BlackCatRuelle)\
**Replies:** 1\
**Last updated:** [March 16, 2023, 6:03pm UTC](https://discourse.vtk.org/t/problem-with-cmake-fetchcontent/10967 "2023-03-16T18:03:14Z")

</div>

Hi, I am trying to cmake’s FetchContent to build VTK with my project. Cmake failed to configure the project. I tried to set the VTK\_DIR to the VTK source dir and it did work either. Here is my CMakeLists.txt file. Could …

---

## [Is it possible to set the different color for front/back face of a cell?](https://discourse.vtk.org/t/is-it-possible-to-set-the-different-color-for-front-back-face-of-a-cell/10947)

<div class="topic-metadata">

**Author:** [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)\
**Replies:** 5\
**Last updated:** [March 16, 2023, 4:29pm UTC](https://discourse.vtk.org/t/is-it-possible-to-set-the-different-color-for-front-back-face-of-a-cell/10947 "2023-03-16T16:29:17Z")

</div>

Hello,we want to use colors to represent the cell normal direction.For example,on the same cell(or ploy),we want to set one face to blue if this face has cell normal towards to camera,and set the another face to red. Ho…

---

## [Using \`vtkPointPicker.getPointId\` on geometries](https://discourse.vtk.org/t/using-vtkpointpicker-getpointid-on-geometries/10991)

<div class="topic-metadata">

**Author:** [@Kevin\_Sweeney](https://discourse.vtk.org/u/Kevin_Sweeney)\
**Replies:** 2\
**Last updated:** [March 16, 2023, 11:24am UTC](https://discourse.vtk.org/t/using-vtkpointpicker-getpointid-on-geometries/10991 "2023-03-16T11:24:54Z")

</div>

I am making some changes to itk-vtk-viewer code as per Geometry / Point selection · Issue #575 · Kitware/itk-vtk-viewer · GitHub While doing so I am using the getPointId() function from vtkPointPicker to try to select p…

---

## [inheritance vtkDataWriter](https://discourse.vtk.org/t/inheritance-vtkdatawriter/10988)

<div class="topic-metadata">

**Author:** [@w7v](https://discourse.vtk.org/u/w7v)\
**Replies:** 0\
**Last updated:** [March 16, 2023, 5:40am UTC](https://discourse.vtk.org/t/inheritance-vtkdatawriter/10988 "2023-03-16T05:40:30Z")

</div>

After version 9.2, inheriting vtkDataWriter must declare GetObjectDescription(), SetObjectName(), GetObjectName. Is this normal? It seems that this is not required in version 9.1.

---

## [Creating complex concave polygonal surface from points](https://discourse.vtk.org/t/creating-complex-concave-polygonal-surface-from-points/10959)

<div class="topic-metadata">

**Author:** [@Jishnu](https://discourse.vtk.org/u/Jishnu)\
**Replies:** 12\
**Last updated:** [March 16, 2023, 5:01am UTC](https://discourse.vtk.org/t/creating-complex-concave-polygonal-surface-from-points/10959 "2023-03-16T05:01:53Z")

</div>

Hi All, I am working on a project where I need to generate surfaces from user-defined points to create polygons. For convex polygons, I am able to generate surfaces using the Delaunay2D triangulation method without any …

---

## [deleted](https://discourse.vtk.org/t/deleted/10975)

<div class="topic-metadata">

**Author:** [@MissMac](https://discourse.vtk.org/u/MissMac)\
**Replies:** 0\
**Last updated:** [March 15, 2023, 10:43am UTC](https://discourse.vtk.org/t/deleted/10975 "2023-03-15T10:43:06Z")

</div>

deleted

---

## [I want to convert UnstructuredGrid data to PolyData, and then to ImageData, so that I can use the Marching cubes algorithm.](https://discourse.vtk.org/t/i-want-to-convert-unstructuredgrid-data-to-polydata-and-then-to-imagedata-so-that-i-can-use-the-marching-cubes-algorithm/10971)

<div class="topic-metadata">

**Author:** [@liuyankui1998](https://discourse.vtk.org/u/liuyankui1998)\
**Replies:** 1\
**Last updated:** [March 15, 2023, 1:26pm UTC](https://discourse.vtk.org/t/i-want-to-convert-unstructuredgrid-data-to-polydata-and-then-to-imagedata-so-that-i-can-use-the-marching-cubes-algorithm/10971 "2023-03-15T13:26:51Z")

</div>

I use vtkSurfaceDataSetFilter to convert UnStrcuturedGrid Data to PolyData,then transfer the converted data into the method I wrote according to the PolyDataToImageData provided by VTK. the main function: vtkSmartPoint…

---

## [Convert UnstructuredGrid data to PolyData and then to ImageData](https://discourse.vtk.org/t/convert-unstructuredgrid-data-to-polydata-and-then-to-imagedata/10974)

<div class="topic-metadata">

**Author:** [@liuyankui1998](https://discourse.vtk.org/u/liuyankui1998)\
**Replies:** 0\
**Last updated:** [March 15, 2023, 8:57am UTC](https://discourse.vtk.org/t/convert-unstructuredgrid-data-to-polydata-and-then-to-imagedata/10974 "2023-03-15T08:57:54Z")

</div>

here is my main function: here is my PolyDataToImageData function: An error occurred at the terminal： I hope someone can help me！

---

## [vtkLegendBoxActor is not supportting to set text font size](https://discourse.vtk.org/t/vtklegendboxactor-is-not-supportting-to-set-text-font-size/10898)

<div class="topic-metadata">

**Author:** [@Jishnu](https://discourse.vtk.org/u/Jishnu)\
**Replies:** 4\
**Last updated:** [March 15, 2023, 3:30am UTC](https://discourse.vtk.org/t/vtklegendboxactor-is-not-supportting-to-set-text-font-size/10898 "2023-03-15T03:30:57Z")

</div>

Hi, I am using vtkLegendBoxActor to show legends in a plot. However, I am unable to control the font size of text in the legend. I have tried the following: legendActor=vtkLegendBoxActor() textProp=vtkTextProperty() t…

---

## [ExitCallback() closes the window](https://discourse.vtk.org/t/exitcallback-closes-the-window/10949)

<div class="topic-metadata">

**Author:** [@marcomusy](https://discourse.vtk.org/u/marcomusy)\
**Replies:** 2\
**Last updated:** [March 14, 2023, 1:29am UTC](https://discourse.vtk.org/t/exitcallback-closes-the-window/10949 "2023-03-14T01:29:34Z")

</div>

I notice this unexpected behavior, calling iren.ExitCallback() closes the rendering window which pops up again at the next iren.Start(): import time import vtk cone = vtk.vtkConeSource() mapper = vtk.vtkPolyDataMapper(…

---

## [Remotely control pvserver from web app that uses vtk.js](https://discourse.vtk.org/t/remotely-control-pvserver-from-web-app-that-uses-vtk-js/10953)

<div class="topic-metadata">

**Author:** [@AlbertoP](https://discourse.vtk.org/u/AlbertoP)\
**Replies:** 4\
**Last updated:** [March 15, 2023, 1:43am UTC](https://discourse.vtk.org/t/remotely-control-pvserver-from-web-app-that-uses-vtk-js/10953 "2023-03-15T01:43:44Z")

</div>

Hello, I would like to use RemoteView to show CFD simulations results. Results are processed by pvserver, which already has a reader for the data format, and the client application should control pvserver to set up what…

---

## [VTK 9.2.6 missing dll](https://discourse.vtk.org/t/vtk-9-2-6-missing-dll/10965)

<div class="topic-metadata">

**Author:** [@antoine1](https://discourse.vtk.org/u/antoine1)\
**Replies:** 4\
**Last updated:** [March 14, 2023, 4:28pm UTC](https://discourse.vtk.org/t/vtk-9-2-6-missing-dll/10965 "2023-03-14T16:28:27Z")

</div>

Hello everyone, I’m new in vtk and i try to add it to my cmake for a new project with QT. I had vtk to my cmake like this: set(VTK\_DIR "C:/vtk/VTK-9.2.6-install/lib/cmake/vtk-9.2/") find\_package(VTK REQUIRED) target…

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

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