# Support

**URL:** https://discourse.vtk.org/c/support/6.md?page=116

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

**Page:** 117

---

## [Direction? Coordinate? How to change](https://discourse.vtk.org/t/direction-coordinate-how-to-change/4641)

<div class="topic-metadata">

**Author:** [@Seram](https://discourse.vtk.org/u/Seram)\
**Replies:** 3\
**Last updated:** [November 13, 2020, 2:55am UTC](https://discourse.vtk.org/t/direction-coordinate-how-to-change/4641 "2020-11-13T02:55:05Z")

</div>

Hello I want to change the direction as shown on the right. What should I do…? I am getting a lot of help every time. Thank you. BR

---

## [Change coordinate system from right to left-handed (change direction of Z axis)](https://discourse.vtk.org/t/change-coordinate-system-from-right-to-left-handed-change-direction-of-z-axis/4635)

<div class="topic-metadata">

**Author:** [@kerim](https://discourse.vtk.org/u/kerim)\
**Replies:** 2\
**Last updated:** [November 13, 2020, 12:58am UTC](https://discourse.vtk.org/t/change-coordinate-system-from-right-to-left-handed-change-direction-of-z-axis/4635 "2020-11-13T00:58:13Z")

</div>

Hi, VTK standard coordinate system is right-handed wich means that cross product X \* Y gives Z (like in the picture). I’m wondering is there is a way to change the native right-handed VTK coordinate system to left-ha…

---

## [Performance of 2d Plotting](https://discourse.vtk.org/t/performance-of-2d-plotting/4633)

<div class="topic-metadata">

**Author:** [@jhuels](https://discourse.vtk.org/u/jhuels)\
**Replies:** 12\
**Last updated:** [November 12, 2020, 8:42pm UTC](https://discourse.vtk.org/t/performance-of-2d-plotting/4633 "2020-11-12T20:42:38Z")

</div>

Hello all, Does anyone have experience with performant real time 2d plotting? Current application: I have a simple test application that I’ve been tinkering with trying to evaluate the performance of 2d plotting. T…

---

## [GLEW could not be initialized: Missing GL version - VTK under Python Windows](https://discourse.vtk.org/t/glew-could-not-be-initialized-missing-gl-version-vtk-under-python-windows/4598)

<div class="topic-metadata">

**Author:** [@silverthorn](https://discourse.vtk.org/u/silverthorn)\
**Replies:** 12\
**Last updated:** [November 12, 2020, 5:42pm UTC](https://discourse.vtk.org/t/glew-could-not-be-initialized-missing-gl-version-vtk-under-python-windows/4598 "2020-11-12T17:42:50Z")

</div>

This is an issue that I have been having for some days and have not found a solution under various Python, VTK and OpenGl versions . I have tried many things - too many to list. I saw this under anaconda but have now giv…

---

## [ospray cinematic rendering](https://discourse.vtk.org/t/ospray-cinematic-rendering/2455)

<div class="topic-metadata">

**Author:** [@svabhishek29](https://discourse.vtk.org/u/svabhishek29)\
**Replies:** 8\
**Last updated:** [November 12, 2020, 4:23pm UTC](https://discourse.vtk.org/t/ospray-cinematic-rendering/2455 "2020-11-12T16:23:50Z")

</div>

Hi, i was trying to render a MRI volume using OSPRay, rw = vtk.vtkRenderWindow() r = vtk.vtkRenderer() rw.AddRenderer(r) rtp = vtk.vtkOSPRayPass() r.SetPass(rtp) the code i used is as shown above, when i try to run the…

---

## [can VTK get COM and Inertia of object?](https://discourse.vtk.org/t/can-vtk-get-com-and-inertia-of-object/4628)

<div class="topic-metadata">

**Author:** [@azk](https://discourse.vtk.org/u/azk)\
**Replies:** 5\
**Last updated:** [November 12, 2020, 12:34pm UTC](https://discourse.vtk.org/t/can-vtk-get-com-and-inertia-of-object/4628 "2020-11-12T12:34:35Z")

</div>

Hello, Is there a way to get the properties of an object using Python? Like the Center Of Mass and Inertia Matrix? I tried to find but I could only find this which is in C++ and not in Python. I am not that familiar wi…

---

## [Confusion about the use of vtkMapper](https://discourse.vtk.org/t/confusion-about-the-use-of-vtkmapper/4640)

<div class="topic-metadata">

**Author:** [@Jone7](https://discourse.vtk.org/u/Jone7)\
**Replies:** 0\
**Last updated:** [November 12, 2020, 7:21am UTC](https://discourse.vtk.org/t/confusion-about-the-use-of-vtkmapper/4640 "2020-11-12T07:21:32Z")

</div>

I first calculated using vtkTriangleMeshPointNormals Vertex normal, it’s like for the Vertex shader normalMC transmit a value, then I use the vtkPolyDataTangents calculating tangent, when I try to input it, the normal v…

---

## [Staggered grid with VTK](https://discourse.vtk.org/t/staggered-grid-with-vtk/4639)

<div class="topic-metadata">

**Author:** [@GR4EM](https://discourse.vtk.org/u/GR4EM)\
**Replies:** 0\
**Last updated:** [November 12, 2020, 7:18am UTC](https://discourse.vtk.org/t/staggered-grid-with-vtk/4639 "2020-11-12T07:18:34Z")

</div>

Hi all! Is there any way to display results of CFD algorithm that uses staggered grid without interpolation? My main grid is (x\_i,y\_j,z\_k). Pressure is located in the middle of the cell: (x\_i+1/2, y\_j+1/2, z\_k+1/2) and…

---

## [How to get the coordinates and properties of each vertex in VTK](https://discourse.vtk.org/t/how-to-get-the-coordinates-and-properties-of-each-vertex-in-vtk/4629)

<div class="topic-metadata">

**Author:** [@Jone7](https://discourse.vtk.org/u/Jone7)\
**Replies:** 1\
**Last updated:** [November 11, 2020, 2:37pm UTC](https://discourse.vtk.org/t/how-to-get-the-coordinates-and-properties-of-each-vertex-in-vtk/4629 "2020-11-11T14:37:17Z")

</div>

Forgive me for asking so many questions recently. I want to traverse each vertex, and set the color value for each vertex, and the coordinates of this process I will use its normal, I have its normals are calculated by …

---

## [SetRepresentationToWireframe problem....](https://discourse.vtk.org/t/setrepresentationtowireframe-problem/4620)

<div class="topic-metadata">

**Author:** [@DL\_men](https://discourse.vtk.org/u/DL_men)\
**Replies:** 2\
**Last updated:** [November 11, 2020, 1:24pm UTC](https://discourse.vtk.org/t/setrepresentationtowireframe-problem/4620 "2020-11-11T13:24:33Z")

</div>

I use SetRepresentationToWireframe as follow: The frame looks like corrode as shown.How to deal with it? self.original\_mapper.SetInputConnection(self.original\_model.GetOutputPort()) self.orig…

---

## [Does libvtkCommon.a libvtkIO.a exist in version from 7.1 to 9.x on linux?](https://discourse.vtk.org/t/does-libvtkcommon-a-libvtkio-a-exist-in-version-from-7-1-to-9-x-on-linux/4626)

<div class="topic-metadata">

**Author:** [@caikk](https://discourse.vtk.org/u/caikk)\
**Replies:** 0\
**Last updated:** [November 11, 2020, 10:26am UTC](https://discourse.vtk.org/t/does-libvtkcommon-a-libvtkio-a-exist-in-version-from-7-1-to-9-x-on-linux/4626 "2020-11-11T10:26:36Z")

</div>

I am a new user of VTK. When I installed a vtk from source code, both libvtkCommon.a and libvtkIO.a did not exist even using ccmake with a option “BUILD\_SHARED\_LIBS OFF”. There are lots of static lib files with name libv…

---

## [Extract color information per vertex](https://discourse.vtk.org/t/extract-color-information-per-vertex/940)

<div class="topic-metadata">

**Author:** [@bingjian](https://discourse.vtk.org/u/bingjian)\
**Replies:** 1\
**Last updated:** [November 11, 2020, 11:13am UTC](https://discourse.vtk.org/t/extract-color-information-per-vertex/940 "2020-11-11T11:13:12Z")

</div>

I have a quick question about reading the color information stored in a ply file. The following code extracts the xyz coordinate of a given vertex, but how to read the RGB value associated to each vertex? vtkSmartPoint…

---

## [points not showing after aplying rotation/translation](https://discourse.vtk.org/t/points-not-showing-after-aplying-rotation-translation/4621)

<div class="topic-metadata">

**Author:** [@azk](https://discourse.vtk.org/u/azk)\
**Replies:** 13\
**Last updated:** [November 11, 2020, 2:41am UTC](https://discourse.vtk.org/t/points-not-showing-after-aplying-rotation-translation/4621 "2020-11-11T02:41:07Z")

</div>

Hello! I am trying to rotate some points in space, but when I try plotting them, they do not show. I am not sure why as I put markers in my code before and after the displaying line and it looks like the program execute…

---

## [Rendering 9.6 million tetrahedrons for visualization of a volumetric domain in 3D using python](https://discourse.vtk.org/t/rendering-9-6-million-tetrahedrons-for-visualization-of-a-volumetric-domain-in-3d-using-python/4624)

<div class="topic-metadata">

**Author:** [@rohanamare](https://discourse.vtk.org/u/rohanamare)\
**Replies:** 1\
**Last updated:** [November 11, 2020, 1:30am UTC](https://discourse.vtk.org/t/rendering-9-6-million-tetrahedrons-for-visualization-of-a-volumetric-domain-in-3d-using-python/4624 "2020-11-11T01:30:41Z")

</div>

I am writing a code to render the surface of an entire human body’s mesh. There are nearly 9.6 million tetrahedrons on the surface of this mesh. Even though the code is parallelized to run, it takes a huge amount of time…

---

## [Using PickList with vtkHardwareSelector](https://discourse.vtk.org/t/using-picklist-with-vtkhardwareselector/4622)

<div class="topic-metadata">

**Author:** [@ZigaSajovic](https://discourse.vtk.org/u/ZigaSajovic)\
**Replies:** 0\
**Last updated:** [November 10, 2020, 5:05pm UTC](https://discourse.vtk.org/t/using-picklist-with-vtkhardwareselector/4622 "2020-11-10T17:05:33Z")

</div>

When picking an actor with a vtkRenderer one can use a list of props to choose from renderer-\>PickPropFrom(x, y, propCollection); But when one uses vtkHardwareSelector for manual implementations, this option seems to b…

---

## [rotate actor about line](https://discourse.vtk.org/t/rotate-actor-about-line/4594)

<div class="topic-metadata">

**Author:** [@azk](https://discourse.vtk.org/u/azk)\
**Replies:** 7\
**Last updated:** [November 10, 2020, 1:37pm UTC](https://discourse.vtk.org/t/rotate-actor-about-line/4594 "2020-11-10T13:37:10Z")

</div>

Hello! I am new to python and VTK so please have patience :slight\_smile: I have an actor and I would like to rotate it about a line I drew using vtkLineSource(). I chose my start and end points and I drew the line. Now …

---

## [python vtk volume rendering dicom images](https://discourse.vtk.org/t/python-vtk-volume-rendering-dicom-images/4602)

<div class="topic-metadata">

**Author:** [@Charalambos\_Greg](https://discourse.vtk.org/u/Charalambos_Greg)\
**Replies:** 2\
**Last updated:** [November 10, 2020, 10:00am UTC](https://discourse.vtk.org/t/python-vtk-volume-rendering-dicom-images/4602 "2020-11-10T10:00:47Z")

</div>

I try to write a python code with vtk to volume render dicom images but as i get no error in my code the window is only back can anyone pls give some guidelines on what to do? I am new with vtk!! My code: import vtk p…

---

## [Help to Build project under WIn 10](https://discourse.vtk.org/t/help-to-build-project-under-win-10/4585)

<div class="topic-metadata">

**Author:** [@cean\_wang](https://discourse.vtk.org/u/cean_wang)\
**Replies:** 9\
**Last updated:** [November 10, 2020, 3:34am UTC](https://discourse.vtk.org/t/help-to-build-project-under-win-10/4585 "2020-11-10T03:34:30Z")

</div>

Hi, I am on win10 + VS2017 + VTK9.0.1. following this demo: https://lorensen.github.io/VTKExamples/site/Cxx/IO/ReadAllUnstructuredGridTypes/ At the end, at Building the project: make command gives this message: make:…

---

## [Two questions about new module system](https://discourse.vtk.org/t/two-questions-about-new-module-system/2864)

<div class="topic-metadata">

**Author:** [@estan](https://discourse.vtk.org/u/estan)\
**Replies:** 23\
**Last updated:** [November 10, 2020, 3:06am UTC](https://discourse.vtk.org/t/two-questions-about-new-module-system/2864 "2020-11-10T03:06:37Z")

</div>

Hi all, Having a first look at porting our application to VTK 9.0.0. First question is about vtkRenderingContextOpenGL2. With 9.0.0 it seems we no longer get that library? What should I link against to pick the OpenGL2…

---

## [How to get a tangent vector for a vertex in VTK9.0?](https://discourse.vtk.org/t/how-to-get-a-tangent-vector-for-a-vertex-in-vtk9-0/4600)

<div class="topic-metadata">

**Author:** [@Jone7](https://discourse.vtk.org/u/Jone7)\
**Replies:** 1\
**Last updated:** [November 9, 2020, 10:39am UTC](https://discourse.vtk.org/t/how-to-get-a-tangent-vector-for-a-vertex-in-vtk9-0/4600 "2020-11-09T10:39:41Z")

</div>

Hi, I want to use a MERL material on a polydata, but I’m confused about how to get a tangent vector for a vertex in vertex shader. Thanks!

---

## [builing on OSX XCode 12.0](https://discourse.vtk.org/t/builing-on-osx-xcode-12-0/4286)

<div class="topic-metadata">

**Author:** [@djduke](https://discourse.vtk.org/u/djduke)\
**Replies:** 5\
**Last updated:** [October 19, 2020, 12:56pm UTC](https://discourse.vtk.org/t/builing-on-osx-xcode-12-0/4286 "2020-10-19T12:56:20Z")

</div>

I’ve recently bumped my OSX to 10.15.6 (Catalina) with XCode 12.0 and have run into issues rebuilding VTK from a fresh git checkout. I have Python3 installed via MacPorts The build goes fine. However when I try to run …

---

## [VTK static library throws LNK error in VS2019](https://discourse.vtk.org/t/vtk-static-library-throws-lnk-error-in-vs2019/4599)

<div class="topic-metadata">

**Author:** [@DFlyer](https://discourse.vtk.org/u/DFlyer)\
**Replies:** 7\
**Last updated:** [November 7, 2020, 3:21pm UTC](https://discourse.vtk.org/t/vtk-static-library-throws-lnk-error-in-vs2019/4599 "2020-11-07T15:21:46Z")

</div>

OS : Windows 10 VTK version : VTK 9.0.1 Configuration : X64 Debug Platform: VS2019 (v142) I built VTK static libs with cmake flag BUILD\_SHARED\_LIBS = 0 When I use them in Visual Studio, I see lot of link error, i susp…

---

## [Running VTK on a system with OpenGL version 1.1 or less](https://discourse.vtk.org/t/running-vtk-on-a-system-with-opengl-version-1-1-or-less/3260)

<div class="topic-metadata">

**Author:** [@Velchivz](https://discourse.vtk.org/u/Velchivz)\
**Replies:** 6\
**Last updated:** [November 6, 2020, 4:51pm UTC](https://discourse.vtk.org/t/running-vtk-on-a-system-with-opengl-version-1-1-or-less/3260 "2020-11-06T16:51:21Z")

</div>

Hello, I first posted about this issue in Stack Overflow: I am working on a project that uses QT and VTK. It works in several machines without any problems (including Mac OS). I tried to run it on a Surface Pro X and …

---

## [VTK 9: Outdated examples included in source code archive?](https://discourse.vtk.org/t/vtk-9-outdated-examples-included-in-source-code-archive/4580)

<div class="topic-metadata">

**Author:** [@codeling](https://discourse.vtk.org/u/codeling)\
**Replies:** 0\
**Last updated:** [November 5, 2020, 3:36pm UTC](https://discourse.vtk.org/t/vtk-9-outdated-examples-included-in-source-code-archive/4580 "2020-11-05T15:36:51Z")

</div>

We just tried to build some of the “Tutorial” examples included in VTK 9.0.(0/1) source .tar.gz from vtk.org, and they don’t seem to work - (CMake reports Unknown CMake command "vtk\_module\_config"). On closer inspection…

---

## [How to make the point from bspline include the control point?](https://discourse.vtk.org/t/how-to-make-the-point-from-bspline-include-the-control-point/4577)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 0\
**Last updated:** [November 5, 2020, 2:32pm UTC](https://discourse.vtk.org/t/how-to-make-the-point-from-bspline-include-the-control-point/4577 "2020-11-05T14:32:34Z")

</div>

For example, I have 7 control point, then I use the bspline to generate the smooth line. However, I find the generated smooth points may not include the control point. The code is: spParametricSpline = vtk.vtkParame…

---

## [vtkImageReslice is very slow](https://discourse.vtk.org/t/vtkimagereslice-is-very-slow/4570)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 7\
**Last updated:** [November 5, 2020, 2:29pm UTC](https://discourse.vtk.org/t/vtkimagereslice-is-very-slow/4570 "2020-11-05T14:29:04Z")

</div>

I use vtkImageReslice to get a resliced image, and the code (python) is: reslice = vtk.vtkImageReslice() reslice.SetInputData(image) reslice.SetOutputDimensionality(2) reslice.SetAutoCrop…

---

## [How to Draw on the vtkImageViewer2?](https://discourse.vtk.org/t/how-to-draw-on-the-vtkimageviewer2/4529)

<div class="topic-metadata">

**Author:** [@wulicheng](https://discourse.vtk.org/u/wulicheng)\
**Replies:** 3\
**Last updated:** [November 5, 2020, 11:03am UTC](https://discourse.vtk.org/t/how-to-draw-on-the-vtkimageviewer2/4529 "2020-11-05T11:03:18Z")

</div>

I want to draw a polyon on the vtkImageViewer2 and colored it ?

---

## [How to Get points coords with actor](https://discourse.vtk.org/t/how-to-get-points-coords-with-actor/4574)

<div class="topic-metadata">

**Author:** [@DL\_men](https://discourse.vtk.org/u/DL_men)\
**Replies:** 0\
**Last updated:** [November 5, 2020, 3:08am UTC](https://discourse.vtk.org/t/how-to-get-points-coords-with-actor/4574 "2020-11-05T03:08:59Z")

</div>

I have a dataset, points and cells are origin from this dataset. Not all dataset poins are used, How can i get coords of all used points on prob(actor) directly? just like paraview 5.8.0 function: selecte points on c…

---

## [UnsatisfiedLinkError in commandline not in eclipse](https://discourse.vtk.org/t/unsatisfiedlinkerror-in-commandline-not-in-eclipse/4555)

<div class="topic-metadata">

**Author:** [@Daniel](https://discourse.vtk.org/u/Daniel)\
**Replies:** 3\
**Last updated:** [November 4, 2020, 8:52pm UTC](https://discourse.vtk.org/t/unsatisfiedlinkerror-in-commandline-not-in-eclipse/4555 "2020-11-04T20:52:52Z")

</div>

Hi there, I am testing the example “ReleaseVtkPanel.java” by Sebastien Jourdain. It works as desired under eclipse and also as an exported jar-file, if you start it with a double click. But if I start the jar from the …

---

## [Check polydata is inside another polydata](https://discourse.vtk.org/t/check-polydata-is-inside-another-polydata/4494)

<div class="topic-metadata">

**Author:** [@11112](https://discourse.vtk.org/u/11112)\
**Replies:** 1\
**Last updated:** [November 4, 2020, 7:46pm UTC](https://discourse.vtk.org/t/check-polydata-is-inside-another-polydata/4494 "2020-11-04T19:46:28Z")

</div>

I read 2 polydata, P1( a segment of human vertebrae, there is a space in center, just like a wire ring, and it is close surface) contain P2(a nail), means P2 is inside P1. And I want to move the one inside P2, after mov…

[Previous page](https://discourse.vtk.org/c/support/6.md?page=115)

[Next page](https://discourse.vtk.org/c/support/6.md?page=117)
