# Latest

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

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

**Page:** 236

---

## [Include directories and linker dependencies](https://discourse.vtk.org/t/include-directories-and-linker-dependencies/1922)

<div class="topic-metadata">

**Author:** [@toddy](https://discourse.vtk.org/u/toddy)\
**Replies:** 1\
**Last updated:** [October 14, 2019, 2:51pm UTC](https://discourse.vtk.org/t/include-directories-and-linker-dependencies/1922 "2019-10-14T14:51:17Z")

</div>

Can someone please explain where/how additional include directories and library dependencies are added to the VTK modules in the cmake files? Are they loaded from a configuration path/file somewhere?

---

## [Saving images with a key press](https://discourse.vtk.org/t/saving-images-with-a-key-press/1839)

<div class="topic-metadata">

**Author:** [@1111](https://discourse.vtk.org/u/1111)\
**Replies:** 13\
**Last updated:** [October 14, 2019, 3:22am UTC](https://discourse.vtk.org/t/saving-images-with-a-key-press/1839 "2019-10-14T03:22:05Z")

</div>

Hi, I am creating a program to save raw data of slice plane by pressing “c” based on KeypressEvents. I was able to create a part that saves the raw data by pressing a key, but I don’t know how to adapt the cutout plane…

---

## [Where is \_\_VTK\_WRAP\_\_ defined?](https://discourse.vtk.org/t/where-is-vtk-wrap-defined/1917)

<div class="topic-metadata">

**Author:** [@toddy](https://discourse.vtk.org/u/toddy)\
**Replies:** 2\
**Last updated:** [October 12, 2019, 11:51pm UTC](https://discourse.vtk.org/t/where-is-vtk-wrap-defined/1917 "2019-10-12T23:51:30Z")

</div>

Building from VTK master with MSVC on Windows, VTK\_WRAP seems to be defined in vtkWrappingHints.h. How/where do I turn it off? If I turn off VTK\_MODULE\_ENABLE\_VTK\_WrappingTools in cmake I get an error cannot open file…

---

## [vtkResampleToImage ignore hidden cells in vtkSmartVolumeMapper](https://discourse.vtk.org/t/vtkresampletoimage-ignore-hidden-cells-in-vtksmartvolumemapper/1830)

<div class="topic-metadata">

**Author:** [@jal](https://discourse.vtk.org/u/jal)\
**Replies:** 4\
**Last updated:** [October 11, 2019, 11:46pm UTC](https://discourse.vtk.org/t/vtkresampletoimage-ignore-hidden-cells-in-vtksmartvolumemapper/1830 "2019-10-11T23:46:14Z")

</div>

Hi, is it possible to ignore cells marked as hidden when doing volume rendering of the output of vtkResampleToImage? My pipeline is roughly: unstructuredgrid-\>ImageResample-\>smartvolumemapper. ResampleToImage seems to…

---

## [How can i calculate the surface area of a boundaryEdges?](https://discourse.vtk.org/t/how-can-i-calculate-the-surface-area-of-a-boundaryedges/1915)

<div class="topic-metadata">

**Author:** [@Matthijs\_Hendriks](https://discourse.vtk.org/u/Matthijs_Hendriks)\
**Replies:** 5\
**Last updated:** [October 11, 2019, 10:55pm UTC](https://discourse.vtk.org/t/how-can-i-calculate-the-surface-area-of-a-boundaryedges/1915 "2019-10-11T22:55:36Z")

</div>

I have the following code. Get a 0 value for the surface area. Is the slice of the boundaryEdges to small? If yess, how do you solve the slice thickness? boundaryEdges = vtk.vtkFeatureEdges() boundaryEdges.SetIn…

---

## [Access time dependent PointData in vtkStructuredGrid](https://discourse.vtk.org/t/access-time-dependent-pointdata-in-vtkstructuredgrid/1893)

<div class="topic-metadata">

**Author:** [@joboog](https://discourse.vtk.org/u/joboog)\
**Replies:** 1\
**Last updated:** [October 11, 2019, 8:27pm UTC](https://discourse.vtk.org/t/access-time-dependent-pointdata-in-vtkstructuredgrid/1893 "2019-10-11T20:27:22Z")

</div>

Dear vtk-users, I am using the vtk library in python to importe a netcdf file. The netcdf file contains data of two variables for different time steps. It will be converted into a vtkStructuredGrid The vtkStructuredG…

---

## [What is best way to get the highest point (z-axis) in a polydata?](https://discourse.vtk.org/t/what-is-best-way-to-get-the-highest-point-z-axis-in-a-polydata/1833)

<div class="topic-metadata">

**Author:** [@Matthijs\_Hendriks](https://discourse.vtk.org/u/Matthijs_Hendriks)\
**Replies:** 5\
**Last updated:** [October 11, 2019, 8:13pm UTC](https://discourse.vtk.org/t/what-is-best-way-to-get-the-highest-point-z-axis-in-a-polydata/1833 "2019-10-11T20:13:40Z")

</div>

Is it possible to get the highest point (z-axis) in a polydata. The GetBound() function in vtkActor is not usefull because it only give the boundary

---

## [Multiple viewport perspectives of a single vtkRenderer](https://discourse.vtk.org/t/multiple-viewport-perspectives-of-a-single-vtkrenderer/1891)

<div class="topic-metadata">

**Author:** [@banesullivan](https://discourse.vtk.org/u/banesullivan)\
**Replies:** 13\
**Last updated:** [October 11, 2019, 7:55pm UTC](https://discourse.vtk.org/t/multiple-viewport-perspectives-of-a-single-vtkrenderer/1891 "2019-10-11T19:55:22Z")

</div>

Is it possible to have a render window with multiple viewports and have only one vtkRenderer instance that each of the viewports views from a different perspective? Currently, the only way I have been able to do this is…

---

## [Export from VTK to LumionRT - with colors](https://discourse.vtk.org/t/export-from-vtk-to-lumionrt-with-colors/1895)

<div class="topic-metadata">

**Author:** [@Mskovmand](https://discourse.vtk.org/u/Mskovmand)\
**Replies:** 5\
**Last updated:** [October 11, 2019, 5:15am UTC](https://discourse.vtk.org/t/export-from-vtk-to-lumionrt-with-colors/1895 "2019-10-11T05:15:27Z")

</div>

I’m trying to assist a colleague in creating some “interface” between VTK generated models and LumionRT, where we seek to extract a colored poly data mesh to Lumion, so far without success. I can easily extract this dat…

---

## [How to replace Geovis module](https://discourse.vtk.org/t/how-to-replace-geovis-module/1522)

<div class="topic-metadata">

**Author:** [@tbenega](https://discourse.vtk.org/u/tbenega)\
**Replies:** 5\
**Last updated:** [October 11, 2019, 12:30am UTC](https://discourse.vtk.org/t/how-to-replace-geovis-module/1522 "2019-10-11T00:30:49Z")

</div>

Hello guys, I’m new on VTK and I’m trying to reproduce the examples on the topic 9.1 Geographic Views and Representation on the Users Guide book using Python. The thing is it seems that Geovis was removed because I got…

---

## [proj 6.2.0 compatibility?](https://discourse.vtk.org/t/proj-6-2-0-compatibility/1729)

<div class="topic-metadata">

**Author:** [@Richard\_Shaw](https://discourse.vtk.org/u/Richard_Shaw)\
**Replies:** 5\
**Last updated:** [October 10, 2019, 8:29pm UTC](https://discourse.vtk.org/t/proj-6-2-0-compatibility/1729 "2019-10-10T20:29:15Z")

</div>

I’m trying to help out a fellow Fedora packager. I maintain FreeCAD for Fedora which uses vtk. One of it’s dependencies is of course proj which has been updated to 6.2.0. While trying to build vtk 8.2.0 with proj 6.2.0 …

---

## [VTK.js - Model don't get interactor / mouse event + OBJReader](https://discourse.vtk.org/t/vtk-js-model-dont-get-interactor-mouse-event-objreader/1903)

<div class="topic-metadata">

**Author:** [@HugoC](https://discourse.vtk.org/u/HugoC)\
**Replies:** 4\
**Last updated:** [October 10, 2019, 2:37pm UTC](https://discourse.vtk.org/t/vtk-js-model-dont-get-interactor-mouse-event-objreader/1903 "2019-10-10T14:37:25Z")

</div>

Hello, 1/ I’m facing a problem with vtkRenderWindowInteractor and i don’t know what’s going wrong. The model is correctly displayed but no interaction with it is possible, even though i followed the examples for mouse e…

---

## [What’s the problem? Somebody help me](https://discourse.vtk.org/t/what-s-the-problem-somebody-help-me/1890)

<div class="topic-metadata">

**Author:** [@KeyboardMan](https://discourse.vtk.org/u/KeyboardMan)\
**Replies:** 8\
**Last updated:** [October 10, 2019, 12:30pm UTC](https://discourse.vtk.org/t/what-s-the-problem-somebody-help-me/1890 "2019-10-10T12:30:06Z")

</div>

I made a mistake when using vtkBooleanOperationPolyDataFilter。 ERROR: In E:\\VTKLib\\VTK-8.2.0\\Common\\DataModel\\vtkPointLocator.cxx, line 866 vtkPointLocator (0x15aa4068): No points to subdivide Generic Warning: In E:\\…

---

## [What's the problem? How to deal?](https://discourse.vtk.org/t/whats-the-problem-how-to-deal/1884)

<div class="topic-metadata">

**Author:** [@tdchen](https://discourse.vtk.org/u/tdchen)\
**Replies:** 4\
**Last updated:** [October 9, 2019, 10:28pm UTC](https://discourse.vtk.org/t/whats-the-problem-how-to-deal/1884 "2019-10-09T22:28:18Z")

</div>

My program used to run quite fluently. It used the vtk7.1 static library. But today when it was running on a new server with win10, it shows the following error and than stopped: “ERROR: in …\\VTK\\Rendering\\OpenGL2\\vtk…

---

## [vtk Boolean Operation Poly Data Filter](https://discourse.vtk.org/t/vtk-boolean-operation-poly-data-filter/1476)

<div class="topic-metadata">

**Author:** [@at123](https://discourse.vtk.org/u/at123)\
**Replies:** 7\
**Last updated:** [October 9, 2019, 3:17am UTC](https://discourse.vtk.org/t/vtk-boolean-operation-poly-data-filter/1476 "2019-10-09T03:17:51Z")

</div>

Hello, I have a vtkBooleanOperationPolyDataFilter and I want to add two polydata. I keep getting this error: Input port 0 of algorithm vtkBooleanOperationPolyDataFilter(0x7fd03000e4e0) has 0 connections but is not opti…

---

## [Crash when using vtkQWidgetWidget](https://discourse.vtk.org/t/crash-when-using-vtkqwidgetwidget/1387)

<div class="topic-metadata">

**Author:** [@cpinter](https://discourse.vtk.org/u/cpinter)\
**Replies:** 7\
**Last updated:** [October 8, 2019, 5:09pm UTC](https://discourse.vtk.org/t/crash-when-using-vtkqwidgetwidget/1387 "2019-10-08T17:09:36Z")

</div>

Hi all, I’m trying to use the relatively new class vtkQWidgetWidget in SlicerVR (to show a Qt widget in VR that can be manipulated using a laser pointer), and I keep getting a crash when rendering the scene after adding…

---

## [vtkCellPicker very slow](https://discourse.vtk.org/t/vtkcellpicker-very-slow/1881)

<div class="topic-metadata">

**Author:** [@EmileSonneveld](https://discourse.vtk.org/u/EmileSonneveld)\
**Replies:** 5\
**Last updated:** [October 8, 2019, 3:51pm UTC](https://discourse.vtk.org/t/vtkcellpicker-very-slow/1881 "2019-10-08T15:51:12Z")

</div>

Hi, I am implementing some point picking on a mesh with 127000 triangles. I’d love to pick points on the mesh while the user is interacting, but picking can take up to 300ms. I tried with a mesh of similar size in thre…

---

## [Building VTK modules with dependencies results in race condition in make](https://discourse.vtk.org/t/building-vtk-modules-with-dependencies-results-in-race-condition-in-make/1711)

<div class="topic-metadata">

**Author:** [@lhofmann](https://discourse.vtk.org/u/lhofmann)\
**Replies:** 7\
**Last updated:** [October 8, 2019, 3:10pm UTC](https://discourse.vtk.org/t/building-vtk-modules-with-dependencies-results-in-race-condition-in-make/1711 "2019-10-08T15:10:28Z")

</div>

I have a project that builds multiple VTK modules, and some depend on other modules built in the same project. There seems to be some kind of race condition in the resulting Makefiles, that causes an error if a module Mo…

---

## [Opacity when mapper does not interpret colors as scalar (setIndependentComponents (0)](https://discourse.vtk.org/t/opacity-when-mapper-does-not-interpret-colors-as-scalar-setindependentcomponents-0/1848)

<div class="topic-metadata">

**Author:** [@rjsgml5698](https://discourse.vtk.org/u/rjsgml5698)\
**Replies:** 4\
**Last updated:** [October 7, 2019, 7:09pm UTC](https://discourse.vtk.org/t/opacity-when-mapper-does-not-interpret-colors-as-scalar-setindependentcomponents-0/1848 "2019-10-07T19:09:40Z")

</div>

Is there a way to adjust opacity if the mapper doesn’t interpret colors as scalars?(setIndependentComponents (0)) setOpacity does not apply. And one more question. Does anyone have any documentation to reference about v…

---

## [How to reconstruct surface from many contours?](https://discourse.vtk.org/t/how-to-reconstruct-surface-from-many-contours/1875)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 1\
**Last updated:** [October 7, 2019, 6:05pm UTC](https://discourse.vtk.org/t/how-to-reconstruct-surface-from-many-contours/1875 "2019-10-07T18:05:28Z")

</div>

I have several contours, and I want to reconstruct a surface. The vtkVoxelContourToSurface don’t work, because it requires that each contour has a constant Z. However, I want to reconstruct a bending cylinder, in which …

---

## [color volume without volumeproperty.setColor](https://discourse.vtk.org/t/color-volume-without-volumeproperty-setcolor/1877)

<div class="topic-metadata">

**Author:** [@svabhishek29](https://discourse.vtk.org/u/svabhishek29)\
**Replies:** 1\
**Last updated:** [October 7, 2019, 5:59pm UTC](https://discourse.vtk.org/t/color-volume-without-volumeproperty-setcolor/1877 "2019-10-07T17:59:14Z")

</div>

Hi, I have a MRI scan that i have applied lut with proper windowing, when i try to volume render this colored MRI i still get grayscale volume. i have tried using volumeProperty.SetIndependentComponents(False) but then…

---

## [VTK QT](https://discourse.vtk.org/t/vtk-qt/1880)

<div class="topic-metadata">

**Author:** [@bin](https://discourse.vtk.org/u/bin)\
**Replies:** 0\
**Last updated:** [October 7, 2019, 2:12pm UTC](https://discourse.vtk.org/t/vtk-qt/1880 "2019-10-07T14:12:17Z")

</div>

I use VTK+QT to compile together. The two functions are DICOM read rebuild and camera capture image read video stream. My VTKactor is displayed in QVTKwidget, how can I make the read video stream appear in QVTKwidget? Be…

---

## [What is the function to extract colormap from volume data?](https://discourse.vtk.org/t/what-is-the-function-to-extract-colormap-from-volume-data/1721)

<div class="topic-metadata">

**Author:** [@rjsgml5698](https://discourse.vtk.org/u/rjsgml5698)\
**Replies:** 6\
**Last updated:** [September 10, 2019, 10:30pm UTC](https://discourse.vtk.org/t/what-is-the-function-to-extract-colormap-from-volume-data/1721 "2019-09-10T22:30:05Z")

</div>

Hello. I have two questions. language : python Does SetExtractionModeToLargestRegion () not apply to imagedata? only polydata? What is the function to extract colormap from volume data? Thank you

---

## [Mesh From Contours](https://discourse.vtk.org/t/mesh-from-contours/896)

<div class="topic-metadata">

**Author:** [@medicalus](https://discourse.vtk.org/u/medicalus)\
**Replies:** 6\
**Last updated:** [October 7, 2019, 3:38am UTC](https://discourse.vtk.org/t/mesh-from-contours/896 "2019-10-07T03:38:57Z")

</div>

Hi Guys, I have a question regarding the algorithm from vtk to use for creating a mesh out of contours I have. The contours are not necessarily parallel and the structure is a vessel with one/two branches. What is the g…

---

## [Unfold types and function on vtk.org](https://discourse.vtk.org/t/unfold-types-and-function-on-vtk-org/1819)

<div class="topic-metadata">

**Author:** [@Charles\_Gueunet](https://discourse.vtk.org/u/Charles_Gueunet)\
**Replies:** 4\
**Last updated:** [October 7, 2019, 2:08am UTC](https://discourse.vtk.org/t/unfold-types-and-function-on-vtk-org/1819 "2019-10-07T02:08:25Z")

</div>

Hello, There is a bug on the current vtk website, I can’t unfold Public Types, Public Member Functions and other list on my browser when browsing the documentation (example here). Clicking on the triangle has no effect…

---

## [Use of vtkXMLImageDataReader](https://discourse.vtk.org/t/use-of-vtkxmlimagedatareader/1827)

<div class="topic-metadata">

**Author:** [@rjsgml5698](https://discourse.vtk.org/u/rjsgml5698)\
**Replies:** 10\
**Last updated:** [October 6, 2019, 5:01pm UTC](https://discourse.vtk.org/t/use-of-vtkxmlimagedatareader/1827 "2019-10-06T17:01:39Z")

</div>

Hello. I hava a question. I want to load two urls (.vti ​​files) sequentially. Existing code: vtireader = vtkXMLImageDataReader.newInstance({ fetchGzip: true }); vtir…

---

## [Create a stl model from binary images with specific spacing.](https://discourse.vtk.org/t/create-a-stl-model-from-binary-images-with-specific-spacing/1868)

<div class="topic-metadata">

**Author:** [@qoqo](https://discourse.vtk.org/u/qoqo)\
**Replies:** 2\
**Last updated:** [October 5, 2019, 11:00pm UTC](https://discourse.vtk.org/t/create-a-stl-model-from-binary-images-with-specific-spacing/1868 "2019-10-05T23:00:42Z")

</div>

Dear VTK users, I am a newbie VTK user (python). Does anyone know how to generate a stl model from 3 dimentional binary images? For example, I have a folder including 800 jpg images. Then I need to stack them into 3D mat…

---

## [Why the number of Cells higher than the number of Points?](https://discourse.vtk.org/t/why-the-number-of-cells-higher-than-the-number-of-points/1854)

<div class="topic-metadata">

**Author:** [@sherinnovation](https://discourse.vtk.org/u/sherinnovation)\
**Replies:** 3\
**Last updated:** [October 5, 2019, 2:17pm UTC](https://discourse.vtk.org/t/why-the-number-of-cells-higher-than-the-number-of-points/1854 "2019-10-05T14:17:10Z")

</div>

Hi, I have a polygonal mesh which when I load in paraview or programmaticlly load in vtk, the number of cells(23336) is found higher than the number of points(11754). This is confusing to me because as I understand the c…

---

## [Find Pixel Coordinates of 3D Volume (DICOM) Before and After Multi-planar Reformatting (MPR) with vtkImageReslice](https://discourse.vtk.org/t/find-pixel-coordinates-of-3d-volume-dicom-before-and-after-multi-planar-reformatting-mpr-with-vtkimagereslice/1872)

<div class="topic-metadata">

**Author:** [@MichelleKline](https://discourse.vtk.org/u/MichelleKline)\
**Replies:** 1\
**Last updated:** [October 5, 2019, 3:08am UTC](https://discourse.vtk.org/t/find-pixel-coordinates-of-3d-volume-dicom-before-and-after-multi-planar-reformatting-mpr-with-vtkimagereslice/1872 "2019-10-05T03:08:16Z")

</div>

Hello, I would like to compare the value of a voxel in a DICOM volume before and after reformatting (reslicing) the volume. I am stuck on this and hope someone may know how to do this. Here is what I do: Read a DICO…

---

## [Install library with co-dependant modules](https://discourse.vtk.org/t/install-library-with-co-dependant-modules/1866)

<div class="topic-metadata">

**Author:** [@Charles\_Gueunet](https://discourse.vtk.org/u/Charles_Gueunet)\
**Replies:** 1\
**Last updated:** [October 4, 2019, 7:47pm UTC](https://discourse.vtk.org/t/install-library-with-co-dependant-modules/1866 "2019-10-04T19:47:11Z")

</div>

I have a library which have a lot of vtk modules and I am updating those to the new VTK modules. Some of these modules depends on each other, which means I have encountered the race condition described in this post. Th…

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

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