# Latest

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

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

**Page:** 143

---

## [error when ExtractVisibleCells](https://discourse.vtk.org/t/error-when-extractvisiblecells/7904)

<div class="topic-metadata">

**Author:** [@feierpusier](https://discourse.vtk.org/u/feierpusier)\
**Replies:** 0\
**Last updated:** [February 23, 2022, 12:30pm UTC](https://discourse.vtk.org/t/error-when-extractvisiblecells/7904 "2022-02-23T12:30:52Z")

</div>

when I run https://kitware.github.io/vtk-examples/site/Cxx/Filtering/ExtractVisibleCells/ in Qt, the .exe crash and “2022-02-23 20:24:07.860 ( 6.946s) \[ \] vtkOpenGLState.cxx:2024 WARN| Attempt to pop framebuffer b…

---

## [How to hide and show vtkDistancewidget on vtkResliceImageviewer?](https://discourse.vtk.org/t/how-to-hide-and-show-vtkdistancewidget-on-vtkresliceimageviewer/7902)

<div class="topic-metadata">

**Author:** [@Usha\_Diggi](https://discourse.vtk.org/u/Usha_Diggi)\
**Replies:** 0\
**Last updated:** [February 23, 2022, 10:36am UTC](https://discourse.vtk.org/t/how-to-hide-and-show-vtkdistancewidget-on-vtkresliceimageviewer/7902 "2022-02-23T10:36:27Z")

</div>

Hi, I created vtkDistanceWidget to measure distance on reslice image viewer. and it works fine but when I scroll through slices, the distanceWidget also appears. I want to display the measure tool only for current slic…

---

## [CubeAxesActor Label Format](https://discourse.vtk.org/t/cubeaxesactor-label-format/7097)

<div class="topic-metadata">

**Author:** [@BastianJuelich](https://discourse.vtk.org/u/BastianJuelich)\
**Replies:** 2\
**Last updated:** [February 23, 2022, 10:28am UTC](https://discourse.vtk.org/t/cubeaxesactor-label-format/7097 "2022-02-23T10:28:58Z")

</div>

Hey all, i am trying to set the Label Format to only int, not scientific notation like shown in the attached picture: I tried: cube\_axes\_actor.SetXLabelFormat("%-#5d") but this doesnt change anything. Does anyone …

---

## [NEED help~ An error in linux](https://discourse.vtk.org/t/need-help-an-error-in-linux/7838)

<div class="topic-metadata">

**Author:** [@Clifford](https://discourse.vtk.org/u/Clifford)\
**Replies:** 5\
**Last updated:** [February 23, 2022, 8:45am UTC](https://discourse.vtk.org/t/need-help-an-error-in-linux/7838 "2022-02-23T08:45:16Z")

</div>

When I run a python program (use vtk) in my pc, it works successfully, however, when I post it on my server then comes with this error, does anybody knows how to fix it? Thanks so much! I truly have no idea with this. …

---

## [Integration of VTK/ITK with QT](https://discourse.vtk.org/t/integration-of-vtk-itk-with-qt/7799)

<div class="topic-metadata">

**Author:** [@Amir\_hossein\_Foruzan](https://discourse.vtk.org/u/Amir_hossein_Foruzan)\
**Replies:** 1\
**Last updated:** [February 23, 2022, 7:48am UTC](https://discourse.vtk.org/t/integration-of-vtk-itk-with-qt/7799 "2022-02-23T07:48:55Z")

</div>

Dear Friends Hello I have experience with ITK and VTK but new to integration of QT with these toolkits. I do not know which one to use, QT Creator or QT Designer? And how to integrate? There are lots of confusing reso…

---

## [Enabling/disabling filters in a pipeline](https://discourse.vtk.org/t/enabling-disabling-filters-in-a-pipeline/7889)

<div class="topic-metadata">

**Author:** [@sboogert](https://discourse.vtk.org/u/sboogert)\
**Replies:** 1\
**Last updated:** [February 22, 2022, 2:35pm UTC](https://discourse.vtk.org/t/enabling-disabling-filters-in-a-pipeline/7889 "2022-02-22T14:35:17Z")

</div>

I have an application (Geant4) where I would like to give users the ability to enable or disable filters in a pipeline. For example polydata → clean → triangle → normal → feature → … Is there a simple way to disable th…

---

## [Try and except problem when LegacyVTKReader is run](https://discourse.vtk.org/t/try-and-except-problem-when-legacyvtkreader-is-run/7884)

<div class="topic-metadata">

**Author:** [@rasunag27](https://discourse.vtk.org/u/rasunag27)\
**Replies:** 1\
**Last updated:** [February 22, 2022, 2:31am UTC](https://discourse.vtk.org/t/try-and-except-problem-when-legacyvtkreader-is-run/7884 "2022-02-22T02:31:04Z")

</div>

Hi, This is a simple question which I am unable to resolve it. So, here is the thing. I have a vtk file which is read through LegacyVTKReader. I am using python exception handling to print an exception error if file is…

---

## [How to modify a vts file using another vts file! (structuredGrid)](https://discourse.vtk.org/t/how-to-modify-a-vts-file-using-another-vts-file-structuredgrid/7874)

<div class="topic-metadata">

**Author:** [@John2045](https://discourse.vtk.org/u/John2045)\
**Replies:** 4\
**Last updated:** [February 20, 2022, 6:22pm UTC](https://discourse.vtk.org/t/how-to-modify-a-vts-file-using-another-vts-file-structuredgrid/7874 "2022-02-20T18:22:20Z")

</div>

Hi :slight\_smile: I am new to the community here, and I know that my question could be stupid :frowning: The problem: I want to open a “file1.vts” file and modify the “vtkPoints” using another “file2.vts” file. After t…

---

## [setting minimum leader glyph size](https://discourse.vtk.org/t/setting-minimum-leader-glyph-size/7882)

<div class="topic-metadata">

**Author:** [@Kent](https://discourse.vtk.org/u/Kent)\
**Replies:** 0\
**Last updated:** [February 20, 2022, 12:13pm UTC](https://discourse.vtk.org/t/setting-minimum-leader-glyph-size/7882 "2022-02-20T12:13:36Z")

</div>

Hi, I am using SetMaximumLeaderGlyphSize for a caption widget arrow to make sure the arrow head does not become too large when zooming out. However, the arrow head becomes very tiny when zooming in. There seems to be …

---

## [How to select cells on the outermost layer given a vector?](https://discourse.vtk.org/t/how-to-select-cells-on-the-outermost-layer-given-a-vector/7880)

<div class="topic-metadata">

**Author:** [@Cameron](https://discourse.vtk.org/u/Cameron)\
**Replies:** 0\
**Last updated:** [February 19, 2022, 4:52am UTC](https://discourse.vtk.org/t/how-to-select-cells-on-the-outermost-layer-given-a-vector/7880 "2022-02-19T04:52:31Z")

</div>

Hi VTK community, I have a unstructured data (see the following) where I need to select the cells which are the outermost layer by the projection of a given vector N. I am currently looking into vtkHardwareSelect an…

---

## [Problem showing arrow handles in vtkLineWidget](https://discourse.vtk.org/t/problem-showing-arrow-handles-in-vtklinewidget/7879)

<div class="topic-metadata">

**Author:** [@Yasushi\_Saito](https://discourse.vtk.org/u/Yasushi_Saito)\
**Replies:** 2\
**Last updated:** [February 18, 2022, 10:42pm UTC](https://discourse.vtk.org/t/problem-showing-arrow-handles-in-vtklinewidget/7879 "2022-02-18T22:42:12Z")

</div>

I’m trying to use a vtkLineWidget in a React environment. I can get much of it working, but the handles on the two ends of the line doesn’t show, so I really can’t move its endpoints. The code is Basically, I started …

---

## [Is it possible to set thickness for vtkPolygon](https://discourse.vtk.org/t/is-it-possible-to-set-thickness-for-vtkpolygon/7866)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 1\
**Last updated:** [February 18, 2022, 11:13am UTC](https://discourse.vtk.org/t/is-it-possible-to-set-thickness-for-vtkpolygon/7866 "2022-02-18T11:13:22Z")

</div>

I want to use vtkPolygon in my project, and the code is pasted as following: import vtkmodules.all as vtk polyData = vtk.vtkPolyData() vps = vtk.vtkPoints() polygon = vtk.vtkPolygon() polygon.GetPointIds().SetNumberO…

---

## [How to trans dicom image to cv::mat](https://discourse.vtk.org/t/how-to-trans-dicom-image-to-cv-mat/7871)

<div class="topic-metadata">

**Author:** [@Eric-JH](https://discourse.vtk.org/u/Eric-JH)\
**Replies:** 0\
**Last updated:** [February 18, 2022, 9:06am UTC](https://discourse.vtk.org/t/how-to-trans-dicom-image-to-cv-mat/7871 "2022-02-18T09:06:28Z")

</div>

After reading a dicom file, I want to process the image with opencv. So I tried the followed code and errors occured in reader-\>GetOutput()-\>GetDimensions(dims); and int\* pixel = (int\*…

---

## [I want to display an image in a 3d rectangle with four corner points,](https://discourse.vtk.org/t/i-want-to-display-an-image-in-a-3d-rectangle-with-four-corner-points/7850)

<div class="topic-metadata">

**Author:** [@loufear](https://discourse.vtk.org/u/loufear)\
**Replies:** 5\
**Last updated:** [February 18, 2022, 1:23am UTC](https://discourse.vtk.org/t/i-want-to-display-an-image-in-a-3d-rectangle-with-four-corner-points/7850 "2022-02-18T01:23:21Z")

</div>

I used tkTexture but it doesn’t work well, I need help thanks

---

## [Do any vtkMultiBlockDataSets compatible filters consider visibility?](https://discourse.vtk.org/t/do-any-vtkmultiblockdatasets-compatible-filters-consider-visibility/7864)

<div class="topic-metadata">

**Author:** [@bheld](https://discourse.vtk.org/u/bheld)\
**Replies:** 0\
**Last updated:** [February 17, 2022, 7:31pm UTC](https://discourse.vtk.org/t/do-any-vtkmultiblockdatasets-compatible-filters-consider-visibility/7864 "2022-02-17T19:31:32Z")

</div>

I am using vtkMultiBlockDataSets and vtkCompositePolyDataMapper2. The support that vtkCompositeDataDisplayAttributes is very elegant for coloring, visibility, etc. but I’m trying to find an efficient way to handle invis…

---

## [Extract outside surface](https://discourse.vtk.org/t/extract-outside-surface/3450)

<div class="topic-metadata">

**Author:** [@pourarab](https://discourse.vtk.org/u/pourarab)\
**Replies:** 4\
**Last updated:** [February 17, 2022, 2:59pm UTC](https://discourse.vtk.org/t/extract-outside-surface/3450 "2022-02-17T14:59:47Z")

</div>

Hello, I’m trying to create a tube around a line. I used vtkTubeFilter to do this, but when there is a closed angle the result will be like this : I want to keep only the outside surface of this tube. How can i remov…

---

## [Python code for TubesWithVaryingRadius?](https://discourse.vtk.org/t/python-code-for-tubeswithvaryingradius/7861)

<div class="topic-metadata">

**Author:** [@\_11](https://discourse.vtk.org/u/_11)\
**Replies:** 0\
**Last updated:** [February 17, 2022, 11:58am UTC](https://discourse.vtk.org/t/python-code-for-tubeswithvaryingradius/7861 "2022-02-17T11:58:59Z")

</div>

I am really wondering if you could provide the corresponding python code for TubesWithVaryingRadius because I have very little experience in C++ https://kitware.github.io/vtk-examples/site/Cxx/VisualizationAlgorithms/Tu…

---

## [slicing stl model](https://discourse.vtk.org/t/slicing-stl-model/7858)

<div class="topic-metadata">

**Author:** [@yassir\_mohammed](https://discourse.vtk.org/u/yassir_mohammed)\
**Replies:** 0\
**Last updated:** [February 17, 2022, 1:51am UTC](https://discourse.vtk.org/t/slicing-stl-model/7858 "2022-02-17T01:51:57Z")

</div>

Hi everyone i am new user to vtk, and i would like to cut stl human model to multiple slice and save them as tiff image series with correct dimension ( means that when i read tiff image series give me the same model) i…

---

## [Displaying vtk files on electron(Node.js) application](https://discourse.vtk.org/t/displaying-vtk-files-on-electron-node-js-application/7856)

<div class="topic-metadata">

**Author:** [@Saquan\_Anthony](https://discourse.vtk.org/u/Saquan_Anthony)\
**Replies:** 1\
**Last updated:** [February 16, 2022, 9:50pm UTC](https://discourse.vtk.org/t/displaying-vtk-files-on-electron-node-js-application/7856 "2022-02-16T21:50:51Z")

</div>

Hello, I’m developing an application using Electron and one of the key features is being able to read/display vtk/vtu files. Playing around with VTK.js and react and I think I’m close to doing it but I’m not sure what …

---

## [About VTK Remote Modules](https://discourse.vtk.org/t/about-vtk-remote-modules/7821)

<div class="topic-metadata">

**Author:** [@mwestphal](https://discourse.vtk.org/u/mwestphal)\
**Replies:** 13\
**Last updated:** [February 16, 2022, 5:14pm UTC](https://discourse.vtk.org/t/about-vtk-remote-modules/7821 "2022-02-16T17:14:14Z")

</div>

VTK Remote Modules have been added to VTK in 2015 in an attempt to easily add new modules to VTK from external repositories. At the time, VTK was not very modular and creating modules was not easy as it is now, so it ma…

---

## [New Python category?](https://discourse.vtk.org/t/new-python-category/7832)

<div class="topic-metadata">

**Author:** [@berk.geveci](https://discourse.vtk.org/u/berk.geveci)\
**Replies:** 13\
**Last updated:** [February 16, 2022, 2:36pm UTC](https://discourse.vtk.org/t/new-python-category/7832 "2022-02-16T14:36:27Z")

</div>

Hello everyone. What do you think about adding a Python category where we would discuss all things VTK + Python?

---

## [CenterLine.vtk file is not aligned properly 3D view in slicer4.13](https://discourse.vtk.org/t/centerline-vtk-file-is-not-aligned-properly-3d-view-in-slicer4-13/7843)

<div class="topic-metadata">

**Author:** [@Mahesh\_Timmanagoudar](https://discourse.vtk.org/u/Mahesh_Timmanagoudar)\
**Replies:** 2\
**Last updated:** [February 16, 2022, 4:55am UTC](https://discourse.vtk.org/t/centerline-vtk-file-is-not-aligned-properly-3d-view-in-slicer4-13/7843 "2022-02-16T04:55:13Z")

</div>

I have generated VTK file using slicer 4.13 version. The VTK file looks like below. If i try to display above file in 3D view means. It wont align using both LPS and RAS option. It will be like below in slicer view. …

---

## [Render order with transparency](https://discourse.vtk.org/t/render-order-with-transparency/7847)

<div class="topic-metadata">

**Author:** [@ronzim](https://discourse.vtk.org/u/ronzim)\
**Replies:** 1\
**Last updated:** [February 15, 2022, 6:32pm UTC](https://discourse.vtk.org/t/render-order-with-transparency/7847 "2022-02-15T18:32:16Z")

</div>

Hello, I got a very basic scene with three transparent spheres in a row, but I cannot reach a correct rendering order. It seems to me that the render follows the order in which the spheres have been added to the scene (…

---

## [Mandibular, teeth and nerve segmentation from cbct](https://discourse.vtk.org/t/mandibular-teeth-and-nerve-segmentation-from-cbct/7827)

<div class="topic-metadata">

**Author:** [@Fatihhamircu](https://discourse.vtk.org/u/Fatihhamircu)\
**Replies:** 1\
**Last updated:** [February 15, 2022, 4:54pm UTC](https://discourse.vtk.org/t/mandibular-teeth-and-nerve-segmentation-from-cbct/7827 "2022-02-15T16:54:57Z")

</div>

Is there a easier way of segmenting multiple teeth, mandibular jaw and inferior alveolar nerve easily from a CBCT ? Also if someone has done these segmentations from CBCT what is the normal work flow that worked the bes…

---

## [How to return std::string](https://discourse.vtk.org/t/how-to-return-std-string/7840)

<div class="topic-metadata">

**Author:** [@lassoan](https://discourse.vtk.org/u/lassoan)\
**Replies:** 11\
**Last updated:** [February 15, 2022, 3:41pm UTC](https://discourse.vtk.org/t/how-to-return-std-string/7840 "2022-02-15T15:41:38Z")

</div>

While reviewing a merge request I noticed that while VTK generally returns std::string by value. This is good, as it allows to keep a stable API while implementation details can change. In contrast, returning const std::…

---

## [Pick and move a glypth point](https://discourse.vtk.org/t/pick-and-move-a-glypth-point/7846)

<div class="topic-metadata">

**Author:** [@sarahAdams](https://discourse.vtk.org/u/sarahAdams)\
**Replies:** 0\
**Last updated:** [February 15, 2022, 12:32pm UTC](https://discourse.vtk.org/t/pick-and-move-a-glypth-point/7846 "2022-02-15T12:32:01Z")

</div>

I am new to VTK and I have been struggling solving this for a while. I am trying to develop a software where I pick 5 points from a pointclouds and from these points I draw a line that connects the points and a glyph aro…

---

## [Color Surface with thinkness values](https://discourse.vtk.org/t/color-surface-with-thinkness-values/7749)

<div class="topic-metadata">

**Author:** [@LuisFco](https://discourse.vtk.org/u/LuisFco)\
**Replies:** 1\
**Last updated:** [February 15, 2022, 10:39am UTC](https://discourse.vtk.org/t/color-surface-with-thinkness-values/7749 "2022-02-15T10:39:35Z")

</div>

Hi, I’m trying to color a surface generated from vtkImageData using the values from another vtkImageData. This is the code to generate the surface: surface = vtk.vtkMarchingCubes() surface.SetInputData(imgstenc.GetOutp…

---

## [Transfer cell/face zone names from Fluent to Paraview](https://discourse.vtk.org/t/transfer-cell-face-zone-names-from-fluent-to-paraview/7842)

<div class="topic-metadata">

**Author:** [@remigius](https://discourse.vtk.org/u/remigius)\
**Replies:** 0\
**Last updated:** [February 15, 2022, 6:46am UTC](https://discourse.vtk.org/t/transfer-cell-face-zone-names-from-fluent-to-paraview/7842 "2022-02-15T06:46:56Z")

</div>

Hi, Is it possible to transfer a cell/face zone names from Fluent to Paraview with the use of VTK? Do you have any ideas where to look for that?

---

## [Unstructured grid from randomly disributed points](https://discourse.vtk.org/t/unstructured-grid-from-randomly-disributed-points/7222)

<div class="topic-metadata">

**Author:** [@remigius](https://discourse.vtk.org/u/remigius)\
**Replies:** 4\
**Last updated:** [February 15, 2022, 6:44am UTC](https://discourse.vtk.org/t/unstructured-grid-from-randomly-disributed-points/7222 "2022-02-15T06:44:55Z")

</div>

HI, I am trying to create an unstructured grid from a set of points loaded from csv file. The points come form Anys Fluent simulation. For a very basic case I consider only a simple 2D rectangle where I calculate only h…

---

## [vtkImageReslice not working properly? ResliceAxes are set, but have no effect?](https://discourse.vtk.org/t/vtkimagereslice-not-working-properly-resliceaxes-are-set-but-have-no-effect/7796)

<div class="topic-metadata">

**Author:** [@MJJ](https://discourse.vtk.org/u/MJJ)\
**Replies:** 1\
**Last updated:** [February 9, 2022, 9:21pm UTC](https://discourse.vtk.org/t/vtkimagereslice-not-working-properly-resliceaxes-are-set-but-have-no-effect/7796 "2022-02-09T21:21:53Z")

</div>

I have a vtkImageData called img that I want to use the vtkImageReslice algorithm on. I want to reslice this image data to create a subimage that has its voxels aligned to a different coordinate system. To do this i am…

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

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