# Support

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

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

**Page:** 149

---

## [VtkSockets connection to not VTK Socket](https://discourse.vtk.org/t/vtksockets-connection-to-not-vtk-socket/1870)

<div class="topic-metadata">

**Author:** [@Alex1](https://discourse.vtk.org/u/Alex1)\
**Replies:** 0\
**Last updated:** [October 4, 2019, 6:28pm UTC](https://discourse.vtk.org/t/vtksockets-connection-to-not-vtk-socket/1870 "2019-10-04T18:28:27Z")

</div>

Hi, I am new to VTK and try to connect the vtkServerSocket to my TCP Client (Putty). I tried this: vtkSmartPointer\<vtkServerSocket\> ssocket = vtkSmartPointer\<vtkServerSocket\>::New(); vtkSmartPointer\<vtkSocketControlle…

---

## [Callback keypress interaction not working](https://discourse.vtk.org/t/callback-keypress-interaction-not-working/1865)

<div class="topic-metadata">

**Author:** [@Mikend994](https://discourse.vtk.org/u/Mikend994)\
**Replies:** 0\
**Last updated:** [October 4, 2019, 11:01am UTC](https://discourse.vtk.org/t/callback-keypress-interaction-not-working/1865 "2019-10-04T11:01:59Z")

</div>

Hi, I’m trying to use a callback function for starting an action when a key(keyboard) is pressed. For doing this I’m implementing the “KeyPressObserver” example. My target is to increase the sphere radius when I click on…

---

## [OffScreenRenderingOn/Off stops the interactor?](https://discourse.vtk.org/t/offscreenrenderingon-off-stops-the-interactor/1862)

<div class="topic-metadata">

**Author:** [@Mskovmand](https://discourse.vtk.org/u/Mskovmand)\
**Replies:** 0\
**Last updated:** [October 4, 2019, 8:44am UTC](https://discourse.vtk.org/t/offscreenrenderingon-off-stops-the-interactor/1862 "2019-10-04T08:44:31Z")

</div>

Having trouble implementing OffScreenRendering for when I’m exporting an image of my scene. What I’m doing: Generate data Enable OffScreenRendering Write image. Enable OnScreenRendering Render the image (to open the r…

---

## [vtkContour](https://discourse.vtk.org/t/vtkcontour/1845)

<div class="topic-metadata">

**Author:** [@hamid\_badi](https://discourse.vtk.org/u/hamid_badi)\
**Replies:** 1\
**Last updated:** [October 3, 2019, 6:22pm UTC](https://discourse.vtk.org/t/vtkcontour/1845 "2019-10-03T18:22:58Z")

</div>

Hello everybody, Maybe i’m stupid but i want to display the isolines from two different scalars field. To do that i have all nodes, cells (for the mesh) and two scalars node fields store polydata object. I set the activ…

---

## [Reading a VTR file with Python using vtkXMLRectilinearGridReader()](https://discourse.vtk.org/t/reading-a-vtr-file-with-python-using-vtkxmlrectilineargridreader/1846)

<div class="topic-metadata">

**Author:** [@swebste9](https://discourse.vtk.org/u/swebste9)\
**Replies:** 1\
**Last updated:** [October 3, 2019, 6:11pm UTC](https://discourse.vtk.org/t/reading-a-vtr-file-with-python-using-vtkxmlrectilineargridreader/1846 "2019-10-03T18:11:27Z")

</div>

I am a new user of VTR files and have inherited some legacy code that intends to read in a VTR file with Python using the vtkXMLRectilinearGridReader(). I am having difficulties getting this to work and am hoping someon…

---

## [Writing xml vtu files using fortran](https://discourse.vtk.org/t/writing-xml-vtu-files-using-fortran/1829)

<div class="topic-metadata">

**Author:** [@Giant](https://discourse.vtk.org/u/Giant)\
**Replies:** 1\
**Last updated:** [September 30, 2019, 3:55am UTC](https://discourse.vtk.org/t/writing-xml-vtu-files-using-fortran/1829 "2019-09-30T03:55:19Z")

</div>

I am quite new to both Fortran language and VTK file format.So I have ASCII data(small part of data attached below) and want to write a vtu file for the data. Can someone provide possible guidance or solutions on how to …

---

## [How can I create a time dependent vtkUnstructuredGrid object?](https://discourse.vtk.org/t/how-can-i-create-a-time-dependent-vtkunstructuredgrid-object/1822)

<div class="topic-metadata">

**Author:** [@myousefi2016](https://discourse.vtk.org/u/myousefi2016)\
**Replies:** 1\
**Last updated:** [September 26, 2019, 5:06pm UTC](https://discourse.vtk.org/t/how-can-i-create-a-time-dependent-vtkunstructuredgrid-object/1822 "2019-09-26T17:06:34Z")

</div>

Currently, I’m combining some vtu files that belong to different time snapshots into one vtu file by using this function: def Combiner(mainfiles,path): data\_to\_write = vtk.vtkUnstructuredGrid() writer = vtk.vtkXMLUnst…

---

## [ExtractCellsUsingPoints giving unusual output](https://discourse.vtk.org/t/extractcellsusingpoints-giving-unusual-output/1832)

<div class="topic-metadata">

**Author:** [@srbn.ghosh99](https://discourse.vtk.org/u/srbn.ghosh99)\
**Replies:** 0\
**Last updated:** [September 26, 2019, 4:40pm UTC](https://discourse.vtk.org/t/extractcellsusingpoints-giving-unusual-output/1832 "2019-09-26T16:40:19Z")

</div>

Hi, I want to split one triangular mesh into two parts based on the material information which is already included in the mesh. The data is looking like this and it should be split into two parts the blue one and the o…

---

## [New VTK build on windows - doesnt build anything](https://discourse.vtk.org/t/new-vtk-build-on-windows-doesnt-build-anything/1798)

<div class="topic-metadata">

**Author:** [@jep\_crain](https://discourse.vtk.org/u/jep_crain)\
**Replies:** 1\
**Last updated:** [September 26, 2019, 2:12pm UTC](https://discourse.vtk.org/t/new-vtk-build-on-windows-doesnt-build-anything/1798 "2019-09-26T14:12:01Z")

</div>

Followed instructions here: https://vtk.org/Wiki/VTK/Building/Windows I am using Visual Studio 2019. CMake 3.15.3 CMake “configures” and “generates”. Produces a VTK.sln Load VTK.sln into VS19 - issue build. Get no…

---

## [UnStructuredGrid rendering with OSPRay](https://discourse.vtk.org/t/unstructuredgrid-rendering-with-ospray/1826)

<div class="topic-metadata">

**Author:** [@ymhsieh](https://discourse.vtk.org/u/ymhsieh)\
**Replies:** 0\
**Last updated:** [September 26, 2019, 3:42am UTC](https://discourse.vtk.org/t/unstructuredgrid-rendering-with-ospray/1826 "2019-09-26T03:42:40Z")

</div>

Hello, I have problems with rendering a simple unstructuredgrid with OSPRay turned on. The UnStructuredGrid is constructed as attached, and it renders fine without OSPRay. I’ve also tested my setup and vtkSphereSource …

---

## [How can set camera to get the result that see from the back?](https://discourse.vtk.org/t/how-can-set-camera-to-get-the-result-that-see-from-the-back/1730)

<div class="topic-metadata">

**Author:** [@pingdan](https://discourse.vtk.org/u/pingdan)\
**Replies:** 14\
**Last updated:** [September 25, 2019, 5:31pm UTC](https://discourse.vtk.org/t/how-can-set-camera-to-get-the-result-that-see-from-the-back/1730 "2019-09-25T17:31:30Z")

</div>

I vtkSmartPointermyCamera = vtkSmartPointer::New(); myCamera-\>SetClippingRange(0,2);// myCamera-\>SetFocalPoint(212, 212, 148);// myCamera-\>SetPosition(212,900,148);// myCamera-\>ComputeViewPlaneNormal(); myCamera-\>…

---

## [vtkcutter with vtkimagereslice does not consider extent](https://discourse.vtk.org/t/vtkcutter-with-vtkimagereslice-does-not-consider-extent/1802)

<div class="topic-metadata">

**Author:** [@zandarina](https://discourse.vtk.org/u/zandarina)\
**Replies:** 2\
**Last updated:** [September 25, 2019, 1:24pm UTC](https://discourse.vtk.org/t/vtkcutter-with-vtkimagereslice-does-not-consider-extent/1802 "2019-09-25T13:24:56Z")

</div>

Hi everybody I would like an stl or polydata overlay an vtkimagedata. The problem i found is that the transform in vtkimagereslice does not consider the extent. So i use vtkcutter properly to compute the cut of the stl …

---

## [new to vtk/render a prism(wall) that vibrates along time](https://discourse.vtk.org/t/new-to-vtk-render-a-prism-wall-that-vibrates-along-time/1818)

<div class="topic-metadata">

**Author:** [@hgropelli](https://discourse.vtk.org/u/hgropelli)\
**Replies:** 0\
**Last updated:** [September 25, 2019, 9:36am UTC](https://discourse.vtk.org/t/new-to-vtk-render-a-prism-wall-that-vibrates-along-time/1818 "2019-09-25T09:36:45Z")

</div>

Hello! I’m new to vtk. I already rendered in .vtk a group of particles (vtkunstructuredgrid) in movement (+1000) with scalars (temperature, radius…) to view in paraview, I had previously all conditions of particles gener…

---

## [DIMENSIONS field of the VTK legacy format](https://discourse.vtk.org/t/dimensions-field-of-the-vtk-legacy-format/1810)

<div class="topic-metadata">

**Author:** [@danielc](https://discourse.vtk.org/u/danielc)\
**Replies:** 3\
**Last updated:** [September 24, 2019, 6:48pm UTC](https://discourse.vtk.org/t/dimensions-field-of-the-vtk-legacy-format/1810 "2019-09-24T18:48:28Z")

</div>

Hello, I hope this is the correct forum to ask a question about the VTK legacy file format. I have this application (not mine) that produces VTK legacy files, and it does something funky with the DIMENSIONS line and I w…

---

## [Mac/Java build on CDash?](https://discourse.vtk.org/t/mac-java-build-on-cdash/1811)

<div class="topic-metadata">

**Author:** [@Gilthalas](https://discourse.vtk.org/u/Gilthalas)\
**Replies:** 0\
**Last updated:** [September 24, 2019, 12:16pm UTC](https://discourse.vtk.org/t/mac-java-build-on-cdash/1811 "2019-09-24T12:16:14Z")

</div>

I notice that there are several different configurations being built on https://open.cdash.org/index.php?project=VTK - are there plans to get one for Mac with Java wrappings? I still continue to have problems building V…

---

## [LookupTable on Grid not working](https://discourse.vtk.org/t/lookuptable-on-grid-not-working/1807)

<div class="topic-metadata">

**Author:** [@Mikend994](https://discourse.vtk.org/u/Mikend994)\
**Replies:** 0\
**Last updated:** [September 23, 2019, 3:48pm UTC](https://discourse.vtk.org/t/lookuptable-on-grid-not-working/1807 "2019-09-23T15:48:05Z")

</div>

Hi, I’m trying to connect a LookupTable on a Grid(like one from examples). I have seen some tutorial and I have done what was in there, but it still not working. I have defined a new lookup table like this vtkSmart…

---

## [why vtkResliceCursor set a negative in vtkResliceCursor.cxx file?](https://discourse.vtk.org/t/why-vtkreslicecursor-set-a-negative-in-vtkreslicecursor-cxx-file/1800)

<div class="topic-metadata">

**Author:** [@pingdan](https://discourse.vtk.org/u/pingdan)\
**Replies:** 0\
**Last updated:** [September 23, 2019, 7:36am UTC](https://discourse.vtk.org/t/why-vtkreslicecursor-set-a-negative-in-vtkreslicecursor-cxx-file/1800 "2019-09-23T07:36:31Z")

</div>

when I search the file ‘vtkResliceCursor.cxx’ and find as below: vtkResliceCursor::vtkResliceCursor() { … … this-\>ReslicePlanes-\>GetItem(0)-\>SetNormal(1,0,0); this-\>ReslicePlanes-\>GetItem(1)-\>SetNormal(0,-1,0); th…

---

## [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…

---

## [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…

---

## [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 …

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

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