# Latest

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

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

**Page:** 134

---

## [unable to set colormap range correctly (MWE)](https://discourse.vtk.org/t/unable-to-set-colormap-range-correctly-mwe/8412)

<div class="topic-metadata">

**Author:** [@eudoxos](https://discourse.vtk.org/u/eudoxos)\
**Replies:** 2\
**Last updated:** [May 3, 2022, 5:35am UTC](https://discourse.vtk.org/t/unable-to-set-colormap-range-correctly-mwe/8412 "2022-05-03T05:35:35Z")

</div>

I have the following MWE where I try to set colormap and colormap range on a simple .vtp file; the point data scalar is the function curvature. I am able to set the colormap to “Cool to Warm” with vtk.js but I can’t seem…

---

## [Can I update part of Volmue for grinding and Drilling?](https://discourse.vtk.org/t/can-i-update-part-of-volmue-for-grinding-and-drilling/8410)

<div class="topic-metadata">

**Author:** [@tdchen](https://discourse.vtk.org/u/tdchen)\
**Replies:** 4\
**Last updated:** [May 3, 2022, 3:25am UTC](https://discourse.vtk.org/t/can-i-update-part-of-volmue-for-grinding-and-drilling/8410 "2022-05-03T03:25:38Z")

</div>

I can’t find a way to update part of vtkImageData in the pipeline, I think it would be difficult. It involves update gradients behind the scene. Is that true? I hope to get some suggestions. Thank you.

---

## [How to Set the DateDir for vtk examples](https://discourse.vtk.org/t/how-to-set-the-datedir-for-vtk-examples/8413)

<div class="topic-metadata">

**Author:** [@wolf\_wild](https://discourse.vtk.org/u/wolf_wild)\
**Replies:** 0\
**Last updated:** [May 2, 2022, 9:52am UTC](https://discourse.vtk.org/t/how-to-set-the-datedir-for-vtk-examples/8413 "2022-05-02T09:52:22Z")

</div>

I am new for VTK . I do not know how to set the command line about the date dir for the examples and tests. I have download all data and save it in Dir ExternalData.Who can help me

---

## [How to call Examples Data Easily for VTK Examples?](https://discourse.vtk.org/t/how-to-call-examples-data-easily-for-vtk-examples/8371)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.vtk.org/u/Freya_the_Goddess)\
**Replies:** 3\
**Last updated:** [May 1, 2022, 9:55pm UTC](https://discourse.vtk.org/t/how-to-call-examples-data-easily-for-vtk-examples/8371 "2022-05-01T21:55:33Z")

</div>

Hi all, good day to you all… I have git clone this repository: then build it using Cmake After that I test Delaunay3D, it needs .vtp file, so I choose Bunny.vtp the file is in the ‘vtk-examples/src/Testing/Data’ …

---

## [Compute the volume of the intersection between two vtkPolyData objects](https://discourse.vtk.org/t/compute-the-volume-of-the-intersection-between-two-vtkpolydata-objects/8338)

<div class="topic-metadata">

**Author:** [@Robert\_Sawko](https://discourse.vtk.org/u/Robert_Sawko)\
**Replies:** 7\
**Last updated:** [May 1, 2022, 4:19pm UTC](https://discourse.vtk.org/t/compute-the-volume-of-the-intersection-between-two-vtkpolydata-objects/8338 "2022-05-01T16:19:36Z")

</div>

Hello, I would to compute a volume of the intersection between two vtkPolyData objects (or their bounding boxes). I have been mainly working with ParaView Python interface and created a programmable filter to display th…

---

## [vtkPropPicker not working in OSX and Qt](https://discourse.vtk.org/t/vtkproppicker-not-working-in-osx-and-qt/8057)

<div class="topic-metadata">

**Author:** [@marcomusy](https://discourse.vtk.org/u/marcomusy)\
**Replies:** 3\
**Last updated:** [April 30, 2022, 6:32am UTC](https://discourse.vtk.org/t/vtkproppicker-not-working-in-osx-and-qt/8057 "2022-04-30T06:32:15Z")

</div>

Picker is not picking at the correct position - there seems to be a factor 2 somewhere which screws up the result: import sys import vtk from PyQt5 import Qt from vtk.qt.QVTKRenderWindowInteractor import QVTKRenderWindo…

---

## [How to get coordinates of dicom image and check intensity values over it?](https://discourse.vtk.org/t/how-to-get-coordinates-of-dicom-image-and-check-intensity-values-over-it/2281)

<div class="topic-metadata">

**Author:** [@Pooja](https://discourse.vtk.org/u/Pooja)\
**Replies:** 8\
**Last updated:** [April 29, 2022, 8:44am UTC](https://discourse.vtk.org/t/how-to-get-coordinates-of-dicom-image-and-check-intensity-values-over-it/2281 "2022-04-29T08:44:04Z")

</div>

Hello, I am using ITK and VTK for liver segmentation purpose. But my ITK segmentation algorithm needs seed point which I have to select from DICOM images. Firstly, I was using 3D slicer to take seed point positions. But…

---

## [Equivalent rotations of a set of rotations.](https://discourse.vtk.org/t/equivalent-rotations-of-a-set-of-rotations/8355)

<div class="topic-metadata">

**Author:** [@Luis\_Carlos\_Carneiro](https://discourse.vtk.org/u/Luis_Carlos_Carneiro)\
**Replies:** 2\
**Last updated:** [April 28, 2022, 12:38pm UTC](https://discourse.vtk.org/t/equivalent-rotations-of-a-set-of-rotations/8355 "2022-04-28T12:38:42Z")

</div>

Dear All, Are there some site that I can convert the following set of rotations, of a 3D picture, i.e. Rot Axe Y → Rot Axe X → Rot Axe Z → Rot Axe X → Rot Axe Y (or any other set of rotations) in Rot Axe X → Rot Axe …

---

## [Surface LIC python](https://discourse.vtk.org/t/surface-lic-python/8386)

<div class="topic-metadata">

**Author:** [@s195t](https://discourse.vtk.org/u/s195t)\
**Replies:** 0\
**Last updated:** [April 27, 2022, 9:09am UTC](https://discourse.vtk.org/t/surface-lic-python/8386 "2022-04-27T09:09:42Z")

</div>

Dear everyone, I would need to systematically produce LICs from randomly generated velocity fields in python, which I am doing now modifying a third party library I have seen that Paraview has a plugin to do so, wanted…

---

## [stl to solid mesh file](https://discourse.vtk.org/t/stl-to-solid-mesh-file/8379)

<div class="topic-metadata">

**Author:** [@hye00525](https://discourse.vtk.org/u/hye00525)\
**Replies:** 6\
**Last updated:** [April 27, 2022, 7:11am UTC](https://discourse.vtk.org/t/stl-to-solid-mesh-file/8379 "2022-04-27T07:11:26Z")

</div>

Hello, I have two questions. I have a .stl mesh file that is hollow inside. Can I change this to a solid mesh file in vtk? (e.g., Convert stl file to solid (from Magics to Solidworks or Catia)?) Or can I save vtkpoly…

---

## [How to distinguish exterior and interior contour from vtkCutter?](https://discourse.vtk.org/t/how-to-distinguish-exterior-and-interior-contour-from-vtkcutter/8356)

<div class="topic-metadata">

**Author:** [@Cameron](https://discourse.vtk.org/u/Cameron)\
**Replies:** 3\
**Last updated:** [April 26, 2022, 8:26pm UTC](https://discourse.vtk.org/t/how-to-distinguish-exterior-and-interior-contour-from-vtkcutter/8356 "2022-04-26T20:26:26Z")

</div>

Say I have a tube. I can use vtkCutter to get the intersection between the tube and a plane as vtkPolyData. This polydata contains two disjoint polygon. I can use vtkConnectivityFilter to distinguish the points/cells …

---

## [vtkpolydata is black when it is included in vtkVolume](https://discourse.vtk.org/t/vtkpolydata-is-black-when-it-is-included-in-vtkvolume/8382)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 0\
**Last updated:** [April 26, 2022, 2:17pm UTC](https://discourse.vtk.org/t/vtkpolydata-is-black-when-it-is-included-in-vtkvolume/8382 "2022-04-26T14:17:22Z")

</div>

Currently, I want to display vtkVolume and vtkPolyData in a render. But, the part of vtkPolyData, which is covered by vtkVolume, is black. Like the following figure: The line outside of vtkVolume is red, which is wha…

---

## [How to set face color for vtkAnnotatedCubeActor?](https://discourse.vtk.org/t/how-to-set-face-color-for-vtkannotatedcubeactor/8378)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 0\
**Last updated:** [April 26, 2022, 3:33am UTC](https://discourse.vtk.org/t/how-to-set-face-color-for-vtkannotatedcubeactor/8378 "2022-04-26T03:33:32Z")

</div>

I am using vtkAnnotatedCubeActor in my application. It has method GetXPlusFaceProperty to change the text color, but I can not find a method to change the color of face. Fortunately, a solution has been provided by: h…

---

## [Unable to allocate a large size of memory with VtkUnsignedShortArray](https://discourse.vtk.org/t/unable-to-allocate-a-large-size-of-memory-with-vtkunsignedshortarray/8374)

<div class="topic-metadata">

**Author:** [@PBH](https://discourse.vtk.org/u/PBH)\
**Replies:** 2\
**Last updated:** [April 26, 2022, 12:49am UTC](https://discourse.vtk.org/t/unable-to-allocate-a-large-size-of-memory-with-vtkunsignedshortarray/8374 "2022-04-26T00:49:50Z")

</div>

The following codes cause exception: “vtkUnsignedShortArray (0000014ECA3A0510): Unable to allocate 1566872789057536 elements of size 2 bytes”. vtkSmartPointer\<vtkImageData\> image = vtkSmartPointer\<vtkImageData\>::New(…

---

## [vue-vtk-js mesh loading: support for legacy VTK?](https://discourse.vtk.org/t/vue-vtk-js-mesh-loading-support-for-legacy-vtk/8377)

<div class="topic-metadata">

**Author:** [@Ingmar](https://discourse.vtk.org/u/Ingmar)\
**Replies:** 1\
**Last updated:** [April 25, 2022, 10:59pm UTC](https://discourse.vtk.org/t/vue-vtk-js-mesh-loading-support-for-legacy-vtk/8377 "2022-04-25T22:59:10Z")

</div>

I am using successfully able to load and render PLY meshes (using code below). \<template\> \<vtk-view\> \<vtk-geometry-representation\> \<vtk-reader vtkClass="vtkPLYReader" :url="meshURL" resetCameraOnUpdate /\> …

---

## [vue-vtk-js mesh rendering: auto-focussing camera on bounding box?](https://discourse.vtk.org/t/vue-vtk-js-mesh-rendering-auto-focussing-camera-on-bounding-box/8368)

<div class="topic-metadata">

**Author:** [@Ingmar](https://discourse.vtk.org/u/Ingmar)\
**Replies:** 2\
**Last updated:** [April 25, 2022, 9:33pm UTC](https://discourse.vtk.org/t/vue-vtk-js-mesh-rendering-auto-focussing-camera-on-bounding-box/8368 "2022-04-25T21:33:37Z")

</div>

Using the example from GitHub - Kitware/vue-vtk-js: Vue.js based components for vtk.js I was able to successfully load a PLY mesh from a JSZip blob and render. However I have to shift it around and zoom out a lot to act…

---

## [Backface bug in vtkActor](https://discourse.vtk.org/t/backface-bug-in-vtkactor/8376)

<div class="topic-metadata">

**Author:** [@BlueKnight7](https://discourse.vtk.org/u/BlueKnight7)\
**Replies:** 0\
**Last updated:** [April 25, 2022, 9:10pm UTC](https://discourse.vtk.org/t/backface-bug-in-vtkactor/8376 "2022-04-25T21:10:01Z")

</div>

I’m using VTK 9.1.0 on a Linux Redhat system. I obtain a vtkPolyDataMapper representation of a simple sphere which I use to set up a vtkActor. I’ve assigned the color red to the actor. When I assign a different color …

---

## [Rotating vtkVolume](https://discourse.vtk.org/t/rotating-vtkvolume/8327)

<div class="topic-metadata">

**Author:** [@ksmith](https://discourse.vtk.org/u/ksmith)\
**Replies:** 9\
**Last updated:** [April 25, 2022, 7:30pm UTC](https://discourse.vtk.org/t/rotating-vtkvolume/8327 "2022-04-25T19:30:44Z")

</div>

I would like to rotate my Volume model similar to how this example shows. I noticed that Prop3D has this in it’s documentation: Both vtkActor and vtkVolume are specializations of class vtkProp However, when I try using…

---

## [QVTKInteractorAdapter asumes QTouchEvent point IDs start at zero when Qt specifies to not asume that](https://discourse.vtk.org/t/qvtkinteractoradapter-asumes-qtouchevent-point-ids-start-at-zero-when-qt-specifies-to-not-asume-that/8342)

<div class="topic-metadata">

**Author:** [@Iker\_Salmon](https://discourse.vtk.org/u/Iker_Salmon)\
**Replies:** 4\
**Last updated:** [April 25, 2022, 2:39pm UTC](https://discourse.vtk.org/t/qvtkinteractoradapter-asumes-qtouchevent-point-ids-start-at-zero-when-qt-specifies-to-not-asume-that/8342 "2022-04-25T14:39:29Z")

</div>

And because of this there is a bug where touch events are not working in linux machines with vtk.9 and qt 6.2 Qt seems to generate QTouch events with point IDs like 37 (for example) so when the event reaches the Proces…

---

## [How to transform distance in world coordinates to distance in display coordinates?](https://discourse.vtk.org/t/how-to-transform-distance-in-world-coordinates-to-distance-in-display-coordinates/2252)

<div class="topic-metadata">

**Author:** [@Andrzej\_Marciniak](https://discourse.vtk.org/u/Andrzej_Marciniak)\
**Replies:** 4\
**Last updated:** [April 25, 2022, 2:09pm UTC](https://discourse.vtk.org/t/how-to-transform-distance-in-world-coordinates-to-distance-in-display-coordinates/2252 "2022-04-25T14:09:28Z")

</div>

Hi All, I am implementing a custom circle-shaped cursor using SVG and CSS. The radius of the circle should be calculated dynamically based on a given size in world coordinates (eg. 1mm). It should be calculated in place…

---

## [Bash: vtk command not found](https://discourse.vtk.org/t/bash-vtk-command-not-found/8220)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.vtk.org/u/Freya_the_Goddess)\
**Replies:** 23\
**Last updated:** [April 25, 2022, 1:00pm UTC](https://discourse.vtk.org/t/bash-vtk-command-not-found/8220 "2022-04-25T13:00:32Z")

</div>

Dear all, I have installed VTK from source using CMake, and I couldn’t run vtk mace.tcl I see the tutorial here: (The Visualization Toolkit) it said “vtk command not found” I have adjusted the environment variables…

---

## [vtkTextActor + orientation = please help](https://discourse.vtk.org/t/vtktextactor-orientation-please-help/8370)

<div class="topic-metadata">

**Author:** [@Olivier](https://discourse.vtk.org/u/Olivier)\
**Replies:** 0\
**Last updated:** [April 25, 2022, 12:11pm UTC](https://discourse.vtk.org/t/vtktextactor-orientation-please-help/8370 "2022-04-25T12:11:04Z")

</div>

Hi friend, I’m using vtkTextActor to display very basic text inside a scene. I want to orient the text, so I’m using vtkTextActor.SetOrientation Here a sample of what I get by creating an actor for each angle from 0 t…

---

## [python 3.10 and pip(version 21.3.1) import vtk](https://discourse.vtk.org/t/python-3-10-and-pip-version-21-3-1-import-vtk/7338)

<div class="topic-metadata">

**Author:** [@Tiago\_Mimoso](https://discourse.vtk.org/u/Tiago_Mimoso)\
**Replies:** 5\
**Last updated:** [April 25, 2022, 8:37am UTC](https://discourse.vtk.org/t/python-3-10-and-pip-version-21-3-1-import-vtk/7338 "2022-04-25T08:37:38Z")

</div>

Hi, I’m trying to install the vtk packages though pip typing “pip install vtk” but the error message is “ERROR: Could not find a version that satisfies the requirement vtk (from versions: none) ERROR: No matching distr…

---

## [OpenGL State Errors with QVTKOpenGLWidget](https://discourse.vtk.org/t/opengl-state-errors-with-qvtkopenglwidget/8365)

<div class="topic-metadata">

**Author:** [@Panda12197](https://discourse.vtk.org/u/Panda12197)\
**Replies:** 0\
**Last updated:** [April 25, 2022, 2:25am UTC](https://discourse.vtk.org/t/opengl-state-errors-with-qvtkopenglwidget/8365 "2022-04-25T02:25:23Z")

</div>

Hello Guys, I have a problem in visualizing point cloud with QVTKOpenGLWidget. I promoted the QWidget to QVTKOpenGLWidget and load point cloud data to the Widget. As soon as the MainWindow is appeared, the following er…

---

## [Single-sided lighting model](https://discourse.vtk.org/t/single-sided-lighting-model/8361)

<div class="topic-metadata">

**Author:** [@BlueKnight7](https://discourse.vtk.org/u/BlueKnight7)\
**Replies:** 0\
**Last updated:** [April 25, 2022, 12:23am UTC](https://discourse.vtk.org/t/single-sided-lighting-model/8361 "2022-04-25T00:23:56Z")

</div>

It appears that the default is to render with two-sided lighting. How can I get single-sided lighting?

---

## [Tests not found](https://discourse.vtk.org/t/tests-not-found/8351)

<div class="topic-metadata">

**Author:** [@ghlecl](https://discourse.vtk.org/u/ghlecl)\
**Replies:** 6\
**Last updated:** [April 23, 2022, 3:23pm UTC](https://discourse.vtk.org/t/tests-not-found/8351 "2022-04-23T15:23:20Z")

</div>

Hello. I am trying to build VTK, and then run the tests on my machine. I am using CMake 3.22.4. I have downloaded the release source tarball for VTK on the website (version 9.1.0). I am on macOS (Big Sur 11.6.5). I ha…

---

## [Scientist II - Computational Neuroanatomy @ Allen Institute for Brain Science](https://discourse.vtk.org/t/scientist-ii-computational-neuroanatomy-allen-institute-for-brain-science/8358)

<div class="topic-metadata">

**Author:** [@lydiang](https://discourse.vtk.org/u/lydiang)\
**Replies:** 0\
**Last updated:** [April 23, 2022, 6:26am UTC](https://discourse.vtk.org/t/scientist-ii-computational-neuroanatomy-allen-institute-for-brain-science/8358 "2022-04-23T06:26:11Z")

</div>

Scientist II - Computational Neuroanatomy TLDR: create 3D models for next-generation brain atlases We seek to hire an exceptional scientist to create accurate 3D anatomical models of mouse brain structures based on mul…

---

## [Write an ellipsoid source and a set of points to a file](https://discourse.vtk.org/t/write-an-ellipsoid-source-and-a-set-of-points-to-a-file/8347)

<div class="topic-metadata">

**Author:** [@anirudh\_puligandla](https://discourse.vtk.org/u/anirudh_puligandla)\
**Replies:** 1\
**Last updated:** [April 22, 2022, 10:03am UTC](https://discourse.vtk.org/t/write-an-ellipsoid-source-and-a-set-of-points-to-a-file/8347 "2022-04-22T10:03:57Z")

</div>

Hello, I am trying to put together an ellipsoid source and a set of points into one scene, write it to a .ply file and display it using paraview. I am having trouble combining two polyData, one from ellipsoid and anothe…

---

## [DataSetmapper + LookupTable : hide range](https://discourse.vtk.org/t/datasetmapper-lookuptable-hide-range/8345)

<div class="topic-metadata">

**Author:** [@Olivier](https://discourse.vtk.org/u/Olivier)\
**Replies:** 1\
**Last updated:** [April 21, 2022, 10:25am UTC](https://discourse.vtk.org/t/datasetmapper-lookuptable-hide-range/8345 "2022-04-21T10:25:48Z")

</div>

Hi friends, I have a vtkUnstructuredGrid containing triangles and points data as scalars. I’m displaying it with a vtkDataSetMapper linked to a vtkLookupTable. Here is the resulting display : Now what I want to do…

---

## [How to draw scout/reference lines in dicom for multi series ?](https://discourse.vtk.org/t/how-to-draw-scout-reference-lines-in-dicom-for-multi-series/8344)

<div class="topic-metadata">

**Author:** [@Usha\_Diggi](https://discourse.vtk.org/u/Usha_Diggi)\
**Replies:** 0\
**Last updated:** [April 21, 2022, 8:19am UTC](https://discourse.vtk.org/t/how-to-draw-scout-reference-lines-in-dicom-for-multi-series/8344 "2022-04-21T08:19:27Z")

</div>

Hi everyone, I am new to VTK, currently exploring about scout line /localizer line implementation for DICOM series but no luck there is no reference link/examples. I would appreciate your help on this. Thank you Reg…

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

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