# Support

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

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

**Page:** 62

---

## [borehole/well log](https://discourse.vtk.org/t/borehole-well-log/9948)

<div class="topic-metadata">

**Author:** [@bistek](https://discourse.vtk.org/u/bistek)\
**Replies:** 7\
**Last updated:** [December 6, 2022, 3:34pm UTC](https://discourse.vtk.org/t/borehole-well-log/9948 "2022-12-06T15:34:09Z")

</div>

Hello, we are building a geological visualization application and we need to visualize borehole/well logs, i.e. parameters recorded along a borehole or a well in the subsurface. The borehole geometry is represented by a …

---

## [How to store time series array of scalars?](https://discourse.vtk.org/t/how-to-store-time-series-array-of-scalars/10089)

<div class="topic-metadata">

**Author:** [@Reshma\_R\_S](https://discourse.vtk.org/u/Reshma_R_S)\
**Replies:** 0\
**Last updated:** [December 6, 2022, 1:21pm UTC](https://discourse.vtk.org/t/how-to-store-time-series-array-of-scalars/10089 "2022-12-06T13:21:32Z")

</div>

I have a netCDF file with geospatial temporal data. From the vtk NETCDF reader, without having to do an Update() on the reader, I am able to get the scalars from different time points using the following code: timeIndex…

---

## [Data Visualization](https://discourse.vtk.org/t/data-visualization/10060)

<div class="topic-metadata">

**Author:** [@Frankenstein](https://discourse.vtk.org/u/Frankenstein)\
**Replies:** 4\
**Last updated:** [December 6, 2022, 2:01pm UTC](https://discourse.vtk.org/t/data-visualization/10060 "2022-12-06T14:01:10Z")

</div>

Hi,guys,I am using VTK(c++) to visualize some results,I need to visualize the distribution of oil film forces on a cylinder surface， just like this picture.I already have a two-dimensional array of pressure data that …

---

## ['vtkScalarBarActor' show error with vtkGenericOpenGLRenderWindow](https://discourse.vtk.org/t/vtkscalarbaractor-show-error-with-vtkgenericopenglrenderwindow/10083)

<div class="topic-metadata">

**Author:** [@domusonway](https://discourse.vtk.org/u/domusonway)\
**Replies:** 0\
**Last updated:** [December 6, 2022, 8:16am UTC](https://discourse.vtk.org/t/vtkscalarbaractor-show-error-with-vtkgenericopenglrenderwindow/10083 "2022-12-06T08:16:53Z")

</div>

I want to add vtkScalarBarActor in vtk widget under qt , but I have a problem. When using vtkGenericOpenGLRenderWindow, the displayed color bar has no color, and the label is normal. But if I switch vtkGenericOpenGLRende…

---

## [SetInterpolationToFlat do not work](https://discourse.vtk.org/t/setinterpolationtoflat-do-not-work/10015)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 7\
**Last updated:** [December 6, 2022, 1:43am UTC](https://discourse.vtk.org/t/setinterpolationtoflat-do-not-work/10015 "2022-12-06T01:43:45Z")

</div>

I am using SetInterpolationToFlat, but I find it do not work. The code to reproduce my question is: import vtkmodules.all as vtk nodes = \[ \[ 3.56000000e+02, 2.56000000e+02, 0.00000000e+00\], \[ 1.56000000e+02,…

---

## [why I can't include header file 'itkVTKImageToImageFilter.h'](https://discourse.vtk.org/t/why-i-cant-include-header-file-itkvtkimagetoimagefilter-h/10076)

<div class="topic-metadata">

**Author:** [@Sterben\_01](https://discourse.vtk.org/u/Sterben_01)\
**Replies:** 3\
**Last updated:** [December 5, 2022, 8:25pm UTC](https://discourse.vtk.org/t/why-i-cant-include-header-file-itkvtkimagetoimagefilter-h/10076 "2022-12-05T20:25:19Z")

</div>

Hi! I want to convert vtkImageData to itk::Image, so I found a class called itk::VTKImageToImageFilter But after I included the header file include \<itkVTKImageToImageFilter.h\>, it pops some error like ： /home/zhaoz22…

---

## [How to show a messagebox by click on an object with Activiz](https://discourse.vtk.org/t/how-to-show-a-messagebox-by-click-on-an-object-with-activiz/10077)

<div class="topic-metadata">

**Author:** [@ranrui04](https://discourse.vtk.org/u/ranrui04)\
**Replies:** 0\
**Last updated:** [December 5, 2022, 8:03pm UTC](https://discourse.vtk.org/t/how-to-show-a-messagebox-by-click-on-an-object-with-activiz/10077 "2022-12-05T20:03:21Z")

</div>

Hello! I wanted to popup a message box by clicking on a vtkRectangularButtonSouce or other type of object. I didn’t find any C# examples that would help. I’d appreciate it if someone could point me to the right directio…

---

## [How to use Eigen inside VTK](https://discourse.vtk.org/t/how-to-use-eigen-inside-vtk/10047)

<div class="topic-metadata">

**Author:** [@Ruooo](https://discourse.vtk.org/u/Ruooo)\
**Replies:** 1\
**Last updated:** [December 5, 2022, 4:08pm UTC](https://discourse.vtk.org/t/how-to-use-eigen-inside-vtk/10047 "2022-12-05T16:08:34Z")

</div>

Hi, I’m trying to use Eigen for some geometry computing, but I don’t know how to use the VTK third-party module and how to include the Eigen header. For now, In CMakeLists, I put vtkeigen in the find\_package, and includ…

---

## [Forward Declaration error when using Qt](https://discourse.vtk.org/t/forward-declaration-error-when-using-qt/10066)

<div class="topic-metadata">

**Author:** [@nnzzll](https://discourse.vtk.org/u/nnzzll)\
**Replies:** 1\
**Last updated:** [December 5, 2022, 2:46pm UTC](https://discourse.vtk.org/t/forward-declaration-error-when-using-qt/10066 "2022-12-05T14:46:48Z")

</div>

Here is a simple example for my problem: // test.h #include \<QObject\> #include \<vtkSmartPointer.h\> class vtkImageData; class test : public QObject { private: vtkSmartPointer\<vtkImageData\> img = vtkSmartPointer\<vtkI…

---

## [How to quote/reference VTK in commercial applications ?](https://discourse.vtk.org/t/how-to-quote-reference-vtk-in-commercial-applications/10057)

<div class="topic-metadata">

**Author:** [@Nicholas\_Yue](https://discourse.vtk.org/u/Nicholas_Yue)\
**Replies:** 1\
**Last updated:** [December 5, 2022, 9:23am UTC](https://discourse.vtk.org/t/how-to-quote-reference-vtk-in-commercial-applications/10057 "2022-12-05T09:23:32Z")

</div>

Hi, I am compiling VTK and linking my application to the VTK libraries. I am considering providing my application as a commercial offering. I have been reading the following page https://vtk.org/about/ especially the …

---

## [Scipy cookbook example not compatible with vtk 8](https://discourse.vtk.org/t/scipy-cookbook-example-not-compatible-with-vtk-8/1144)

<div class="topic-metadata">

**Author:** [@joa](https://discourse.vtk.org/u/joa)\
**Replies:** 3\
**Last updated:** [December 5, 2022, 5:56am UTC](https://discourse.vtk.org/t/scipy-cookbook-example-not-compatible-with-vtk-8/1144 "2022-12-05T05:56:00Z")

</div>

Hello everyone, I’m trying to get familiar with vtk in python. I’d like to do ray tracing using vtk 8. So I found the following example at https://vtk.org/Wiki/VTK/Examples/Python/vtkWithNumpy (reproducing it to free…

---

## [How can I determine which handle of a vtkLineWidget2 is active and get it's current position?](https://discourse.vtk.org/t/how-can-i-determine-which-handle-of-a-vtklinewidget2-is-active-and-get-its-current-position/10061)

<div class="topic-metadata">

**Author:** [@scotsman60](https://discourse.vtk.org/u/scotsman60)\
**Replies:** 3\
**Last updated:** [December 4, 2022, 9:01pm UTC](https://discourse.vtk.org/t/how-can-i-determine-which-handle-of-a-vtklinewidget2-is-active-and-get-its-current-position/10061 "2022-12-04T21:01:50Z")

</div>

Hello!!! I’m trying to use vtkLineWidget2 in such a way that the ends of the line “snap” to the nearest point under the cursor. Positioning a handle is easy enough, but I can’t figure out how to determine which handle i…

---

## [Color a mesh by height and width](https://discourse.vtk.org/t/color-a-mesh-by-height-and-width/9965)

<div class="topic-metadata">

**Author:** [@Hamid\_Fsian](https://discourse.vtk.org/u/Hamid_Fsian)\
**Replies:** 1\
**Last updated:** [December 4, 2022, 3:10pm UTC](https://discourse.vtk.org/t/color-a-mesh-by-height-and-width/9965 "2022-12-04T15:10:49Z")

</div>

Dear Community, I am trying to color an object based on the width of this later. I tried to inspire myself from this code But this later is for the height. And I want to set a color map based on the width for each z-sli…

---

## [Fit splines to center of irregular 3d tube](https://discourse.vtk.org/t/fit-splines-to-center-of-irregular-3d-tube/9972)

<div class="topic-metadata">

**Author:** [@s195t](https://discourse.vtk.org/u/s195t)\
**Replies:** 1\
**Last updated:** [December 4, 2022, 3:06pm UTC](https://discourse.vtk.org/t/fit-splines-to-center-of-irregular-3d-tube/9972 "2022-12-04T15:06:11Z")

</div>

Dear everyone, I have a dataset with multiple structures which are shaped like irregular 3d tubes, I was wondering if it is possible to fit a spline through the approximate center of such structures (I have both isosurf…

---

## [Color a vtk object by width](https://discourse.vtk.org/t/color-a-vtk-object-by-width/9969)

<div class="topic-metadata">

**Author:** [@Hamid\_Fsian](https://discourse.vtk.org/u/Hamid_Fsian)\
**Replies:** 1\
**Last updated:** [December 4, 2022, 2:56pm UTC](https://discourse.vtk.org/t/color-a-vtk-object-by-width/9969 "2022-12-04T14:56:46Z")

</div>

Dear Community, I am trying to color a 3D object by parsing each slice and affect a color if the width is \> to a certain thershold. Or \< to another one Below the code that I try to modify in order to fit my needs. but …

---

## [How to area pick actors?](https://discourse.vtk.org/t/how-to-area-pick-actors/9961)

<div class="topic-metadata">

**Author:** [@rockydut](https://discourse.vtk.org/u/rockydut)\
**Replies:** 1\
**Last updated:** [December 4, 2022, 2:43pm UTC](https://discourse.vtk.org/t/how-to-area-pick-actors/9961 "2022-12-04T14:43:56Z")

</div>

There are many actors, and I want to area pick some actors. The area defined by mouse can be get from: vtkPlanes\* frustum = static\_cast\<vtkAreaPicker\*\>(GetInteractor()-\>GetPicker())-\>GetFrustum(); The problem is how t…

---

## [Does vtkNew is as same as vtkSmartPointer?](https://discourse.vtk.org/t/does-vtknew-is-as-same-as-vtksmartpointer/10039)

<div class="topic-metadata">

**Author:** [@Sterben\_01](https://discourse.vtk.org/u/Sterben_01)\
**Replies:** 6\
**Last updated:** [December 4, 2022, 12:34am UTC](https://discourse.vtk.org/t/does-vtknew-is-as-same-as-vtksmartpointer/10039 "2022-12-04T00:34:10Z")

</div>

Hi, I’m a beginner of VTK. I faced an special issue about vtkNew and vtkSmartPointer I have such code: #include \<vtkNIFTIImageReader.h\> #include \<vtkNIFTIImageWriter.h\> #include \<vtkCamera.h\> #include \<vtkImageActor.h\> …

---

## [VTK 9.0 artifacts after upgrade using vcpkg](https://discourse.vtk.org/t/vtk-9-0-artifacts-after-upgrade-using-vcpkg/9828)

<div class="topic-metadata">

**Author:** [@ErwanD](https://discourse.vtk.org/u/ErwanD)\
**Replies:** 5\
**Last updated:** [December 3, 2022, 5:15pm UTC](https://discourse.vtk.org/t/vtk-9-0-artifacts-after-upgrade-using-vcpkg/9828 "2022-12-03T17:15:51Z")

</div>

Hi, I got multiple artifacts on vtk canvas. I didn´t have this issue before I changed vcpkg commit and vtk version. Here is an overview of my problem : I´m using : Vcpkg commit is : 779ce74ef VTK version : 9.0.3-…

---

## [Visualization](https://discourse.vtk.org/t/visualization/10052)

<div class="topic-metadata">

**Author:** [@Frankenstein](https://discourse.vtk.org/u/Frankenstein)\
**Replies:** 0\
**Last updated:** [December 3, 2022, 3:59am UTC](https://discourse.vtk.org/t/visualization/10052 "2022-12-03T03:59:25Z")

</div>

I wanted to visualize the pressure distribution of a sliding bearing, but I didn’t know how to start making such an image in VTK, and all I had was bearing data and two-dimensional pressure data. .just like this image,I…

---

## [vtkGradientFilter on vtkUnstructuredGrid created by custom reader:](https://discourse.vtk.org/t/vtkgradientfilter-on-vtkunstructuredgrid-created-by-custom-reader/10028)

<div class="topic-metadata">

**Author:** [@ramen\_newdals](https://discourse.vtk.org/u/ramen_newdals)\
**Replies:** 2\
**Last updated:** [December 2, 2022, 7:19pm UTC](https://discourse.vtk.org/t/vtkgradientfilter-on-vtkunstructuredgrid-created-by-custom-reader/10028 "2022-12-02T19:19:54Z")

</div>

Hello All, I have a reader that constructs a vtkUnstructuredGrid object that consists of VTK\_TETRA cells. I assign an array at each of the nodes in the vtkUnstructuredGrid object. I would like to use vtkGradientFilter t…

---

## [Wrong label positions with vtkLabelPlacementMapper](https://discourse.vtk.org/t/wrong-label-positions-with-vtklabelplacementmapper/10043)

<div class="topic-metadata">

**Author:** [@Peter](https://discourse.vtk.org/u/Peter)\
**Replies:** 1\
**Last updated:** [December 2, 2022, 2:39pm UTC](https://discourse.vtk.org/t/wrong-label-positions-with-vtklabelplacementmapper/10043 "2022-12-02T14:39:14Z")

</div>

Hello! I am using VTK 9.1.0 and Qt 5.15.3 and encountered the following problem with vtkLabelPlacementMapper: Without setting a render strategy the labels are corrected: vtkLabelPlacementMapper added to vtkRenderer wi…

---

## [Traces - Multiple Screenshots for Animation](https://discourse.vtk.org/t/traces-multiple-screenshots-for-animation/9986)

<div class="topic-metadata">

**Author:** [@anon64829896](https://discourse.vtk.org/u/anon64829896)\
**Replies:** 10\
**Last updated:** [December 2, 2022, 2:18pm UTC](https://discourse.vtk.org/t/traces-multiple-screenshots-for-animation/9986 "2022-12-02T14:18:41Z")

</div>

Hey! I am currently trying to build an animation out of multiple screenshots from VTK. However, when doing X screenshots in an iteration with moving actors on a transparent background, I receive some kind of “traces” o…

---

## [vtkSelectVisiblePoints doesn't work in QtQuick](https://discourse.vtk.org/t/vtkselectvisiblepoints-doesnt-work-in-qtquick/10006)

<div class="topic-metadata">

**Author:** [@claude](https://discourse.vtk.org/u/claude)\
**Replies:** 5\
**Last updated:** [December 2, 2022, 8:20am UTC](https://discourse.vtk.org/t/vtkselectvisiblepoints-doesnt-work-in-qtquick/10006 "2022-12-02T08:20:28Z")

</div>

Hi everyone, I get a problem that vtkSelectVisiblePoints doesn’t work in QQuickVTKRenderItem+QQuickVTKRenderWindow. I refer to following link: https://kitware.github.io/vtk-examples/site/Cxx/PolyData/SelectVisiblePoints…

---

## [I found a bug in the function vtkArcSource::RequestData.](https://discourse.vtk.org/t/i-found-a-bug-in-the-function-vtkarcsource-requestdata/10026)

<div class="topic-metadata">

**Author:** [@MincheolKim](https://discourse.vtk.org/u/MincheolKim)\
**Replies:** 1\
**Last updated:** [December 2, 2022, 7:47am UTC](https://discourse.vtk.org/t/i-found-a-bug-in-the-function-vtkarcsource-requestdata/10026 "2022-12-02T07:47:37Z")

</div>

Hi all, I used vtkArcSource. I found a bug which is radius change to be 1. You can see below in the function vtkArcSource::RequestData in the vtkArcSource.cpp file. // Calculate radius radius = vtkMath::Normalize(v1…

---

## [VTK reads the whole file instead of the selected array.](https://discourse.vtk.org/t/vtk-reads-the-whole-file-instead-of-the-selected-array/6203)

<div class="topic-metadata">

**Author:** [@acdemiralp](https://discourse.vtk.org/u/acdemiralp)\
**Replies:** 0\
**Last updated:** [July 18, 2021, 7:52am UTC](https://discourse.vtk.org/t/vtk-reads-the-whole-file-instead-of-the-selected-array/6203 "2021-07-18T07:52:59Z")

</div>

The following code requests the “Q” scalar field to be read only, but VTK nevertheless attempts to read the whole thing, saturating 256GB of memory, and crashing. Is there something I am doing wrong? #include \<cstdint\> …

---

## [How to import a transfer function exported from ParaView into VTK?](https://discourse.vtk.org/t/how-to-import-a-transfer-function-exported-from-paraview-into-vtk/5217)

<div class="topic-metadata">

**Author:** [@acdemiralp](https://discourse.vtk.org/u/acdemiralp)\
**Replies:** 0\
**Last updated:** [February 19, 2021, 8:24am UTC](https://discourse.vtk.org/t/how-to-import-a-transfer-function-exported-from-paraview-into-vtk/5217 "2021-02-19T08:24:51Z")

</div>

Dear all, here is how I import a ParaView exported transfer function into VTK: class transfer\_function { public: explicit transfer\_function (const std::string& filepath) { std::ifstream file\_stream(filepath)…

---

## [How to make the VTK 9.2 installation routine aware of Qt 5 installed on AlmaLinux 9?](https://discourse.vtk.org/t/how-to-make-the-vtk-9-2-installation-routine-aware-of-qt-5-installed-on-almalinux-9/10036)

<div class="topic-metadata">

**Author:** [@KLB](https://discourse.vtk.org/u/KLB)\
**Replies:** 0\
**Last updated:** [December 1, 2022, 3:27pm UTC](https://discourse.vtk.org/t/how-to-make-the-vtk-9-2-installation-routine-aware-of-qt-5-installed-on-almalinux-9/10036 "2022-12-01T15:27:31Z")

</div>

VTK with Qt is a dependency for a FEA meshing software I want to install. Qt5 is already installed, python 3 also, the latter would be a nice-to-have. How/Where should I make a setting to compile VTK with Qt? I followe…

---

## [Implementing some meshlab function using VTK \[Repair non Manifold Edges by splitting vertices\]](https://discourse.vtk.org/t/implementing-some-meshlab-function-using-vtk-repair-non-manifold-edges-by-splitting-vertices/10034)

<div class="topic-metadata">

**Author:** [@hye00525](https://discourse.vtk.org/u/hye00525)\
**Replies:** 0\
**Last updated:** [December 1, 2022, 2:20pm UTC](https://discourse.vtk.org/t/implementing-some-meshlab-function-using-vtk-repair-non-manifold-edges-by-splitting-vertices/10034 "2022-12-01T14:20:55Z")

</div>

Hello. I want to implement function “Repair non Manifold Edges by splitting vertices” of meshlab with VTK. Are there any related example codes or vtkFilters? Thank you.

---

## [Clipping a pointset with labels with vtkBoxWidget](https://discourse.vtk.org/t/clipping-a-pointset-with-labels-with-vtkboxwidget/10031)

<div class="topic-metadata">

**Author:** [@CharInt0](https://discourse.vtk.org/u/CharInt0)\
**Replies:** 0\
**Last updated:** [December 1, 2022, 11:30am UTC](https://discourse.vtk.org/t/clipping-a-pointset-with-labels-with-vtkboxwidget/10031 "2022-12-01T11:30:34Z")

</div>

Hello, I am using a vtkBoxWidget to clip actors in the 3D scene. I simply get the planes from the vtkBoxWidget and pass them to the mapper: actor-\>GetMapper()-\>SetClippingPlanes(planes); this works smooth. However w…

---

## [vtkImclicitModeler in conjunction with vtkPiecewiseFunction --\> vtkOpenGLVolumeOpacityTable Error on Apple M1 Chip](https://discourse.vtk.org/t/vtkimclicitmodeler-in-conjunction-with-vtkpiecewisefunction-vtkopenglvolumeopacitytable-error-on-apple-m1-chip/9892)

<div class="topic-metadata">

**Author:** [@aschrempf](https://discourse.vtk.org/u/aschrempf)\
**Replies:** 3\
**Last updated:** [December 1, 2022, 10:07am UTC](https://discourse.vtk.org/t/vtkimclicitmodeler-in-conjunction-with-vtkpiecewisefunction-vtkopenglvolumeopacitytable-error-on-apple-m1-chip/9892 "2022-12-01T10:07:59Z")

</div>

First of all thanks to VTK team for the great library! BACKGROUND Our research group is developing surgical simulators, where with one of these we use a simple vtk-pipeline to generate “x-ray-like” images from STL-file…

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

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