# Support

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

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

**Page:** 68

---

## [vtkThreshold get extremes](https://discourse.vtk.org/t/vtkthreshold-get-extremes/9445)

<div class="topic-metadata">

**Author:** [@gbene](https://discourse.vtk.org/u/gbene)\
**Replies:** 2\
**Last updated:** [September 25, 2022, 8:04am UTC](https://discourse.vtk.org/t/vtkthreshold-get-extremes/9445 "2022-09-25T08:04:28Z")

</div>

Hi! I was wandering if there was a simple way to use ThresholdBetween for vtkThreshold to get the part of the object thesholded away (like GenerateClippedOutputOn for vtkClipPolyData). This could be achieved with a com…

---

## [Slow update when using vtkGlyph3D in Activiz 9.1](https://discourse.vtk.org/t/slow-update-when-using-vtkglyph3d-in-activiz-9-1/9377)

<div class="topic-metadata">

**Author:** [@MarKara](https://discourse.vtk.org/u/MarKara)\
**Replies:** 6\
**Last updated:** [September 23, 2022, 5:58pm UTC](https://discourse.vtk.org/t/slow-update-when-using-vtkglyph3d-in-activiz-9-1/9377 "2022-09-23T17:58:30Z")

</div>

Hi I just moved from Activiz 6.3 to 9.1 and found that visualizing relatively large dataset with vtkGlyph3D is very very slow. I have 7746 points and it takes couple minutes to update glyphs. In version 6.3, update and…

---

## [renderWindow.SetSize() limits?](https://discourse.vtk.org/t/renderwindow-setsize-limits/9373)

<div class="topic-metadata">

**Author:** [@llobera](https://discourse.vtk.org/u/llobera)\
**Replies:** 16\
**Last updated:** [September 23, 2022, 10:21am UTC](https://discourse.vtk.org/t/renderwindow-setsize-limits/9373 "2022-09-23T10:21:27Z")

</div>

I have been playing around with different sizes for the renderWindow… I use SetSize and then used .GetSize() to get back the values. If I did this without starting any rendering, I was able to set any dimensions to the r…

---

## [How to write an editable "point cloud" application?](https://discourse.vtk.org/t/how-to-write-an-editable-point-cloud-application/9434)

<div class="topic-metadata">

**Author:** [@Tomasso](https://discourse.vtk.org/u/Tomasso)\
**Replies:** 1\
**Last updated:** [September 23, 2022, 8:33am UTC](https://discourse.vtk.org/t/how-to-write-an-editable-point-cloud-application/9434 "2022-09-23T08:33:54Z")

</div>

I have sonar bathymetry data sets that consist of many (10K +) points (latitude, longitude, depth). I want to write a C++ application to display the data set as a point cloud. The user should have capability to “edit” th…

---

## [vtu2x3d](https://discourse.vtk.org/t/vtu2x3d/9431)

<div class="topic-metadata">

**Author:** [@chengchengjing](https://discourse.vtk.org/u/chengchengjing)\
**Replies:** 0\
**Last updated:** [September 22, 2022, 1:21pm UTC](https://discourse.vtk.org/t/vtu2x3d/9431 "2022-09-22T13:21:32Z")

</div>

I want to save a vtu file as X3D format through vtkX3DExporter, this is my code, but the result is only 1kb. import vtk def main(): colors = vtk.vtkNamedColors() file\_name = ‘C:\\Users\\jcc\\Desktop\\test.vtu’ reader = …

---

## [Apply deformation to the 3D-CT image volume from mesh displacement](https://discourse.vtk.org/t/apply-deformation-to-the-3d-ct-image-volume-from-mesh-displacement/9407)

<div class="topic-metadata">

**Author:** [@isuruwi](https://discourse.vtk.org/u/isuruwi)\
**Replies:** 1\
**Last updated:** [September 20, 2022, 10:34pm UTC](https://discourse.vtk.org/t/apply-deformation-to-the-3d-ct-image-volume-from-mesh-displacement/9407 "2022-09-20T22:34:47Z")

</div>

I have a reference mesh and a deformed version of it (they are unstrcuted grid saved in vtk file format). The reference mesh was acquired from a 3D-CT volume. I would want to apply the same deformation to the reference …

---

## [Custom colormap and \`vtkTubeFilter\`](https://discourse.vtk.org/t/custom-colormap-and-vtktubefilter/9380)

<div class="topic-metadata">

**Author:** [@Marcin\_Krotkiewski](https://discourse.vtk.org/u/Marcin_Krotkiewski)\
**Replies:** 3\
**Last updated:** [September 21, 2022, 9:44am UTC](https://discourse.vtk.org/t/custom-colormap-and-vtktubefilter/9380 "2022-09-21T09:44:18Z")

</div>

Hi! I’m having a very hard time convincing VTK to color my data according to the supplied custom lookup table, and I would really appreciate some hints. The problem occurs when using the vtkTubeFilter: it seems that the…

---

## [Unable to get vtkMP4Writer to work on Windows vtk 9.2](https://discourse.vtk.org/t/unable-to-get-vtkmp4writer-to-work-on-windows-vtk-9-2/9282)

<div class="topic-metadata">

**Author:** [@Flagada](https://discourse.vtk.org/u/Flagada)\
**Replies:** 3\
**Last updated:** [September 13, 2022, 3:19pm UTC](https://discourse.vtk.org/t/unable-to-get-vtkmp4writer-to-work-on-windows-vtk-9-2/9282 "2022-09-13T15:19:57Z")

</div>

Hi all! Following the build instructions (https://gitlab.kitware.com/vtk/vtk/-/blob/master/Documentation/dev/build.md#build-settings) I tried the “VTK\_USE\_VIDEO\_FOR\_WINDOWS\_CAPTURE" option in order to enable the use of …

---

## [mocking in cxx surface rendering with cropping similar to a 3d slicer example](https://discourse.vtk.org/t/mocking-in-cxx-surface-rendering-with-cropping-similar-to-a-3d-slicer-example/9397)

<div class="topic-metadata">

**Author:** [@fab672000](https://discourse.vtk.org/u/fab672000)\
**Replies:** 0\
**Last updated:** [September 19, 2022, 11:20pm UTC](https://discourse.vtk.org/t/mocking-in-cxx-surface-rendering-with-cropping-similar-to-a-3d-slicer-example/9397 "2022-09-19T23:20:31Z")

</div>

Hi, I am new to vtk and started to learn from the examples and the textbooks since a couple of weeks, I would like to implement in my current c++ demo something similar to: See: https://discourse.slicer.org/t/hide-d…

---

## [Redirect vtkContextView to a chosen render window](https://discourse.vtk.org/t/redirect-vtkcontextview-to-a-chosen-render-window/9379)

<div class="topic-metadata">

**Author:** [@Martin3d](https://discourse.vtk.org/u/Martin3d)\
**Replies:** 4\
**Last updated:** [September 20, 2022, 5:05pm UTC](https://discourse.vtk.org/t/redirect-vtkcontextview-to-a-chosen-render-window/9379 "2022-09-20T17:05:56Z")

</div>

I want to use vtkChartXYZ in Java, as demonstrated by the SurfacePlot example which can be ported to java almost as-is. The example uses a vtkContextView which facilitate the renderer, render window and interactor initi…

---

## [VTK volume from std::vector and opencv images](https://discourse.vtk.org/t/vtk-volume-from-std-vector-and-opencv-images/9369)

<div class="topic-metadata">

**Author:** [@alex1610](https://discourse.vtk.org/u/alex1610)\
**Replies:** 1\
**Last updated:** [September 20, 2022, 1:41pm UTC](https://discourse.vtk.org/t/vtk-volume-from-std-vector-and-opencv-images/9369 "2022-09-20T13:41:15Z")

</div>

I would like to create a volume from an std::vector of cv::Mat. I save all values in an std::vector in a linear way at first and then I import the pointer to data with imageimport. My problem is that my images are trunca…

---

## [Draw 3D box](https://discourse.vtk.org/t/draw-3d-box/9405)

<div class="topic-metadata">

**Author:** [@qq\_X](https://discourse.vtk.org/u/qq_X)\
**Replies:** 0\
**Last updated:** [September 20, 2022, 11:23am UTC](https://discourse.vtk.org/t/draw-3d-box/9405 "2022-09-20T11:23:34Z")

</div>

I’m trying to reproduce the frame function from a software like this I used to use the vtkborderwidget, But it seems to be a 3D frame with different viewing angles, So I don’t konw how to do

---

## [vtu file coloring](https://discourse.vtk.org/t/vtu-file-coloring/9392)

<div class="topic-metadata">

**Author:** [@chengchengjing](https://discourse.vtk.org/u/chengchengjing)\
**Replies:** 2\
**Last updated:** [September 20, 2022, 11:01am UTC](https://discourse.vtk.org/t/vtu-file-coloring/9392 "2022-09-20T11:01:41Z")

</div>

Opening a vtu file with paraview has the following variables, how can I use one of them to colorize through C++?

---

## [360 degree view](https://discourse.vtk.org/t/360-degree-view/8984)

<div class="topic-metadata">

**Author:** [@llobera](https://discourse.vtk.org/u/llobera)\
**Replies:** 7\
**Last updated:** [September 20, 2022, 8:43am UTC](https://discourse.vtk.org/t/360-degree-view/8984 "2022-09-20T08:43:47Z")

</div>

I am trying to obtain a 360 view of a terrain rendered in VTK. I have come across vtkPanoramicProjectionPass() but I have not found any examples. Can anyone point to some example, ideally, using python bindings?

---

## [coloring](https://discourse.vtk.org/t/coloring/9395)

<div class="topic-metadata">

**Author:** [@chengchengjing](https://discourse.vtk.org/u/chengchengjing)\
**Replies:** 1\
**Last updated:** [September 19, 2022, 2:34pm UTC](https://discourse.vtk.org/t/coloring/9395 "2022-09-19T14:34:43Z")

</div>

I open a vtu file with paraview and have the following attribute data, how can I use one of them to colorize like Spatial\_displacement？

---

## [is there a way to convert gmsh file(.msh) to .vtk](https://discourse.vtk.org/t/is-there-a-way-to-convert-gmsh-file-msh-to-vtk/9391)

<div class="topic-metadata">

**Author:** [@Zhao412](https://discourse.vtk.org/u/Zhao412)\
**Replies:** 1\
**Last updated:** [September 19, 2022, 3:07am UTC](https://discourse.vtk.org/t/is-there-a-way-to-convert-gmsh-file-msh-to-vtk/9391 "2022-09-19T03:07:59Z")

</div>

is there a way to convert gmsh file(.msh) to .vtk or could i use gmsh output a vtk file, like write("test.vtk"); Or I have to write a c++program to convert the msh file into a vtk file

---

## [Different colours for cell faces](https://discourse.vtk.org/t/different-colours-for-cell-faces/9363)

<div class="topic-metadata">

**Author:** [@drpeterfranz](https://discourse.vtk.org/u/drpeterfranz)\
**Replies:** 2\
**Last updated:** [September 18, 2022, 6:18pm UTC](https://discourse.vtk.org/t/different-colours-for-cell-faces/9363 "2022-09-18T18:18:04Z")

</div>

This may be a long shot and not possible… Is there an easy way to colour each face of 3D cells individually? Like attaching a dataset to an unstructured grid which contains a value per face of each cell?

---

## [How to build VTK-9.1.0 Static Library?](https://discourse.vtk.org/t/how-to-build-vtk-9-1-0-static-library/8339)

<div class="topic-metadata">

**Author:** [@Geeta](https://discourse.vtk.org/u/Geeta)\
**Replies:** 5\
**Last updated:** [September 17, 2022, 5:34pm UTC](https://discourse.vtk.org/t/how-to-build-vtk-9-1-0-static-library/8339 "2022-09-17T17:34:59Z")

</div>

I have built VTK-9.1.0 Static library by keeping BUILD\_SHARED\_LIBS = OFF. But when I use this library in my module\[vtkDlgApp\] I get Linking errors. Severity Code Description Project File Line Suppression State Error …

---

## [How can I solve this rendering error when marking the mouse pick triangle?](https://discourse.vtk.org/t/how-can-i-solve-this-rendering-error-when-marking-the-mouse-pick-triangle/9383)

<div class="topic-metadata">

**Author:** [@luck1](https://discourse.vtk.org/u/luck1)\
**Replies:** 0\
**Last updated:** [September 17, 2022, 3:41pm UTC](https://discourse.vtk.org/t/how-can-i-solve-this-rendering-error-when-marking-the-mouse-pick-triangle/9383 "2022-09-17T15:41:08Z")

</div>

VTK is new to me, When I try to mark the triangle picked by the mouse as red, Triangles do not render properly. Here is a video: Environment: OS version: Windows 10 21H2 Python version: 3.8 Vtk version: 9.1.0 Her…

---

## [Why does the vtkOBJReader add point automatically?](https://discourse.vtk.org/t/why-does-the-vtkobjreader-add-point-automatically/9367)

<div class="topic-metadata">

**Author:** [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)\
**Replies:** 3\
**Last updated:** [September 16, 2022, 3:00pm UTC](https://discourse.vtk.org/t/why-does-the-vtkobjreader-add-point-automatically/9367 "2022-09-16T15:00:18Z")

</div>

Hello,I have an cube in obj format with content like this: o Cube v 1.000000 1.000000 -1.000000 v 1.000000 -1.000000 -1.000000 v 1.000000 1.000000 1.000000 v 1.000000 -1.000000 1.000000 v -1.000000 1.000000 -1.000000 v …

---

## [Hide internal edges of quadratic cells](https://discourse.vtk.org/t/hide-internal-edges-of-quadratic-cells/2419)

<div class="topic-metadata">

**Author:** [@Flagada](https://discourse.vtk.org/u/Flagada)\
**Replies:** 11\
**Last updated:** [September 16, 2022, 1:06pm UTC](https://discourse.vtk.org/t/hide-internal-edges-of-quadratic-cells/2419 "2022-09-16T13:06:51Z")

</div>

Hi! In my application I am trying to add some quadratic cell (vtkQuadraticQuad and vtkQuadraticTriangle) in a vtkUnstructuredGrid. The problem is that, as in the following example (https://lorensen.github.io/VTKExamples…

---

## [Using vtkImageReslice to mimic a cut plane cutting through 3D Image data](https://discourse.vtk.org/t/using-vtkimagereslice-to-mimic-a-cut-plane-cutting-through-3d-image-data/9349)

<div class="topic-metadata">

**Author:** [@tchen87](https://discourse.vtk.org/u/tchen87)\
**Replies:** 1\
**Last updated:** [September 15, 2022, 1:24pm UTC](https://discourse.vtk.org/t/using-vtkimagereslice-to-mimic-a-cut-plane-cutting-through-3d-image-data/9349 "2022-09-15T13:24:29Z")

</div>

I am interested in having a way of visualizing any given oblique slice through a volumetric image data set. I have a working implementation that utilizes vtkImageSlice, with vtkImageResliceMapper’s SetSlicePlane method …

---

## [vtkConnectedPointsFilter not working in PyQt based application](https://discourse.vtk.org/t/vtkconnectedpointsfilter-not-working-in-pyqt-based-application/9355)

<div class="topic-metadata">

**Author:** [@gbene](https://discourse.vtk.org/u/gbene)\
**Replies:** 0\
**Last updated:** [September 15, 2022, 10:45am UTC](https://discourse.vtk.org/t/vtkconnectedpointsfilter-not-working-in-pyqt-based-application/9355 "2022-09-15T10:45:17Z")

</div>

Hi! I was experimentig with the vtkConnectedPointsFilter to implement point cloud segmentation methods for a PyQt based application and I encountered a problem. When running the filter on a simple test script the algor…

---

## [Can VTK add multiple clipPlane to UnstructuredGrid dataset?](https://discourse.vtk.org/t/can-vtk-add-multiple-clipplane-to-unstructuredgrid-dataset/8950)

<div class="topic-metadata">

**Author:** [@Albers\_Steven](https://discourse.vtk.org/u/Albers_Steven)\
**Replies:** 2\
**Last updated:** [September 15, 2022, 2:55am UTC](https://discourse.vtk.org/t/can-vtk-add-multiple-clipplane-to-unstructuredgrid-dataset/8950 "2022-09-15T02:55:02Z")

</div>

Hi, I try to clip an unstructured grid data with the example code of ClipUnstructuredGridWithPlane2. I works. But the limit is that it can only add one clipPlane because you can only SetClipFunction once. So is there …

---

## [Error in save vtkParametricFunctionSource using vtkPolyDataWriter](https://discourse.vtk.org/t/error-in-save-vtkparametricfunctionsource-using-vtkpolydatawriter/9315)

<div class="topic-metadata">

**Author:** [@zhen\_tian](https://discourse.vtk.org/u/zhen_tian)\
**Replies:** 2\
**Last updated:** [September 15, 2022, 2:12am UTC](https://discourse.vtk.org/t/error-in-save-vtkparametricfunctionsource-using-vtkpolydatawriter/9315 "2022-09-15T02:12:09Z")

</div>

I am working on a project which need to save data into .vtk file using python. I got an error when save a vtkParametricFunctionSource. Here is a sample code. import vtk ellipsoid = vtk.vtkParametricEllipsoid() ellipsoid…

---

## [Problems interpolating from delaunay2d](https://discourse.vtk.org/t/problems-interpolating-from-delaunay2d/9294)

<div class="topic-metadata">

**Author:** [@llobera](https://discourse.vtk.org/u/llobera)\
**Replies:** 5\
**Last updated:** [September 15, 2022, 2:01am UTC](https://discourse.vtk.org/t/problems-interpolating-from-delaunay2d/9294 "2022-09-15T02:01:26Z")

</div>

I used vtkDelaunay2d to generate a terrain surface. I wanted to obtain the elevation at two locations following this example suggested from an earlier posting. The locations are coordinates in terrain units. I have writt…

---

## [vtk-9 with QML - examples?](https://discourse.vtk.org/t/vtk-9-with-qml-examples/9347)

<div class="topic-metadata">

**Author:** [@Tomasso](https://discourse.vtk.org/u/Tomasso)\
**Replies:** 1\
**Last updated:** [September 14, 2022, 9:58pm UTC](https://discourse.vtk.org/t/vtk-9-with-qml-examples/9347 "2022-09-14T21:58:44Z")

</div>

I wrote an application that defines user controls with QML (Qt-5.14), and displays polygonal surface data with VTK-8.2. My software uses the approach described here, extending QQuickFrameBufferObject which runs in the ma…

---

## [GetCellEdgeNeighbors gives all 0s](https://discourse.vtk.org/t/getcelledgeneighbors-gives-all-0s/9346)

<div class="topic-metadata">

**Author:** [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)\
**Replies:** 2\
**Last updated:** [September 14, 2022, 2:33pm UTC](https://discourse.vtk.org/t/getcelledgeneighbors-gives-all-0s/9346 "2022-09-14T14:33:19Z")

</div>

Hello,I have a cude ,and want to get the neighbors of each cell iterating edge like this: GetCellEdgeNeighbors( cellId , edgeStart , edgeEnd , xxx) In expectation,each edge should have one neighbor,but all got 0,and i…

---

## [Probleme with Cmake for VTK installation](https://discourse.vtk.org/t/probleme-with-cmake-for-vtk-installation/9331)

<div class="topic-metadata">

**Author:** [@Minigandi](https://discourse.vtk.org/u/Minigandi)\
**Replies:** 5\
**Last updated:** [September 13, 2022, 8:43pm UTC](https://discourse.vtk.org/t/probleme-with-cmake-for-vtk-installation/9331 "2022-09-13T20:43:44Z")

</div>

Hello, I’m trying to install VTK on my computer, and there is always this error during the configuration, and even if I create a bin folder where CMake shows the error. Building with Visual stuido does not install VTK. …

---

## [VtkCamera angular ranges ranges?](https://discourse.vtk.org/t/vtkcamera-angular-ranges-ranges/9322)

<div class="topic-metadata">

**Author:** [@llobera](https://discourse.vtk.org/u/llobera)\
**Replies:** 6\
**Last updated:** [September 13, 2022, 8:07am UTC](https://discourse.vtk.org/t/vtkcamera-angular-ranges-ranges/9322 "2022-09-13T08:07:58Z")

</div>

It appears that one can set either the vertical or horizontal visual angles of a camera. If I was to set either of these (say the horizontal visual angle range) how would I find what is the other visual range (in this c…

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

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