# Latest

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

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

**Page:** 97

---

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

---

## [Using namespaces in VTK](https://discourse.vtk.org/t/using-namespaces-in-vtk/10826)

<div class="topic-metadata">

**Author:** [@dcthomp](https://discourse.vtk.org/u/dcthomp)\
**Replies:** 0\
**Last updated:** [February 27, 2023, 2:29pm UTC](https://discourse.vtk.org/t/using-namespaces-in-vtk/10826 "2023-02-27T14:29:52Z")

</div>

For those of you developing code you hope to merge into VTK, do not include using namespace nlohmann in your code. avoid using namespace … in general. however it is OK to use namespaces with string-literal and place…

---

## [Exceptions when trying to compute center lines using vtkvmtkPolyDataCenterlines](https://discourse.vtk.org/t/exceptions-when-trying-to-compute-center-lines-using-vtkvmtkpolydatacenterlines/10814)

<div class="topic-metadata">

**Author:** [@rmacule](https://discourse.vtk.org/u/rmacule)\
**Replies:** 0\
**Last updated:** [February 26, 2023, 8:04pm UTC](https://discourse.vtk.org/t/exceptions-when-trying-to-compute-center-lines-using-vtkvmtkpolydatacenterlines/10814 "2023-02-26T20:04:02Z")

</div>

If I use the following code I get exceptions when calling the vtkvmtkPolyDataCenterlines-\>update() method: // Read file vtkSmartPointer\<vtkXMLImageDataReader\> reader = vtkSmartPointer\<vtkXMLImageDataReader\>::New…

---

## [Crash using 'vtk vmtk Threshold Segmentation Level Set Image Filter'](https://discourse.vtk.org/t/crash-using-vtk-vmtk-threshold-segmentation-level-set-image-filter/10812)

<div class="topic-metadata">

**Author:** [@rmacule](https://discourse.vtk.org/u/rmacule)\
**Replies:** 0\
**Last updated:** [February 26, 2023, 7:49pm UTC](https://discourse.vtk.org/t/crash-using-vtk-vmtk-threshold-segmentation-level-set-image-filter/10812 "2023-02-26T19:49:37Z")

</div>

If I use the attached vti file and the following code I get an exception. I would really appreciate any suggestions and/or guidance on how to resolve this :slight\_smile: CODE: vtkSmartPointer\<vtkXMLImageDataReader\> r…

---

## [vtk.js cellPicking seems to ignore clipping planes on mapper](https://discourse.vtk.org/t/vtk-js-cellpicking-seems-to-ignore-clipping-planes-on-mapper/10735)

<div class="topic-metadata">

**Author:** [@RickdG](https://discourse.vtk.org/u/RickdG)\
**Replies:** 9\
**Last updated:** [February 27, 2023, 7:26am UTC](https://discourse.vtk.org/t/vtk-js-cellpicking-seems-to-ignore-clipping-planes-on-mapper/10735 "2023-02-27T07:26:23Z")

</div>

It seems that the vtkCellPicker is ignoring the clipping planes on the mapper. Is there a way to circumvent this? In a small test example with 1 cell it seemed that the clipping plane was not ignored, but in the full ex…

---

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

---

## [Is there a way to read LSDyna keyword files (.k) directly in vtk?](https://discourse.vtk.org/t/is-there-a-way-to-read-lsdyna-keyword-files-k-directly-in-vtk/10817)

<div class="topic-metadata">

**Author:** [@Prakhar\_Singh](https://discourse.vtk.org/u/Prakhar_Singh)\
**Replies:** 0\
**Last updated:** [February 26, 2023, 11:19pm UTC](https://discourse.vtk.org/t/is-there-a-way-to-read-lsdyna-keyword-files-k-directly-in-vtk/10817 "2023-02-26T23:19:31Z")

</div>

I am a beginner in computer graphics and vtk. I have a directory with .k files containing mesh data which I want to visualize using vtk. I have particularly following doubts: Can .k files be read using vtk ? If yes, ho…

---

## [How to make addClippingPlane match vtkResliceCursorWidget ?](https://discourse.vtk.org/t/how-to-make-addclippingplane-match-vtkreslicecursorwidget/10641)

<div class="topic-metadata">

**Author:** [@Javi-r](https://discourse.vtk.org/u/Javi-r)\
**Replies:** 10\
**Last updated:** [February 25, 2023, 10:07pm UTC](https://discourse.vtk.org/t/how-to-make-addclippingplane-match-vtkreslicecursorwidget/10641 "2023-02-25T22:07:35Z")

</div>

I can’t get the clip plane to match the reslice cursor widget planes. const cut3DPlane = vtkPlane.newInstance(); .... cubeMapper.addClippingPlane(cut3DPlane); cut3DPlane.setNormal(...resliceWidgetState.getPlanes()\[xyzTo…

---

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

---

## [Can I use compressed texture image files in C++ VTK?](https://discourse.vtk.org/t/can-i-use-compressed-texture-image-files-in-c-vtk/10783)

<div class="topic-metadata">

**Author:** [@araato](https://discourse.vtk.org/u/araato)\
**Replies:** 2\
**Last updated:** [February 24, 2023, 8:42am UTC](https://discourse.vtk.org/t/can-i-use-compressed-texture-image-files-in-c-vtk/10783 "2023-02-24T08:42:51Z")

</div>

Hello everyone, I would like to know if it is possible to use texture image files in .ktx2 or .basisu format in C++ VTK (not VTK.js). If it is not implemented yet, how can I approach it?

---

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

---

## [Minimum resource requirment](https://discourse.vtk.org/t/minimum-resource-requirment/10737)

<div class="topic-metadata">

**Author:** [@Zaid\_Ahmed](https://discourse.vtk.org/u/Zaid_Ahmed)\
**Replies:** 1\
**Last updated:** [February 24, 2023, 12:45am UTC](https://discourse.vtk.org/t/minimum-resource-requirment/10737 "2023-02-24T00:45:28Z")

</div>

I want to know about the minimum resource requirement to deploy it on ec2 instance. I’m deploying an API that convert dicom series to Vti and .vtkjs file for 3d web rendering using itk and vtk library (python), but I’m …

---

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

---

## [vtkResliceImageViewer doesn't work with QQuickVTKItem](https://discourse.vtk.org/t/vtkresliceimageviewer-doesnt-work-with-qquickvtkitem/10739)

<div class="topic-metadata">

**Author:** [@gevorgyan2.7.99](https://discourse.vtk.org/u/gevorgyan2.7.99)\
**Replies:** 5\
**Last updated:** [February 23, 2023, 9:43pm UTC](https://discourse.vtk.org/t/vtkresliceimageviewer-doesnt-work-with-qquickvtkitem/10739 "2023-02-23T21:43:25Z")

</div>

Hi all. I use the QQuickVTKItem module in my QtQuick pet-project, simple object rendering and even voxel rendering work fine! But the trouble with 2d DICOM images :frowning: I tried different solutions, and replacing …

---

## [vtkIntersectionPolyDataFilter crashing](https://discourse.vtk.org/t/vtkintersectionpolydatafilter-crashing/9428)

<div class="topic-metadata">

**Author:** [@marcomusy](https://discourse.vtk.org/u/marcomusy)\
**Replies:** 5\
**Last updated:** [February 23, 2023, 7:35pm UTC](https://discourse.vtk.org/t/vtkintersectionpolydatafilter-crashing/9428 "2023-02-23T19:35:09Z")

</div>

There might be a bug or numerical instability in the vtkIntersectionPolyDataFilter class: import numpy as np import vtk import vedo # crashing m1v = np.array(\[\[17903.93947473, 11418.12995419, 2572.68075251\],\[17889.4353…

---

## [Is there a way to clone the polydata in vtk.js?](https://discourse.vtk.org/t/is-there-a-way-to-clone-the-polydata-in-vtk-js/10767)

<div class="topic-metadata">

**Author:** [@peeling](https://discourse.vtk.org/u/peeling)\
**Replies:** 1\
**Last updated:** [February 23, 2023, 3:49pm UTC](https://discourse.vtk.org/t/is-there-a-way-to-clone-the-polydata-in-vtk-js/10767 "2023-02-23T15:49:19Z")

</div>

I need to clone / duplicate the polydata after reading my VTK file (vtkPolyDataReader), Just after reading the polydata I want to clone it to then apply a different transform to each clone (polyData) I tried to use sha…

---

## [About Image Orientation?](https://discourse.vtk.org/t/about-image-orientation/10771)

<div class="topic-metadata">

**Author:** [@wulicheng](https://discourse.vtk.org/u/wulicheng)\
**Replies:** 1\
**Last updated:** [February 23, 2023, 2:18pm UTC](https://discourse.vtk.org/t/about-image-orientation/10771 "2023-02-23T14:18:51Z")

</div>

I have a series of dicom files,when i read that series of dicom files with vtkImageReader, it display like flows: But i want to display it face to screen and like this: Do someone know how to compute the orientati…

---

## [How to initialize a vtkDataArray with NaN values](https://discourse.vtk.org/t/how-to-initialize-a-vtkdataarray-with-nan-values/10695)

<div class="topic-metadata">

**Author:** [@Pierre-yves\_Meyer](https://discourse.vtk.org/u/Pierre-yves_Meyer)\
**Replies:** 2\
**Last updated:** [February 23, 2023, 11:48am UTC](https://discourse.vtk.org/t/how-to-initialize-a-vtkdataarray-with-nan-values/10695 "2023-02-23T11:48:50Z")

</div>

Hello, I’m trying to initialize a vtkDataArray with NaN values, but I can’t figure out how. The created array always is filled with default 0 values… I need to do this because I want to rely on NaN colors in the Lookup…

---

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

---

## [Why rendering is slow in GenericRenderWindow if we re-use it](https://discourse.vtk.org/t/why-rendering-is-slow-in-genericrenderwindow-if-we-re-use-it/10731)

<div class="topic-metadata">

**Author:** [@dexter](https://discourse.vtk.org/u/dexter)\
**Replies:** 4\
**Last updated:** [February 23, 2023, 8:30am UTC](https://discourse.vtk.org/t/why-rendering-is-slow-in-genericrenderwindow-if-we-re-use-it/10731 "2023-02-23T08:30:01Z")

</div>

In my application I did two tests to prouve what I’m saying: 1 case: In each time I want to render a new 3D surface actor, I delete the whole vtkGenericRenderWindow and the previous actor / mapper, and I re-create a n…

---

## [Orient cones same direction as TubeFilter](https://discourse.vtk.org/t/orient-cones-same-direction-as-tubefilter/10763)

<div class="topic-metadata">

**Author:** [@kier](https://discourse.vtk.org/u/kier)\
**Replies:** 1\
**Last updated:** [February 23, 2023, 7:09am UTC](https://discourse.vtk.org/t/orient-cones-same-direction-as-tubefilter/10763 "2023-02-23T07:09:33Z")

</div>

Hello, This might be a newbie question as I’m only getting started. Please excuse me. My goal is to create a “dimension” line that is made of a line and two cones, one at each end of the line that point at two given po…

---

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

---

## [how to scroll SDL2 canvas smoothly by mouse wheel with Escripten/WASM](https://discourse.vtk.org/t/how-to-scroll-sdl2-canvas-smoothly-by-mouse-wheel-with-escripten-wasm/7995)

<div class="topic-metadata">

**Author:** [@lizemin5235](https://discourse.vtk.org/u/lizemin5235)\
**Replies:** 3\
**Last updated:** [February 22, 2023, 9:31pm UTC](https://discourse.vtk.org/t/how-to-scroll-sdl2-canvas-smoothly-by-mouse-wheel-with-escripten-wasm/7995 "2023-02-22T21:31:10Z")

</div>

How to scroll SDL2 canvas smoothly by mouse wheel with Escripten/WASM, Especially when zoom in on a actor appear stuck, not smooth.

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

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