# Latest

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

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

**Page:** 246

---

## [cmake: VTK\_PYTHON\_VERSION ignored, python 3.5 not found (VTK 8.2, ubuntu 16.04)](https://discourse.vtk.org/t/cmake-vtk-python-version-ignored-python-3-5-not-found-vtk-8-2-ubuntu-16-04/1216)

<div class="topic-metadata">

**Author:** [@sbucc](https://discourse.vtk.org/u/sbucc)\
**Replies:** 7\
**Last updated:** [June 27, 2019, 5:14pm UTC](https://discourse.vtk.org/t/cmake-vtk-python-version-ignored-python-3-5-not-found-vtk-8-2-ubuntu-16-04/1216 "2019-06-27T17:14:28Z")

</div>

I’m trying to build VTK 8.2 with bindings for python 3.5, so I set VTK\_PYTHON\_VERSION=3 (or 3.5), but cmake can’t find it, it finds just 2.7 instead: Could NOT find PythonInterp: Found unsuitable version “2.7.12”, but …

---

## [Outline Points Marker Style](https://discourse.vtk.org/t/outline-points-marker-style/1220)

<div class="topic-metadata">

**Author:** [@banesullivan](https://discourse.vtk.org/u/banesullivan)\
**Replies:** 0\
**Last updated:** [June 27, 2019, 3:37am UTC](https://discourse.vtk.org/t/outline-points-marker-style/1220 "2019-06-27T03:37:46Z")

</div>

Is there a way to change how points are displayed? Specifically, is it possible to add an outline to all points similar to the matplotlib figure below matplotlib figure of some hard data points and an interpolated gr…

---

## [Grid for unstructured data in separate file?](https://discourse.vtk.org/t/grid-for-unstructured-data-in-separate-file/1031)

<div class="topic-metadata">

**Author:** [@janlv](https://discourse.vtk.org/u/janlv)\
**Replies:** 1\
**Last updated:** [June 27, 2019, 1:02am UTC](https://discourse.vtk.org/t/grid-for-unstructured-data-in-separate-file/1031 "2019-06-27T01:02:29Z")

</div>

Hi, to save disk space when writing time-data on a constant unstructured grid, it would be nice to write grid points and cells once in a separate file and reference this file in the subsequent .vtu files? Is that possib…

---

## [How to clean rendering window in Qt (PySide2, Qt5)](https://discourse.vtk.org/t/how-to-clean-rendering-window-in-qt-pyside2-qt5/1217)

<div class="topic-metadata">

**Author:** [@sbucc](https://discourse.vtk.org/u/sbucc)\
**Replies:** 2\
**Last updated:** [June 26, 2019, 8:54pm UTC](https://discourse.vtk.org/t/how-to-clean-rendering-window-in-qt-pyside2-qt5/1217 "2019-06-26T20:54:49Z")

</div>

I’m writing a viewer with python 3.5 and Qt5, using PySide2. How do I completely wipe or unload the existing mesh from a rendering window? I just want the existing mesh to disappear when I click a button. I’m rendering…

---

## [display patient info in the render window](https://discourse.vtk.org/t/display-patient-info-in-the-render-window/1213)

<div class="topic-metadata">

**Author:** [@Marco\_Festugato](https://discourse.vtk.org/u/Marco_Festugato)\
**Replies:** 1\
**Last updated:** [June 26, 2019, 10:54am UTC](https://discourse.vtk.org/t/display-patient-info-in-the-render-window/1213 "2019-06-26T10:54:21Z")

</div>

Hello, I have 200 DICOM images of which I have successfully performed volume rendering. Now I want my window to also display some information about the patient (like ID patient, type of TC, …), how can I do that? Thanks…

---

## [why can't unload vtkCommonCore.dll](https://discourse.vtk.org/t/why-cant-unload-vtkcommoncore-dll/1200)

<div class="topic-metadata">

**Author:** [@pingdan](https://discourse.vtk.org/u/pingdan)\
**Replies:** 1\
**Last updated:** [June 25, 2019, 1:28pm UTC](https://discourse.vtk.org/t/why-cant-unload-vtkcommoncore-dll/1200 "2019-06-25T13:28:06Z")

</div>

with vs2013, I use vtk in a mfc dll (just add four lines #include \<vtkAutoInit.h\> VTK\_MODULE\_INIT(vtkRenderingFreeType); VTK\_MODULE\_INIT(vtkInteractionStyle); VTK\_MODULE\_INIT(vtkRenderingOpenGL2); VTK\_MODULE\_INIT(vtkRe…

---

## [vtkColorMaps getPresetByName with vtk.js as external script](https://discourse.vtk.org/t/vtkcolormaps-getpresetbyname-with-vtk-js-as-external-script/1183)

<div class="topic-metadata">

**Author:** [@PBrockmann](https://discourse.vtk.org/u/PBrockmann)\
**Replies:** 3\
**Last updated:** [June 25, 2019, 10:58am UTC](https://discourse.vtk.org/t/vtkcolormaps-getpresetbyname-with-vtk-js-as-external-script/1183 "2019-06-25T10:58:35Z")

</div>

From https://kitware.github.io/vtk-js/examples/ScalarToRGBA.html there are those lines to preset a lookup table: import vtkColorMaps from 'vtk.js/Sources/Rendering/Core/ColorTransferFunction/ColorMaps'; import vtkColor…

---

## [CheckCXXSourceRuns bug?](https://discourse.vtk.org/t/checkcxxsourceruns-bug/1188)

<div class="topic-metadata">

**Author:** [@lorensen](https://discourse.vtk.org/u/lorensen)\
**Replies:** 4\
**Last updated:** [June 25, 2019, 1:24pm UTC](https://discourse.vtk.org/t/checkcxxsourceruns-bug/1188 "2019-06-25T13:24:44Z")

</div>

Folks, I’m trying to use VTK/CMake/CheckCXXSourceRuns.cmake. My CXX file runs and checks to see if a certain capability works correctly. The VTK version of the cmake macro reports success if the program compiles, no…

---

## [How to Highlight the specified area on the slices obtained by VTKImageReslices](https://discourse.vtk.org/t/how-to-highlight-the-specified-area-on-the-slices-obtained-by-vtkimagereslices/1209)

<div class="topic-metadata">

**Author:** [@WtDMaO](https://discourse.vtk.org/u/WtDMaO)\
**Replies:** 0\
**Last updated:** [June 25, 2019, 8:07am UTC](https://discourse.vtk.org/t/how-to-highlight-the-specified-area-on-the-slices-obtained-by-vtkimagereslices/1209 "2019-06-25T08:07:01Z")

</div>

Actually, I consider this matter as a problem of coordinate transformation. What I want is to highlight the specified area like lesion on the CT. This is easy to achieve while the CT is normal like this http://vtk.104…

---

## [How to open Nrrd File using mapper/actor](https://discourse.vtk.org/t/how-to-open-nrrd-file-using-mapper-actor/1202)

<div class="topic-metadata">

**Author:** [@Script\_K](https://discourse.vtk.org/u/Script_K)\
**Replies:** 2\
**Last updated:** [June 25, 2019, 12:06am UTC](https://discourse.vtk.org/t/how-to-open-nrrd-file-using-mapper-actor/1202 "2019-06-25T00:06:26Z")

</div>

Hi. I want to make a program that prints the nrrd file. I wrote the code like this and it prints only black screen with nothing. I can not find any problems with other code. I would appreciate it if you could see wha…

---

## [How to acquire the histogram statistic data from the vtkPolyData?](https://discourse.vtk.org/t/how-to-acquire-the-histogram-statistic-data-from-the-vtkpolydata/1203)

<div class="topic-metadata">

**Author:** [@Kim\_William](https://discourse.vtk.org/u/Kim_William)\
**Replies:** 0\
**Last updated:** [June 24, 2019, 9:09am UTC](https://discourse.vtk.org/t/how-to-acquire-the-histogram-statistic-data-from-the-vtkpolydata/1203 "2019-06-24T09:09:27Z")

</div>

Hi all :slight\_smile: I want to acquire the histogram statistics data from a specific row, after loading the 3D model file. (ex, Max / Min / Average / Std) In OpenCV, it can acquire the data using the as below code: c…

---

## [how to use vtk in a mfc dll](https://discourse.vtk.org/t/how-to-use-vtk-in-a-mfc-dll/1201)

<div class="topic-metadata">

**Author:** [@pingdan](https://discourse.vtk.org/u/pingdan)\
**Replies:** 0\
**Last updated:** [June 24, 2019, 8:09am UTC](https://discourse.vtk.org/t/how-to-use-vtk-in-a-mfc-dll/1201 "2019-06-24T08:09:08Z")

</div>

with vs2013, vtk8.1, I create a mfc dll with a mfc dialog, in this dialog, there is a static control which is parent of vtkrenderwindow.The dialog create as a modaless dialog,when the main exe load the dll,it will create…

---

## [z](https://discourse.vtk.org/t/z/1197)

<div class="topic-metadata">

**Author:** [@Simaas](https://discourse.vtk.org/u/Simaas)\
**Replies:** 1\
**Last updated:** [June 22, 2019, 3:48pm UTC](https://discourse.vtk.org/t/z/1197 "2019-06-22T15:48:04Z")

</div>

z

---

## [conversion of vtk data to matlab format](https://discourse.vtk.org/t/conversion-of-vtk-data-to-matlab-format/1194)

<div class="topic-metadata">

**Author:** [@sourav0921](https://discourse.vtk.org/u/sourav0921)\
**Replies:** 0\
**Last updated:** [June 22, 2019, 10:39am UTC](https://discourse.vtk.org/t/conversion-of-vtk-data-to-matlab-format/1194 "2019-06-22T10:39:34Z")

</div>

Hi, I am simulating two particle collision using LIGGGHTS software. The output particle data are generated in .vtk format. I only able to visualize the particle data not able to get into spreadsheet format. Can you kind…

---

## [consider a specific float value as a NaN in a vtkColorTransferFunction](https://discourse.vtk.org/t/consider-a-specific-float-value-as-a-nan-in-a-vtkcolortransferfunction/1185)

<div class="topic-metadata">

**Author:** [@PBrockmann](https://discourse.vtk.org/u/PBrockmann)\
**Replies:** 1\
**Last updated:** [June 21, 2019, 7:44pm UTC](https://discourse.vtk.org/t/consider-a-specific-float-value-as-a-nan-in-a-vtkcolortransferfunction/1185 "2019-06-21T19:44:00Z")

</div>

Hi, I am wondering if it could be interesting to add a function to vtkColorTransferFunction to define a specific float value to act as Nan values. Nan values are indeed perfectly well handled by the lookup.setNanColor(…

---

## [Is AR possible with an HTC Vive Pro?](https://discourse.vtk.org/t/is-ar-possible-with-an-htc-vive-pro/821)

<div class="topic-metadata">

**Author:** [@Benjamin\_Navarro](https://discourse.vtk.org/u/Benjamin_Navarro)\
**Replies:** 10\
**Last updated:** [June 21, 2019, 3:31pm UTC](https://discourse.vtk.org/t/is-ar-possible-with-an-htc-vive-pro/821 "2019-06-21T15:31:02Z")

</div>

Hello, While looking for a high level framework to create some simple virtual reality applications, I stumbled upon the OpenVR module of VTK. It looks very promising but since I have an HTC Vive Pro with two front came…

---

## [vtk extruded polygon stl flipped normal](https://discourse.vtk.org/t/vtk-extruded-polygon-stl-flipped-normal/1167)

<div class="topic-metadata">

**Author:** [@ngokhale](https://discourse.vtk.org/u/ngokhale)\
**Replies:** 3\
**Last updated:** [June 21, 2019, 9:19am UTC](https://discourse.vtk.org/t/vtk-extruded-polygon-stl-flipped-normal/1167 "2019-06-21T09:19:56Z")

</div>

I am using vtk python to extrude a polygon, and then write out the extrusion to an stl file. The stl file gets written out with all the face normals pointing ‘outwards’, except for the base, for which the normal seems to…

---

## [Logo (vtkactor2d) on the top right](https://discourse.vtk.org/t/logo-vtkactor2d-on-the-top-right/1190)

<div class="topic-metadata">

**Author:** [@zandarina](https://discourse.vtk.org/u/zandarina)\
**Replies:** 0\
**Last updated:** [June 21, 2019, 9:18am UTC](https://discourse.vtk.org/t/logo-vtkactor2d-on-the-top-right/1190 "2019-06-21T09:18:43Z")

</div>

Dear all, I would like to have the logo at the top right of my app even even if i minimize or maximize the windows. My first version was like this: logo\_-\>GetPositionCoordinate()-\>SetCoordinateSystemToNormalizedViewpo…

---

## [where is ospray/ospray.h?](https://discourse.vtk.org/t/where-is-ospray-ospray-h/1173)

<div class="topic-metadata">

**Author:** [@tdchen](https://discourse.vtk.org/u/tdchen)\
**Replies:** 4\
**Last updated:** [June 21, 2019, 2:30am UTC](https://discourse.vtk.org/t/where-is-ospray-ospray-h/1173 "2019-06-21T02:30:33Z")

</div>

I tried to compile VTK with OSPRay, but it failed. It said “cannot open source file ospray/ospray.h” And this file indeed not existed in VTK directory. What I should do in addition to check the Module\_vtkRenderingOSPR…

---

## [vtkAppendPolyData java problem](https://discourse.vtk.org/t/vtkappendpolydata-java-problem/1169)

<div class="topic-metadata">

**Author:** [@naffrancois](https://discourse.vtk.org/u/naffrancois)\
**Replies:** 5\
**Last updated:** [June 19, 2019, 8:17pm UTC](https://discourse.vtk.org/t/vtkappendpolydata-java-problem/1169 "2019-06-19T20:17:13Z")

</div>

Dear all, I am new to using vtk, please accept my apologies for any silly question. I am using java on windows 10 64b platform and I am currently trying to append two vtk files having the same structure: unstructured gr…

---

## [distance along poly line (spline)](https://discourse.vtk.org/t/distance-along-poly-line-spline/1153)

<div class="topic-metadata">

**Author:** [@banesullivan](https://discourse.vtk.org/u/banesullivan)\
**Replies:** 6\
**Last updated:** [June 19, 2019, 6:03pm UTC](https://discourse.vtk.org/t/distance-along-poly-line-spline/1153 "2019-06-19T18:03:22Z")

</div>

When you have a spline (many points, one poly line cell), is it possible to compute the distance along the spline for each point? If this is possible when creating the spline, that’d be best but I have attached an examp…

---

## [mun: MSMPI has been updated to 10.0.12498.5](https://discourse.vtk.org/t/mun-msmpi-has-been-updated-to-10-0-12498-5/1177)

<div class="topic-metadata">

**Author:** [@utkarshayachit](https://discourse.vtk.org/u/utkarshayachit)\
**Replies:** 1\
**Last updated:** [June 19, 2019, 3:27pm UTC](https://discourse.vtk.org/t/mun-msmpi-has-been-updated-to-10-0-12498-5/1177 "2019-06-19T15:27:12Z")

</div>

MSMPI version on mun has been updated to 10.0.12498.5.

---

## [RangeMin and RangeMax of points coordinates](https://discourse.vtk.org/t/rangemin-and-rangemax-of-points-coordinates/1176)

<div class="topic-metadata">

**Author:** [@Tho](https://discourse.vtk.org/u/Tho)\
**Replies:** 0\
**Last updated:** [June 19, 2019, 2:18pm UTC](https://discourse.vtk.org/t/rangemin-and-rangemax-of-points-coordinates/1176 "2019-06-19T14:18:30Z")

</div>

Hi, I have to create a “.vtp” file (xml file for polydata object) from a model of simulation. I have found some examples on the internet to understand the construction of this kind of file. However, I don’t understand “…

---

## [ActiViz/C# can't create a new vtkDataArray](https://discourse.vtk.org/t/activiz-c-cant-create-a-new-vtkdataarray/1170)

<div class="topic-metadata">

**Author:** [@lucasouto](https://discourse.vtk.org/u/lucasouto)\
**Replies:** 3\
**Last updated:** [June 19, 2019, 1:58pm UTC](https://discourse.vtk.org/t/activiz-c-cant-create-a-new-vtkdataarray/1170 "2019-06-19T13:58:42Z")

</div>

Hi, I’m trying to visualize a scalar field on an unstructured grid. I already managed to build and visualize an vtkUnstructuredGrid where Points and Cells where defined. Now I want to “plot” a scalar field on that grid… …

---

## [Merge topic 'allow-optional-python-linking' fails in Windows.](https://discourse.vtk.org/t/merge-topic-allow-optional-python-linking-fails-in-windows/1151)

<div class="topic-metadata">

**Author:** [@amaclean](https://discourse.vtk.org/u/amaclean)\
**Replies:** 7\
**Last updated:** [June 19, 2019, 12:51pm UTC](https://discourse.vtk.org/t/merge-topic-allow-optional-python-linking-fails-in-windows/1151 "2019-06-19T12:51:47Z")

</div>

@ben.boeckel, this merge causes a build failure wrt Python wrapping in Windows. It seems the linker is unable to find the Python library: LINK : fatal error LNK1104: cannot open file 'python37.lib' I can get a build i…

---

## [Manually Create PolyData in vtk.js](https://discourse.vtk.org/t/manually-create-polydata-in-vtk-js/885)

<div class="topic-metadata">

**Author:** [@Donny\_Zimmerman](https://discourse.vtk.org/u/Donny_Zimmerman)\
**Replies:** 15\
**Last updated:** [June 18, 2019, 7:42pm UTC](https://discourse.vtk.org/t/manually-create-polydata-in-vtk-js/885 "2019-06-18T19:42:28Z")

</div>

I am struggling to create polydata manually with vtk.js. The methods I used in VTK are not working/supported in vtk.js. A basic example from VTK is as follows: vtkSmartPointer points = vtkSmartPointer::New(); vtkSmart…

---

## [How do i color mapping nrrd files](https://discourse.vtk.org/t/how-do-i-color-mapping-nrrd-files/1171)

<div class="topic-metadata">

**Author:** [@Script\_K](https://discourse.vtk.org/u/Script_K)\
**Replies:** 1\
**Last updated:** [June 19, 2019, 5:17am UTC](https://discourse.vtk.org/t/how-do-i-color-mapping-nrrd-files/1171 "2019-06-19T05:17:22Z")

</div>

Hi there. I’m working on color mapping nrrd files. The language I use is Python. The nrrd file used is the three-dimensional data corresponding to the head of the person. I want to do color mapping on the coordinates…

---

## [Code of Conduct](https://discourse.vtk.org/t/code-of-conduct/1149)

<div class="topic-metadata">

**Author:** [@banesullivan](https://discourse.vtk.org/u/banesullivan)\
**Replies:** 6\
**Last updated:** [June 18, 2019, 10:26pm UTC](https://discourse.vtk.org/t/code-of-conduct/1149 "2019-06-18T22:26:37Z")

</div>

I think there should be a code of conduct explicitly written for this discourse site. Over time, I’ve seen people give unhelpful, often critical responses to people simply seeking help and wanting to learn on here and I …

---

## [VTK + QT CMake errors](https://discourse.vtk.org/t/vtk-qt-cmake-errors/1166)

<div class="topic-metadata">

**Author:** [@ChristopherWaters](https://discourse.vtk.org/u/ChristopherWaters)\
**Replies:** 1\
**Last updated:** [June 18, 2019, 11:54am UTC](https://discourse.vtk.org/t/vtk-qt-cmake-errors/1166 "2019-06-18T11:54:03Z")

</div>

Built vtk and qt together with no errors twice. When creating my own project I get this ironic error: When trying to use a vtkQt example, CMake can never find vtk, even when correctly pointing to its dir with: cmake -…

---

## [Zoom behavior in parallel vs perspective projection (camera position)](https://discourse.vtk.org/t/zoom-behavior-in-parallel-vs-perspective-projection-camera-position/1148)

<div class="topic-metadata">

**Author:** [@scbiradar](https://discourse.vtk.org/u/scbiradar)\
**Replies:** 4\
**Last updated:** [June 18, 2019, 6:15am UTC](https://discourse.vtk.org/t/zoom-behavior-in-parallel-vs-perspective-projection-camera-position/1148 "2019-06-18T06:15:57Z")

</div>

I was trying to fix near plane clipping issues in the parallel projection mode. It is very easy to get into a scenario where, in the parallel projection mode, the camera is at a position where there are one or more actor…

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

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