# Support

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

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

**Page:** 55

---

## [itk-vtk-viewer - CLI - Data types](https://discourse.vtk.org/t/itk-vtk-viewer-cli-data-types/10865)

<div class="topic-metadata">

**Author:** [@Kevin\_Sweeney](https://discourse.vtk.org/u/Kevin_Sweeney)\
**Replies:** 0\
**Last updated:** [March 2, 2023, 4:57pm UTC](https://discourse.vtk.org/t/itk-vtk-viewer-cli-data-types/10865 "2023-03-02T16:57:21Z")

</div>

If I run itk-vtk-viewer from the command line (as per Command Line Interface | itk-vtk-viewer) I can drag data sources in and visualise. This is a two part question What are the data types that can be dragged and dro…

---

## [Could not find the VTK package with the following required components:GuiSupportQt, ViewsQt](https://discourse.vtk.org/t/could-not-find-the-vtk-package-with-the-following-required-components-guisupportqt-viewsqt/8252)

<div class="topic-metadata">

**Author:** [@mnekkach](https://discourse.vtk.org/u/mnekkach)\
**Replies:** 4\
**Last updated:** [March 2, 2023, 1:54pm UTC](https://discourse.vtk.org/t/could-not-find-the-vtk-package-with-the-following-required-components-guisupportqt-viewsqt/8252 "2023-03-02T13:54:50Z")

</div>

Hi, I just compile VTK 9.1.0 on RedHat version 8.3 and I try to compile the SimpleView example. I have this message error but I don’t know how I can solve it. CMake Warning at CMakeLists.txt:4 (find\_package): Found…

---

## [alternatives to vtkWrapPython.cmake](https://discourse.vtk.org/t/alternatives-to-vtkwrappython-cmake/3229)

<div class="topic-metadata">

**Author:** [@kayarre](https://discourse.vtk.org/u/kayarre)\
**Replies:** 10\
**Last updated:** [March 2, 2023, 1:10pm UTC](https://discourse.vtk.org/t/alternatives-to-vtkwrappython-cmake/3229 "2023-03-02T13:10:27Z")

</div>

The vmtk project relied on the cmake file vtkWrapPython.cmake and it looks that has gone away, which I have no preference about and imagine the newer stuff makes more sense, however in desiring to build vmtk with the …

---

## [How to output error information to console?](https://discourse.vtk.org/t/how-to-output-error-information-to-console/10820)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 6\
**Last updated:** [March 1, 2023, 8:09pm UTC](https://discourse.vtk.org/t/how-to-output-error-information-to-console/10820 "2023-03-01T20:09:02Z")

</div>

vtkOutputWindow is used to print error/warning information. For example: Is there any method to keep the printed information but do not show the vtkOutputWindow? I have tested vtkOutputWindow::SetGlobalWarningDispa…

---

## [Unable to read binary slc file with VTK](https://discourse.vtk.org/t/unable-to-read-binary-slc-file-with-vtk/10809)

<div class="topic-metadata">

**Author:** [@Latika\_Vashishtha](https://discourse.vtk.org/u/Latika_Vashishtha)\
**Replies:** 2\
**Last updated:** [March 1, 2023, 8:04pm UTC](https://discourse.vtk.org/t/unable-to-read-binary-slc-file-with-vtk/10809 "2023-03-01T20:04:39Z")

</div>

Hey, I am trying to use vtkSLCReader to red binary slc file but it complains that its unable to read magic number. ERR| vtkSLCReader (0x7fee9e404720): Error reading file: binary.slcFailed to read magic number 2023-02-26…

---

## [Move object to origin](https://discourse.vtk.org/t/move-object-to-origin/10830)

<div class="topic-metadata">

**Author:** [@shadyx](https://discourse.vtk.org/u/shadyx)\
**Replies:** 1\
**Last updated:** [March 1, 2023, 6:51pm UTC](https://discourse.vtk.org/t/move-object-to-origin/10830 "2023-03-01T18:51:38Z")

</div>

Greetings. I started studying VTK, I don’t understand a lot of things. Now there is a problem. There are several objects in .vtk format that are very far from the origin (see example screenshot from Blender). Example I…

---

## [How to use raycasting for point projection in VTK?](https://discourse.vtk.org/t/how-to-use-raycasting-for-point-projection-in-vtk/9792)

<div class="topic-metadata">

**Author:** [@scotsman60](https://discourse.vtk.org/u/scotsman60)\
**Replies:** 12\
**Last updated:** [March 1, 2023, 6:42pm UTC](https://discourse.vtk.org/t/how-to-use-raycasting-for-point-projection-in-vtk/9792 "2023-03-01T18:42:46Z")

</div>

Hello, I need to determine whether points from one polydata project onto cells in another polydata. I could use vtkOBBTree.IntersectWithLine() but I’m concerned about performance. It seems that GPU based ray casting c…

---

## [Different results between VTK versions when clipping a PolyData](https://discourse.vtk.org/t/different-results-between-vtk-versions-when-clipping-a-polydata/10834)

<div class="topic-metadata">

**Author:** [@nmuzi](https://discourse.vtk.org/u/nmuzi)\
**Replies:** 1\
**Last updated:** [March 1, 2023, 1:57pm UTC](https://discourse.vtk.org/t/different-results-between-vtk-versions-when-clipping-a-polydata/10834 "2023-03-01T13:57:28Z")

</div>

Hello everyone! This is my first post here. I am using vtkImplicitPolyDataDistance with clipPolyData, and I am getting different results when using VTK 8.2.0 and VTK 9.2.5. When using the latter I obtain “holes” in my m…

---

## [Unable to compile vtk vtkMeshQuality.cxx(1289,10): error C2653: 'verdict'](https://discourse.vtk.org/t/unable-to-compile-vtk-vtkmeshquality-cxx-1289-10-error-c2653-verdict/10833)

<div class="topic-metadata">

**Author:** [@LaurentBerger](https://discourse.vtk.org/u/LaurentBerger)\
**Replies:** 1\
**Last updated:** [February 28, 2023, 3:02pm UTC](https://discourse.vtk.org/t/unable-to-compile-vtk-vtkmeshquality-cxx-1289-10-error-c2653-verdict/10833 "2023-02-28T15:02:57Z")

</div>

Hi, I’m trying to compile VTK and I’ve got thoses error ( sorry it’s in french ): error 2653 : ‘identifier’ : is not a class or namespace name error C3861 ‘identifier’: identifier not found I use vtk branch v9.2.…

---

## [Does vtk not allow changing display images?](https://discourse.vtk.org/t/does-vtk-not-allow-changing-display-images/10831)

<div class="topic-metadata">

**Author:** [@marlon.ma](https://discourse.vtk.org/u/marlon.ma)\
**Replies:** 1\
**Last updated:** [February 28, 2023, 9:44am UTC](https://discourse.vtk.org/t/does-vtk-not-allow-changing-display-images/10831 "2023-02-28T09:44:51Z")

</div>

\#include “vtkSmartPointer.h” #include\<vtkRenderer.h\> #include \<vtkRenderWindowInteractor.h\> #include “vtkAutoInit.h” #include\<vtkImageData.h\> #include \<vtkDICOMImageReader.h\> #include \<vtkImageViewer2.h\> #include \<…

---

## [Cannot build vtk with Java Wrapping](https://discourse.vtk.org/t/cannot-build-vtk-with-java-wrapping/10828)

<div class="topic-metadata">

**Author:** [@turtle](https://discourse.vtk.org/u/turtle)\
**Replies:** 2\
**Last updated:** [February 28, 2023, 8:38am UTC](https://discourse.vtk.org/t/cannot-build-vtk-with-java-wrapping/10828 "2023-02-28T08:38:45Z")

</div>

Hello; I try to build vtk with Java Wrapping to simply read and write vtk-Files. This is my setup: Ubuntu 22.10 cmake version 3.24.2 GNU Make 4.3 openjdk 17.0.6 2023-01-17 vtk branch master I can build (run make afte…

---

## [make a contour from a set of points](https://discourse.vtk.org/t/make-a-contour-from-a-set-of-points/10796)

<div class="topic-metadata">

**Author:** [@pravin\_poudel](https://discourse.vtk.org/u/pravin_poudel)\
**Replies:** 1\
**Last updated:** [February 27, 2023, 4:03pm UTC](https://discourse.vtk.org/t/make-a-contour-from-a-set-of-points/10796 "2023-02-27T16:03:45Z")

</div>

Hi I am trying to implement from scratch (i.e., without using any library functions for contouring or interpolation ) an iso contour algorithm. This is my code where i am using pyvista to plot isovalue = 0.15 def f(x,…

---

## [fatal error: vtkVersion.h: no such directory or file](https://discourse.vtk.org/t/fatal-error-vtkversion-h-no-such-directory-or-file/10793)

<div class="topic-metadata">

**Author:** [@liuyankui-1998](https://discourse.vtk.org/u/liuyankui-1998)\
**Replies:** 3\
**Last updated:** [February 27, 2023, 2:50pm UTC](https://discourse.vtk.org/t/fatal-error-vtkversion-h-no-such-directory-or-file/10793 "2023-02-27T14:50:47Z")

</div>

I downloaded a project from github and ran it through vs code on ubantu, but vs code told me that I couldn’t find the header files,But I can trace these header files like vtkVersion. Here is my cmakeLists.txt： Here …

---

## [use vtkPolyDataToImageStencil to colo a custom made volume voxels](https://discourse.vtk.org/t/use-vtkpolydatatoimagestencil-to-colo-a-custom-made-volume-voxels/10800)

<div class="topic-metadata">

**Author:** [@AndreAhmed](https://discourse.vtk.org/u/AndreAhmed)\
**Replies:** 5\
**Last updated:** [February 27, 2023, 5:59am UTC](https://discourse.vtk.org/t/use-vtkpolydatatoimagestencil-to-colo-a-custom-made-volume-voxels/10800 "2023-02-27T05:59:45Z")

</div>

Hello, I created a lasso a 3D polydata, then I used vtkPolyDataToImageStencil to convert it to ImageStencil. I have a custom volume and I have it’s short data, it has width,height,depth. Now I want to color the voxels …

---

## [vtkStringArray not being stored correctly in CellData for vtkPolyData object](https://discourse.vtk.org/t/vtkstringarray-not-being-stored-correctly-in-celldata-for-vtkpolydata-object/10805)

<div class="topic-metadata">

**Author:** [@Robert\_Collar](https://discourse.vtk.org/u/Robert_Collar)\
**Replies:** 5\
**Last updated:** [February 27, 2023, 12:27am UTC](https://discourse.vtk.org/t/vtkstringarray-not-being-stored-correctly-in-celldata-for-vtkpolydata-object/10805 "2023-02-27T00:27:43Z")

</div>

Hi VTK community, In the example below, a simple vtkPolyData object is constructed and two arrays — one numerical and another of strings — is passed to its cells. Upon subsequently retrieving the arrays, only the numeri…

---

## [create connected contour lines from set of points](https://discourse.vtk.org/t/create-connected-contour-lines-from-set-of-points/10798)

<div class="topic-metadata">

**Author:** [@pravin\_poudel](https://discourse.vtk.org/u/pravin_poudel)\
**Replies:** 0\
**Last updated:** [February 25, 2023, 8:38am UTC](https://discourse.vtk.org/t/create-connected-contour-lines-from-set-of-points/10798 "2023-02-25T08:38:17Z")

</div>

Hi I am new to Python, VTK and pyvista. I am trying to implement from scratch (i.e., without using any library functions for contouring or interpolation ) an iso contour algorithm. I am using pyvista to create a custom…

---

## [Help with vtkImageReslice](https://discourse.vtk.org/t/help-with-vtkimagereslice/10786)

<div class="topic-metadata">

**Author:** [@rexthor](https://discourse.vtk.org/u/rexthor)\
**Replies:** 3\
**Last updated:** [February 24, 2023, 10:42pm UTC](https://discourse.vtk.org/t/help-with-vtkimagereslice/10786 "2023-02-24T22:42:00Z")

</div>

I am trying to generate oblique slices through image data - and I think that I’m starting out with a simple example. I generated a cube with a sinusoidal pattern in it, and I wanted to slice through the center of the cu…

---

## [converting closed surface to binary image](https://discourse.vtk.org/t/converting-closed-surface-to-binary-image/10780)

<div class="topic-metadata">

**Author:** [@AndreAhmed](https://discourse.vtk.org/u/AndreAhmed)\
**Replies:** 9\
**Last updated:** [February 24, 2023, 6:29pm UTC](https://discourse.vtk.org/t/converting-closed-surface-to-binary-image/10780 "2023-02-24T18:29:44Z")

</div>

hello, I’m following the post here How to delete/hide specific points from vtkvolume? I use the converted closed surface and that’s the result as polydata Now I want to color the voxels under the lasso to a specifi…

---

## [No Pyhton wrapper for SetSnap To CellWithClosestPoint() ?](https://discourse.vtk.org/t/no-pyhton-wrapper-for-setsnap-to-cellwithclosestpoint/10714)

<div class="topic-metadata">

**Author:** [@aborsic](https://discourse.vtk.org/u/aborsic)\
**Replies:** 8\
**Last updated:** [February 24, 2023, 3:12pm UTC](https://discourse.vtk.org/t/no-pyhton-wrapper-for-setsnap-to-cellwithclosestpoint/10714 "2023-02-24T15:12:48Z")

</div>

Hello Everyone, I have an input dataset which is a polydata consisting only of points with associated scalars. I need to resample it at point locations with a second point-only polydata. I would like to use the nearest…

---

## [How to config actor property?](https://discourse.vtk.org/t/how-to-config-actor-property/10727)

<div class="topic-metadata">

**Author:** [@lkuan](https://discourse.vtk.org/u/lkuan)\
**Replies:** 2\
**Last updated:** [February 24, 2023, 7:47am UTC](https://discourse.vtk.org/t/how-to-config-actor-property/10727 "2023-02-24T07:47:12Z")

</div>

Hi, I want to use VTK to visualize a model from a STL. The VTK version is 9.1.0. I found other poeple can render a model very beautiful like this I tried modify properties of actor such as opacity, ambient, roughnes…

---

## [autocomplete issue with vtk in vscode and pycharm](https://discourse.vtk.org/t/autocomplete-issue-with-vtk-in-vscode-and-pycharm/10589)

<div class="topic-metadata">

**Author:** [@Abdelkareem\_Elkhateb](https://discourse.vtk.org/u/Abdelkareem_Elkhateb)\
**Replies:** 2\
**Last updated:** [February 24, 2023, 2:38am UTC](https://discourse.vtk.org/t/autocomplete-issue-with-vtk-in-vscode-and-pycharm/10589 "2023-02-24T02:38:43Z")

</div>

I have just installed it in vscode with conda into my env when I try to use there is no autocompletion in the ide ! i searched the web and the forum but in vain I read some things about sciprts and specific versions but …

---

## [Random memory conflict when smart pointer is assigned to smart pointer](https://discourse.vtk.org/t/random-memory-conflict-when-smart-pointer-is-assigned-to-smart-pointer/10749)

<div class="topic-metadata">

**Author:** [@marlon.ma](https://discourse.vtk.org/u/marlon.ma)\
**Replies:** 3\
**Last updated:** [February 24, 2023, 1:05am UTC](https://discourse.vtk.org/t/random-memory-conflict-when-smart-pointer-is-assigned-to-smart-pointer/10749 "2023-02-24T01:05:46Z")

</div>

I use smart pointers when transferring data between different classes, but there is a memory conflict when assigning values, and this error is random.

---

## [Where can I find vtk v.9.2.2 python package?](https://discourse.vtk.org/t/where-can-i-find-vtk-v-9-2-2-python-package/10661)

<div class="topic-metadata">

**Author:** [@Digilith](https://discourse.vtk.org/u/Digilith)\
**Replies:** 2\
**Last updated:** [February 24, 2023, 12:37am UTC](https://discourse.vtk.org/t/where-can-i-find-vtk-v-9-2-2-python-package/10661 "2023-02-24T00:37:18Z")

</div>

Hello everyone! I would like to use BVTKNodes addon for Blender and I need specifically VTK ver. 9.2.2 or 8.2.0 for this. I had trouble finding .whls for these specific versions (looked for them on PyPI), so I would re…

---

## [How will I define a name for each module](https://discourse.vtk.org/t/how-will-i-define-a-name-for-each-module/10769)

<div class="topic-metadata">

**Author:** [@myz525](https://discourse.vtk.org/u/myz525)\
**Replies:** 0\
**Last updated:** [February 23, 2023, 9:21am UTC](https://discourse.vtk.org/t/how-will-i-define-a-name-for-each-module/10769 "2023-02-23T09:21:15Z")

</div>

One requirement I had was to be able to capture some of the attributes in the model when converting to gtlf and 3dtiles. But I can’t configure properties to my model. For example, add a unique value id to the model. Is t…

---

## [about smartpoint](https://discourse.vtk.org/t/about-smartpoint/10752)

<div class="topic-metadata">

**Author:** [@marlon.ma](https://discourse.vtk.org/u/marlon.ma)\
**Replies:** 2\
**Last updated:** [February 23, 2023, 1:09am UTC](https://discourse.vtk.org/t/about-smartpoint/10752 "2023-02-23T01:09:07Z")

</div>

\#include\<vtkObjectFactory.h\> #include \<iostream\> #include\<vtkObject.h\> #include\<vtkImageData.h\> #include\<vtkImageActor.h\> #include\<vtkSmartPointer.h\> class MyClassA :public vtkObject { public: vtkTypeMacro(MyClassA, vtk…

---

## [pvtu writing for parts that don't have data on rank 0](https://discourse.vtk.org/t/pvtu-writing-for-parts-that-dont-have-data-on-rank-0/10750)

<div class="topic-metadata">

**Author:** [@jake](https://discourse.vtk.org/u/jake)\
**Replies:** 0\
**Last updated:** [February 22, 2023, 4:43am UTC](https://discourse.vtk.org/t/pvtu-writing-for-parts-that-dont-have-data-on-rank-0/10750 "2023-02-22T04:43:51Z")

</div>

Update: I have continued to look at this and am starting to think this is a bug in VTK. Hello, I am trying to use the vtkXMLPUnstructuredGridWriter to output results for a mesh that has multiple bodies. I want one se…

---

## [Nifti header and image resolutions](https://discourse.vtk.org/t/nifti-header-and-image-resolutions/10713)

<div class="topic-metadata">

**Author:** [@totte\_karlsson](https://discourse.vtk.org/u/totte_karlsson)\
**Replies:** 1\
**Last updated:** [February 21, 2023, 8:23pm UTC](https://discourse.vtk.org/t/nifti-header-and-image-resolutions/10713 "2023-02-21T20:23:05Z")

</div>

Hello, This may be a question more specific to the Nifti format than VTK. However, I’m using vtk’s Nifti reader that works great. We have several volumes of brain image data that are acquired at various resolutions. Fo…

---

## [ICP Translation Error](https://discourse.vtk.org/t/icp-translation-error/10703)

<div class="topic-metadata">

**Author:** [@dauso](https://discourse.vtk.org/u/dauso)\
**Replies:** 5\
**Last updated:** [February 21, 2023, 2:13pm UTC](https://discourse.vtk.org/t/icp-translation-error/10703 "2023-02-21T14:13:22Z")

</div>

I am trying to use ICP in VTK. I have created a simple box shape of size 30x40x20. The fixed (target) box is axis aligned, and the moving (source) box is rotated by 30 degrees along the X-axis. ICP result and rotation c…

---

## [Augmenting vtkPolyData with multiple different tuples of point/cell data](https://discourse.vtk.org/t/augmenting-vtkpolydata-with-multiple-different-tuples-of-point-cell-data/10732)

<div class="topic-metadata">

**Author:** [@sboogert](https://discourse.vtk.org/u/sboogert)\
**Replies:** 2\
**Last updated:** [February 21, 2023, 8:49am UTC](https://discourse.vtk.org/t/augmenting-vtkpolydata-with-multiple-different-tuples-of-point-cell-data/10732 "2023-02-21T08:49:29Z")

</div>

I have a problem that reuses a significant amount of geometry in the form of vtkPolyData. I would like like to be able to modify the vtkPolydata with different vtkDoubleArrays for the point/cell data. So is there a filt…

---

## [3D Lasso on a volume](https://discourse.vtk.org/t/3d-lasso-on-a-volume/10733)

<div class="topic-metadata">

**Author:** [@AndreAhmed](https://discourse.vtk.org/u/AndreAhmed)\
**Replies:** 3\
**Last updated:** [February 21, 2023, 7:26am UTC](https://discourse.vtk.org/t/3d-lasso-on-a-volume/10733 "2023-02-21T07:26:01Z")

</div>

Hello, I’m looking for an algorithm or an example for a 3D Lasso on 3D Volume. I was looking for VtkVolumePicker class, but in the example there is no volume that is input into that class, all I see is picker.Pick(x,y,…

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

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