# Latest

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

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

**Page:** 238

---

## [No module named 'vtkCommonCorePython'](https://discourse.vtk.org/t/no-module-named-vtkcommoncorepython/1767)

<div class="topic-metadata">

**Author:** [@gregthom992](https://discourse.vtk.org/u/gregthom992)\
**Replies:** 6\
**Last updated:** [September 21, 2019, 6:13pm UTC](https://discourse.vtk.org/t/no-module-named-vtkcommoncorepython/1767 "2019-09-21T18:13:11Z")

</div>

Hi I am using Python 3.7.2 in WinPython. I did python.exe -m pip install vtk to get vtk ‘8.1.2’. When I try to build a test example with Tk, I get the error: File “C:/Users/GregThom/Development/PycharmProjects/Collis…

---

## [Questions about the composition of the 3D MENU bar](https://discourse.vtk.org/t/questions-about-the-composition-of-the-3d-menu-bar/1783)

<div class="topic-metadata">

**Author:** [@rjsgml5698](https://discourse.vtk.org/u/rjsgml5698)\
**Replies:** 4\
**Last updated:** [September 21, 2019, 8:17am UTC](https://discourse.vtk.org/t/questions-about-the-composition-of-the-3d-menu-bar/1783 "2019-09-21T08:17:01Z")

</div>

Hello! I have a question. I created two buttons and configured each to load a 3d file on canvas(using VTK.js). However, I noticed a slowdown as I click and release repeatedly. it seems that a memory leak was happenin…

---

## [Set arrow length for vtkImplicitPlaneWidget2](https://discourse.vtk.org/t/set-arrow-length-for-vtkimplicitplanewidget2/1794)

<div class="topic-metadata">

**Author:** [@mta](https://discourse.vtk.org/u/mta)\
**Replies:** 0\
**Last updated:** [September 20, 2019, 3:49pm UTC](https://discourse.vtk.org/t/set-arrow-length-for-vtkimplicitplanewidget2/1794 "2019-09-20T15:49:02Z")

</div>

Hi everyone, Is there any method in vtkImplicitPlaneWidget2 that can be used to set the length of the arrow? In vtkImplicitPlaneWidget, SetDiagonalRatio can be used, but I have not found any similar methods in vtkImplic…

---

## [\[vtk.js\] imagestream/DefaultProtocol.js incompatible with VTK](https://discourse.vtk.org/t/vtk-js-imagestream-defaultprotocol-js-incompatible-with-vtk/1734)

<div class="topic-metadata">

**Author:** [@ckolb](https://discourse.vtk.org/u/ckolb)\
**Replies:** 7\
**Last updated:** [September 20, 2019, 2:53pm UTC](https://discourse.vtk.org/t/vtk-js-imagestream-defaultprotocol-js-incompatible-with-vtk/1734 "2019-09-20T14:53:21Z")

</div>

Hello! I was trying to setup a server with VTK and wslink and connect to it via vtk.js, but I am getting several errors in the web application. For example: “TypeError(‘updateCamera() takes 5 positional arguments but 6…

---

## [How to select and color specific cells of a RGrid?](https://discourse.vtk.org/t/how-to-select-and-color-specific-cells-of-a-rgrid/1792)

<div class="topic-metadata">

**Author:** [@Mikend994](https://discourse.vtk.org/u/Mikend994)\
**Replies:** 0\
**Last updated:** [September 20, 2019, 10:30am UTC](https://discourse.vtk.org/t/how-to-select-and-color-specific-cells-of-a-rgrid/1792 "2019-09-20T10:30:14Z")

</div>

Hi, I’m really new in vtk. I need to defining a path inside the RGrid example, by coloring a certain number of specific cells. This is the code #include \<vtkActor.h\> #include \<vtkCamera.h\> #include \<vtkFloatArray.h\> #…

---

## [vtkPointGaussianMapper - SetSplatShaderCode](https://discourse.vtk.org/t/vtkpointgaussianmapper-setsplatshadercode/1748)

<div class="topic-metadata">

**Author:** [@mallikarjun49](https://discourse.vtk.org/u/mallikarjun49)\
**Replies:** 5\
**Last updated:** [September 20, 2019, 7:43am UTC](https://discourse.vtk.org/t/vtkpointgaussianmapper-setsplatshadercode/1748 "2019-09-20T07:43:52Z")

</div>

Dear VTK Users, I am using vtkPointGaussianMapper and set the SplatShaderCode as below: mapper-\>SetSplatShaderCode( “//VTK::Color::Impl\\n” “float dist = dot(offsetVCVSOutput.xy,offsetVCVSOutput.xy);\\n” “if (dist \> 1…

---

## [How to set VTK for using Python in Windows](https://discourse.vtk.org/t/how-to-set-vtk-for-using-python-in-windows/1786)

<div class="topic-metadata">

**Author:** [@Mikend994](https://discourse.vtk.org/u/Mikend994)\
**Replies:** 0\
**Last updated:** [September 19, 2019, 9:01am UTC](https://discourse.vtk.org/t/how-to-set-vtk-for-using-python-in-windows/1786 "2019-09-19T09:01:22Z")

</div>

Hi to everyone! I’m really new in using VTK. I have installed it with VisualStudio as generator on windows, following this tutorial “https://www.youtube.com/watch?v=6S3\_sl5Sc0E”. Now I’m able to work with that using C++,…

---

## [set camera to Azimuth to rotate 60degree, the renderer has no change,why?](https://discourse.vtk.org/t/set-camera-to-azimuth-to-rotate-60degree-the-renderer-has-no-change-why/1784)

<div class="topic-metadata">

**Author:** [@pingdan](https://discourse.vtk.org/u/pingdan)\
**Replies:** 0\
**Last updated:** [September 19, 2019, 6:27am UTC](https://discourse.vtk.org/t/set-camera-to-azimuth-to-rotate-60degree-the-renderer-has-no-change-why/1784 "2019-09-19T06:27:44Z")

</div>

I display a image in renderer, and rotate some degree of camera, but the image of displaying don’t have difference. after rotation, I got the parameter, it has changed. vtkSmartPointer reader = vtkSmartPointer::New(); …

---

## [volume flattened when using SetUserViewTransform of the camera](https://discourse.vtk.org/t/volume-flattened-when-using-setuserviewtransform-of-the-camera/1782)

<div class="topic-metadata">

**Author:** [@svabhishek29](https://discourse.vtk.org/u/svabhishek29)\
**Replies:** 0\
**Last updated:** [September 19, 2019, 3:27am UTC](https://discourse.vtk.org/t/volume-flattened-when-using-setuserviewtransform-of-the-camera/1782 "2019-09-19T03:27:51Z")

</div>

Hi, i am trying to create a ar view, i get the camera ext from opencv, and i am applying it to vtk camera using camera.SetUserViewTransform() the volume that is rendered in front of the camera is flattened, so if i mov…

---

## [volume not rendering properly when using camera view transform](https://discourse.vtk.org/t/volume-not-rendering-properly-when-using-camera-view-transform/1781)

<div class="topic-metadata">

**Author:** [@svabhishek29](https://discourse.vtk.org/u/svabhishek29)\
**Replies:** 0\
**Last updated:** [September 18, 2019, 10:45am UTC](https://discourse.vtk.org/t/volume-not-rendering-properly-when-using-camera-view-transform/1781 "2019-09-18T10:45:49Z")

</div>

hi, i have a renderer in which i have a volume loaded, if i change the camera position i can see the volume render properly from all directions, if i try to use the camera view transform to transform the camera view the…

---

## [Facing Qt example CMake configure error GuiSupportQt not found.](https://discourse.vtk.org/t/facing-qt-example-cmake-configure-error-guisupportqt-not-found/1657)

<div class="topic-metadata">

**Author:** [@rai-sam](https://discourse.vtk.org/u/rai-sam)\
**Replies:** 2\
**Last updated:** [September 18, 2019, 10:42am UTC](https://discourse.vtk.org/t/facing-qt-example-cmake-configure-error-guisupportqt-not-found/1657 "2019-09-18T10:42:21Z")

</div>

I am trying to configure Qt example project using: VTK 8.2.0 CMake 3.15.2 VS 2015 Qt 5.13.0 MSVC 2015 64-bit VTK configure with Qt is fine. But configuring any example project to use Qt is causing GuiSupportQt not f…

---

## [vtkClipPolyData and vtkXMLUnstructuredGridReader](https://discourse.vtk.org/t/vtkclippolydata-and-vtkxmlunstructuredgridreader/1779)

<div class="topic-metadata">

**Author:** [@hamid\_badi](https://discourse.vtk.org/u/hamid_badi)\
**Replies:** 0\
**Last updated:** [September 18, 2019, 8:14am UTC](https://discourse.vtk.org/t/vtkclippolydata-and-vtkxmlunstructuredgridreader/1779 "2019-09-18T08:14:38Z")

</div>

Hello, I try to display some filled isolines from a vtu file containing a 2d mesh and a scalar node field. Based on this example, it seems that vtkClipPolyData is not compatible with vtkXMLUnstructuredGridReader. Moreo…

---

## [VTK Unstructured Grid and Higher Order Lagrange Elements](https://discourse.vtk.org/t/vtk-unstructured-grid-and-higher-order-lagrange-elements/1777)

<div class="topic-metadata">

**Author:** [@wraith1995](https://discourse.vtk.org/u/wraith1995)\
**Replies:** 0\
**Last updated:** [September 17, 2019, 9:06pm UTC](https://discourse.vtk.org/t/vtk-unstructured-grid-and-higher-order-lagrange-elements/1777 "2019-09-17T21:06:39Z")

</div>

Hello, I’m trying to write higher order lagrange elements to VTK’s unstructured grid format. Based on the format, it seems like there needs to be direct correspondence between the values of the single allowed data array …

---

## [SetOutput data object for non zero port](https://discourse.vtk.org/t/setoutput-data-object-for-non-zero-port/1773)

<div class="topic-metadata">

**Author:** [@banesullivan](https://discourse.vtk.org/u/banesullivan)\
**Replies:** 6\
**Last updated:** [September 17, 2019, 2:50pm UTC](https://discourse.vtk.org/t/setoutput-data-object-for-non-zero-port/1773 "2019-09-17T14:50:59Z")

</div>

Is there a way to set the output data object for a non zero port? It appears to me that the standard SetOutput() method can only set the 0th port on an algorithm. My use case: the vtkBoxClipDataSet filter when GenerateC…

---

## [input file for vtk example cutWithCutFunction](https://discourse.vtk.org/t/input-file-for-vtk-example-cutwithcutfunction/1772)

<div class="topic-metadata">

**Author:** [@Ida](https://discourse.vtk.org/u/Ida)\
**Replies:** 2\
**Last updated:** [September 17, 2019, 12:11pm UTC](https://discourse.vtk.org/t/input-file-for-vtk-example-cutwithcutfunction/1772 "2019-09-17T12:11:59Z")

</div>

Hi, Is there an input file that comes with this vtkCutter c++ example: https://lorensen.github.io/VTKExamples/site/Cxx/VisualizationAlgorithms/CutWithCutFunction/ And is it possible to create an incomplete planar cut …

---

## [Fortran interface to vtk](https://discourse.vtk.org/t/fortran-interface-to-vtk/1765)

<div class="topic-metadata">

**Author:** [@kayarre](https://discourse.vtk.org/u/kayarre)\
**Replies:** 2\
**Last updated:** [September 16, 2019, 4:12pm UTC](https://discourse.vtk.org/t/fortran-interface-to-vtk/1765 "2019-09-16T16:12:09Z")

</div>

I have been using python bindings to vtk and vtk for a few years now. I am now working on a legacy Fortran project and would like to have native access to the vtk library or something like it. does anyone have any sugges…

---

## [Extrude output of delaunay 2D](https://discourse.vtk.org/t/extrude-output-of-delaunay-2d/1751)

<div class="topic-metadata">

**Author:** [@Neilesh\_Vinjamuri](https://discourse.vtk.org/u/Neilesh_Vinjamuri)\
**Replies:** 2\
**Last updated:** [September 13, 2019, 8:43pm UTC](https://discourse.vtk.org/t/extrude-output-of-delaunay-2d/1751 "2019-09-13T20:43:38Z")

</div>

Hi, I wanted to know whether it is possible to extrude the output from vtkDelaunay2D. I am trying to create a solid whose cross section is a semi-ellipse. I first created a polyData containing an arc attached to a line …

---

## [Which way to handle large data (2000x2560x1440 uint8)](https://discourse.vtk.org/t/which-way-to-handle-large-data-2000x2560x1440-uint8/1759)

<div class="topic-metadata">

**Author:** [@NardJ](https://discourse.vtk.org/u/NardJ)\
**Replies:** 3\
**Last updated:** [September 13, 2019, 6:22pm UTC](https://discourse.vtk.org/t/which-way-to-handle-large-data-2000x2560x1440-uint8/1759 "2019-09-13T18:22:54Z")

</div>

I need to visualize 2000 images each 2560x1440 and 8 bit color using Python3. The images are stored in a properietary 3d-printing format (RLE encoded). I have code to extract each image as an numpy array. Using vtk.vtkI…

---

## [vtk.js: Priority for overlapping surfaces on different actors](https://discourse.vtk.org/t/vtk-js-priority-for-overlapping-surfaces-on-different-actors/1757)

<div class="topic-metadata">

**Author:** [@rvilums](https://discourse.vtk.org/u/rvilums)\
**Replies:** 1\
**Last updated:** [September 13, 2019, 2:37pm UTC](https://discourse.vtk.org/t/vtk-js-priority-for-overlapping-surfaces-on-different-actors/1757 "2019-09-13T14:37:46Z")

</div>

Hello, Is there a way to tell which surface will be visible, if they overlap? Imagine, for example, that a green cube is displayed using one actor, and the same cube, but in red, is displayed using another actor. Can I…

---

## [STL written by vtkSTLWriter is not properly visible in Unity3D!](https://discourse.vtk.org/t/stl-written-by-vtkstlwriter-is-not-properly-visible-in-unity3d/1386)

<div class="topic-metadata">

**Author:** [@rai-sam](https://discourse.vtk.org/u/rai-sam)\
**Replies:** 16\
**Last updated:** [September 12, 2019, 1:57pm UTC](https://discourse.vtk.org/t/stl-written-by-vtkstlwriter-is-not-properly-visible-in-unity3d/1386 "2019-09-12T13:57:54Z")

</div>

Hello, I am new to VTK and interested to make a CAD software. Recently I have been working with decimation. I have tried to write the reduced STL using vtkSTLWriter. But the exported STL is not correctly visible due to …

---

## [the picture of coronal plane's left and right is reversion in vtk8.2.0 dicom mpr](https://discourse.vtk.org/t/the-picture-of-coronal-planes-left-and-right-is-reversion-in-vtk8-2-0-dicom-mpr/1754)

<div class="topic-metadata">

**Author:** [@chenzongxi](https://discourse.vtk.org/u/chenzongxi)\
**Replies:** 2\
**Last updated:** [September 12, 2019, 1:38pm UTC](https://discourse.vtk.org/t/the-picture-of-coronal-planes-left-and-right-is-reversion-in-vtk8-2-0-dicom-mpr/1754 "2019-09-12T13:38:33Z")

</div>

Hi, I use vs2017 to run the demo of dicom mpr(multi-planner reformation) with vtk8.2.0. The picture of transverse surface and sagittal plane is correct. But the picture of coronal plane is reverse of left and right. …

---

## [vtk complex array](https://discourse.vtk.org/t/vtk-complex-array/1747)

<div class="topic-metadata">

**Author:** [@shay](https://discourse.vtk.org/u/shay)\
**Replies:** 3\
**Last updated:** [September 11, 2019, 3:16pm UTC](https://discourse.vtk.org/t/vtk-complex-array/1747 "2019-09-11T15:16:03Z")

</div>

Hey, i’m new to vtk. i try to make a vtk image that contains a vtk complex array to create a nifti file with complex values in python. i used vtk.util.numpy\_to\_vtk to create an array, i know the function don’t support c…

---

## [How to set vtkActor with the NDI device ?](https://discourse.vtk.org/t/how-to-set-vtkactor-with-the-ndi-device/1744)

<div class="topic-metadata">

**Author:** [@james](https://discourse.vtk.org/u/james)\
**Replies:** 1\
**Last updated:** [September 11, 2019, 1:51pm UTC](https://discourse.vtk.org/t/how-to-set-vtkactor-with-the-ndi-device/1744 "2019-09-11T13:51:17Z")

</div>

hello everyone: I want show a image with vtkActor in 3D window. It can work,but i don’t know how to set it origin and orientation position these parameter let it direction and position Be consistent with NDI refrece…

---

## [vtkHandleWidget](https://discourse.vtk.org/t/vtkhandlewidget/631)

<div class="topic-metadata">

**Author:** [@marf](https://discourse.vtk.org/u/marf)\
**Replies:** 9\
**Last updated:** [September 11, 2019, 12:16pm UTC](https://discourse.vtk.org/t/vtkhandlewidget/631 "2019-09-11T12:16:36Z")

</div>

Can someone help me to understand, how to use the vtkHandleWidget? The example does not help me at all :frowning: Currently I try to set it up like this: const handle = vtkHandleWidget.newInstance() const rep = vtkHa…

---

## [Incorrect ordering of rendered objects](https://discourse.vtk.org/t/incorrect-ordering-of-rendered-objects/1736)

<div class="topic-metadata">

**Author:** [@llb](https://discourse.vtk.org/u/llb)\
**Replies:** 1\
**Last updated:** [September 10, 2019, 9:25pm UTC](https://discourse.vtk.org/t/incorrect-ordering-of-rendered-objects/1736 "2019-09-10T21:25:59Z")

</div>

Hello, I am using vtkSTLReader to read a mesh, connected to a vtkPolyDataMapper and then a vtkLODActor to display the mesh. However, from certain viewpoints the “ordering” of parts of the mesh is incorrect, see the scre…

---

## [Need Help with Image Arithmetic (vtkImageMathematics, subtraction, division by a scalar)](https://discourse.vtk.org/t/need-help-with-image-arithmetic-vtkimagemathematics-subtraction-division-by-a-scalar/1716)

<div class="topic-metadata">

**Author:** [@MichelleKline](https://discourse.vtk.org/u/MichelleKline)\
**Replies:** 5\
**Last updated:** [September 10, 2019, 7:26pm UTC](https://discourse.vtk.org/t/need-help-with-image-arithmetic-vtkimagemathematics-subtraction-division-by-a-scalar/1716 "2019-09-10T19:26:04Z")

</div>

Hi! I have a Python script which reads two DICOM images. I want to subtract one image from the other, and then divide the resulting difference by a scalar. In other words: output\_image = (input\_image2 - input\_image1)…

---

## [centering (justification/alignment) of vtkFollower text](https://discourse.vtk.org/t/centering-justification-alignment-of-vtkfollower-text/1632)

<div class="topic-metadata">

**Author:** [@dmgroppe](https://discourse.vtk.org/u/dmgroppe)\
**Replies:** 8\
**Last updated:** [September 10, 2019, 7:43pm UTC](https://discourse.vtk.org/t/centering-justification-alignment-of-vtkfollower-text/1632 "2019-09-10T19:43:06Z")

</div>

Hi all, I’m trying to use vtkFollower (https://vtk.org/Wiki/VTK/Examples/Cxx/Visualization/Follower) to render text that labels a point in 3D space. The text appears slightly above and to the right of the point (i.e., th…

---

## [Plotting the mesh cell centroids with scalars value.](https://discourse.vtk.org/t/plotting-the-mesh-cell-centroids-with-scalars-value/1595)

<div class="topic-metadata">

**Author:** [@shadab\_anwar](https://discourse.vtk.org/u/shadab_anwar)\
**Replies:** 7\
**Last updated:** [September 10, 2019, 5:59pm UTC](https://discourse.vtk.org/t/plotting-the-mesh-cell-centroids-with-scalars-value/1595 "2019-09-10T17:59:23Z")

</div>

Hello Everyone. I have a csv file which I exported from a commercial CFD software. It contains x,y,z values of cell centroids and corresponding values of the scalar(velocitymagnitude, tempreature etc) at thoes points.…

---

## [SetModelTransformMatrix changes the z-coordinate of the translation vector](https://discourse.vtk.org/t/setmodeltransformmatrix-changes-the-z-coordinate-of-the-translation-vector/1738)

<div class="topic-metadata">

**Author:** [@haho](https://discourse.vtk.org/u/haho)\
**Replies:** 0\
**Last updated:** [September 10, 2019, 3:53pm UTC](https://discourse.vtk.org/t/setmodeltransformmatrix-changes-the-z-coordinate-of-the-translation-vector/1738 "2019-09-10T15:53:36Z")

</div>

I just came across the following subtlety: I set the model transform matrix with the command \_curRendererL-\>GetActiveCamera()-\>SetModelTransformMatrix(F\_EA\_L); Then I mark the camera as modified and Render the scene: …

---

## [VTK Change of License?](https://discourse.vtk.org/t/vtk-change-of-license/1727)

<div class="topic-metadata">

**Author:** [@lorensen](https://discourse.vtk.org/u/lorensen)\
**Replies:** 3\
**Last updated:** [September 10, 2019, 12:58am UTC](https://discourse.vtk.org/t/vtk-change-of-license/1727 "2019-09-10T00:58:48Z")

</div>

I noticed this MR is changing the VTK License from Apache 2.0 to the 3 clause BSD license. What is the reasoning behind this change? Here is a summary of the differences.

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

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