# Support

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

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

**Page:** 32

---

## [Slow clipping polydata](https://discourse.vtk.org/t/slow-clipping-polydata/13214)

<div class="topic-metadata">

**Author:** [@MarKara](https://discourse.vtk.org/u/MarKara)\
**Replies:** 5\
**Last updated:** [February 1, 2024, 3:25pm UTC](https://discourse.vtk.org/t/slow-clipping-polydata/13214 "2024-02-01T15:25:10Z")

</div>

Hi I’m using ActiViz and trying to clip polydata using scalars and it takes really very, very long time, more that 15min, I killed the process as it is not what expected. Polydataset has ~7300 polylines and about 2,500…

---

## [Delete the overlapping of the same Polygon(polydata)](https://discourse.vtk.org/t/delete-the-overlapping-of-the-same-polygon-polydata/13180)

<div class="topic-metadata">

**Author:** [@Hedwig\_Huang](https://discourse.vtk.org/u/Hedwig_Huang)\
**Replies:** 4\
**Last updated:** [February 1, 2024, 7:49am UTC](https://discourse.vtk.org/t/delete-the-overlapping-of-the-same-polygon-polydata/13180 "2024-02-01T07:49:48Z")

</div>

Hi there, I push some points in vtkPoints and generate vtkCellArray to get a track of mouse with vtkActor2D and vtkPolydataMapper2D to clip the body. Before I execute clipping volume, I found that the overlapping of po…

---

## [Create MPR view with independent cross sectional hairs cursor between views](https://discourse.vtk.org/t/create-mpr-view-with-independent-cross-sectional-hairs-cursor-between-views/8714)

<div class="topic-metadata">

**Author:** [@florian](https://discourse.vtk.org/u/florian)\
**Replies:** 3\
**Last updated:** [February 1, 2024, 1:47am UTC](https://discourse.vtk.org/t/create-mpr-view-with-independent-cross-sectional-hairs-cursor-between-views/8714 "2024-02-01T01:47:29Z")

</div>

Hello everyone, I am trying to build a MPR view with vtkResliceCursor but I got problem with the interaction. It seems that the interaction of the cross sectional hairs applies even outside the render where the vtkResli…

---

## [How to Rendering the vtkImageData correctyly](https://discourse.vtk.org/t/how-to-rendering-the-vtkimagedata-correctyly/13204)

<div class="topic-metadata">

**Author:** [@lukeqiang9521](https://discourse.vtk.org/u/lukeqiang9521)\
**Replies:** 1\
**Last updated:** [January 31, 2024, 8:39am UTC](https://discourse.vtk.org/t/how-to-rendering-the-vtkimagedata-correctyly/13204 "2024-01-31T08:39:39Z")

</div>

hello ,everyone! i have code like that : vtkSmartPointer ImageFillActor; vtkSmartPointer Reslice; vtkSmartPointer SliceToImageTransform; vtkSmartPointer LookupTableFill; vtkSmartPointer ImageThreshold; { // thi…

---

## [Incorrect data was obtained using GetRange](https://discourse.vtk.org/t/incorrect-data-was-obtained-using-getrange/13200)

<div class="topic-metadata">

**Author:** [@nanoahSR](https://discourse.vtk.org/u/nanoahSR)\
**Replies:** 0\
**Last updated:** [January 31, 2024, 7:06am UTC](https://discourse.vtk.org/t/incorrect-data-was-obtained-using-getrange/13200 "2024-01-31T07:06:44Z")

</div>

I inserted the data from std::vector\<double\> data into the cell data of the dataset, and then when I used GetRange to get the data range, range\[0\] was -431602080.000000 vtkSmartPointer\<vtkDataSet\> dataset = m\_dataset.at…

---

## [Why vector diagrams using vtkCutter become vtkPlane normal vectors](https://discourse.vtk.org/t/why-vector-diagrams-using-vtkcutter-become-vtkplane-normal-vectors/13196)

<div class="topic-metadata">

**Author:** [@emus.tk](https://discourse.vtk.org/u/emus.tk)\
**Replies:** 0\
**Last updated:** [January 31, 2024, 2:45am UTC](https://discourse.vtk.org/t/why-vector-diagrams-using-vtkcutter-become-vtkplane-normal-vectors/13196 "2024-01-31T02:45:45Z")

</div>

I am implementing a program in C++ using the vtk9.3.0 library. The vector diagram of vtkUnstructuredGrid works normally, but when I draw a vector diagram on a cross section, it is aligned in the normal direction of the c…

---

## [Point colour grid interpolation on a vtkPolyData](https://discourse.vtk.org/t/point-colour-grid-interpolation-on-a-vtkpolydata/13177)

<div class="topic-metadata">

**Author:** [@Julien](https://discourse.vtk.org/u/Julien)\
**Replies:** 2\
**Last updated:** [January 31, 2024, 12:16am UTC](https://discourse.vtk.org/t/point-colour-grid-interpolation-on-a-vtkpolydata/13177 "2024-01-31T00:16:23Z")

</div>

Hello, I am trying to cut through a geometry which is the result of a finite element analysis. Here is what I do (just a bit of context): plane= vtkPlane() clipper= vtkClipDataSet() clipper.setClipFunction(plane) clip…

---

## [RAD Studio 12 CLang and VTK 9.3.0](https://discourse.vtk.org/t/rad-studio-12-clang-and-vtk-9-3-0/13190)

<div class="topic-metadata">

**Author:** [@Gunnar](https://discourse.vtk.org/u/Gunnar)\
**Replies:** 0\
**Last updated:** [January 30, 2024, 4:01pm UTC](https://discourse.vtk.org/t/rad-studio-12-clang-and-vtk-9-3-0/13190 "2024-01-30T16:01:48Z")

</div>

Hi, there! Is there anybody who has built the VTK with RAD Studio 12 and its Clang Compiler? Regards

---

## [Try to have a vtkInteractorStyleImage with vtkGenericOpenGLRenderWindow](https://discourse.vtk.org/t/try-to-have-a-vtkinteractorstyleimage-with-vtkgenericopenglrenderwindow/13188)

<div class="topic-metadata">

**Author:** [@MagicLudo](https://discourse.vtk.org/u/MagicLudo)\
**Replies:** 0\
**Last updated:** [January 30, 2024, 10:52am UTC](https://discourse.vtk.org/t/try-to-have-a-vtkinteractorstyleimage-with-vtkgenericopenglrenderwindow/13188 "2024-01-30T10:52:23Z")

</div>

Hi ! I’m trying to build an application with Qt and VTK. I want to display a 3D image (DICOM) in a widget like QVTKOpenGLNativeWidget and be able to change slices using the mouse wheel (and other thigs). I was inspired…

---

## [How to add mask information when display NIFTI images on GLANCE?](https://discourse.vtk.org/t/how-to-add-mask-information-when-display-nifti-images-on-glance/13184)

<div class="topic-metadata">

**Author:** [@bodenstandig](https://discourse.vtk.org/u/bodenstandig)\
**Replies:** 0\
**Last updated:** [January 30, 2024, 8:27am UTC](https://discourse.vtk.org/t/how-to-add-mask-information-when-display-nifti-images-on-glance/13184 "2024-01-30T08:27:27Z")

</div>

Hello to everyone in the VTK community! I am an undergraduate student majoring in computer-related fields, currently utilizing the open-source Glance project to complete my final project. I need to upload NIfTI files (3D…

---

## [Some part of mesh would disappear when I rotate it](https://discourse.vtk.org/t/some-part-of-mesh-would-disappear-when-i-rotate-it/13149)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 8\
**Last updated:** [January 30, 2024, 5:43am UTC](https://discourse.vtk.org/t/some-part-of-mesh-would-disappear-when-i-rotate-it/13149 "2024-01-30T05:43:53Z")

</div>

I want to show a mesh: However, when I rotate it, some part would disappear: I want it show all mesh when I rotate camera. I try to reset the clipping range in the mouseMoveEvent : m\_renderer-\>ResetCameraClipping…

---

## [Observer Timer Event Examples](https://discourse.vtk.org/t/observer-timer-event-examples/13176)

<div class="topic-metadata">

**Author:** [@cam](https://discourse.vtk.org/u/cam)\
**Replies:** 1\
**Last updated:** [January 30, 2024, 2:01am UTC](https://discourse.vtk.org/t/observer-timer-event-examples/13176 "2024-01-30T02:01:15Z")

</div>

Hey all, I’m looking to use a timer event to run a function and I’m looking for an example. I’m on python 3.10.11 and vtk 9.3.0. Any snippets or examples would be greatly appreciated. Thanks in advance!

---

## [Implementing Color or Opacity Variations for Partially Obscured Outlines in VTK Polydata Objects](https://discourse.vtk.org/t/implementing-color-or-opacity-variations-for-partially-obscured-outlines-in-vtk-polydata-objects/13162)

<div class="topic-metadata">

**Author:** [@devansan](https://discourse.vtk.org/u/devansan)\
**Replies:** 1\
**Last updated:** [January 30, 2024, 1:57am UTC](https://discourse.vtk.org/t/implementing-color-or-opacity-variations-for-partially-obscured-outlines-in-vtk-polydata-objects/13162 "2024-01-30T01:57:40Z")

</div>

\#include \<vtkActor.h\> #include \<vtkCubeSource.h\> #include \<vtkArrowSource.h\> #include \<vtkCamera.h\> #include \<vtkNamedColors.h\> #include \<vtkNew.h\> #include \<vtkOpenGLRenderer.h\> #include \<vtkOutlineGlowPass.h\> #include \<…

---

## [cannot find ExtractEdges](https://discourse.vtk.org/t/cannot-find-extractedges/13168)

<div class="topic-metadata">

**Author:** [@Mike.J](https://discourse.vtk.org/u/Mike.J)\
**Replies:** 1\
**Last updated:** [January 29, 2024, 6:02pm UTC](https://discourse.vtk.org/t/cannot-find-extractedges/13168 "2024-01-29T18:02:03Z")

</div>

Hello All -first time poster here! I am using some old code, new to me, which uses vtk, and when I run it I get this error: ImportError: cannot import name ‘vtkExtractEdges’ from ‘vtkmodules.vtkFiltersExtraction’ (/hom…

---

## [\[DICOM series\] Image zoomed whille scrolling slices](https://discourse.vtk.org/t/dicom-series-image-zoomed-whille-scrolling-slices/10926)

<div class="topic-metadata">

**Author:** [@eightysix](https://discourse.vtk.org/u/eightysix)\
**Replies:** 3\
**Last updated:** [January 29, 2024, 3:29pm UTC](https://discourse.vtk.org/t/dicom-series-image-zoomed-whille-scrolling-slices/10926 "2024-01-29T15:29:01Z")

</div>

Hello! This is my first post and I’ve just started using VTK, so I apologize in advance for my beginner-level questions. I’m working with CT DICOM series and Cocoa, using vtkImageSliceMapper, vtkImageSlice and vtkInter…

---

## [Convert a 3D .obj mesh (from blender) into a 3D-CT .nii image with its materials.](https://discourse.vtk.org/t/convert-a-3d-obj-mesh-from-blender-into-a-3d-ct-nii-image-with-its-materials/13164)

<div class="topic-metadata">

**Author:** [@penida](https://discourse.vtk.org/u/penida)\
**Replies:** 0\
**Last updated:** [January 29, 2024, 9:29am UTC](https://discourse.vtk.org/t/convert-a-3d-obj-mesh-from-blender-into-a-3d-ct-nii-image-with-its-materials/13164 "2024-01-29T09:29:47Z")

</div>

I’ve tried converting my blender mesh to voxel by taking the materials into account for each voxel (for organic material, I want to set the voxel value to 0.3, for example), but it doesn’t work well. So I’m wondering if …

---

## [Help please ! MSAA not work](https://discourse.vtk.org/t/help-please-msaa-not-work/13146)

<div class="topic-metadata">

**Author:** [@baker-Xie](https://discourse.vtk.org/u/baker-Xie)\
**Replies:** 7\
**Last updated:** [January 29, 2024, 1:13am UTC](https://discourse.vtk.org/t/help-please-msaa-not-work/13146 "2024-01-29T01:13:22Z")

</div>

I have ask this question for several times but no one seems can help me. I have lerat and work for 3 month in my project with vtk and I don’t want to use another 3D engine. anti-alias seems not working in QVTKOpenGLNat…

---

## [vtk9.3.0 mingw multiple definition of \`vtktiff\_\_TIFFBuiltinCODECS'](https://discourse.vtk.org/t/vtk9-3-0-mingw-multiple-definition-of-vtktiff-tiffbuiltincodecs/12723)

<div class="topic-metadata">

**Author:** [@realwhzc](https://discourse.vtk.org/u/realwhzc)\
**Replies:** 3\
**Last updated:** [January 28, 2024, 12:38pm UTC](https://discourse.vtk.org/t/vtk9-3-0-mingw-multiple-definition-of-vtktiff-tiffbuiltincodecs/12723 "2024-01-28T12:38:30Z")

</div>

In file included from E:/ ode2023E:\\code20231018\\parallel\\VTK-9.3.0\\ThirdParty\\hdf5\\vtkhdf5\\src\\H5Gint.c:341 18/parallel/VTK-9.3.0/ThirdPa: rt /tiff/vtE:\\code20231018\\parallel\\VTK-9.3.0\\ThirdParty\\hdf5\\vtkhdf5\\src\\H5Gint…

---

## [How to do fiber tracking using VTK for DTI?](https://discourse.vtk.org/t/how-to-do-fiber-tracking-using-vtk-for-dti/13124)

<div class="topic-metadata">

**Author:** [@Yixun\_Liu](https://discourse.vtk.org/u/Yixun_Liu)\
**Replies:** 5\
**Last updated:** [January 26, 2024, 9:58am UTC](https://discourse.vtk.org/t/how-to-do-fiber-tracking-using-vtk-for-dti/13124 "2024-01-26T09:58:31Z")

</div>

Hi, I use ITK to load a DWI and then use itk::DiffusionTensor3DReconstructionImageFilter to calculate the tensor. After that how to do fiber tracking? I plan to first convert the ITK tensor image to VTK image, then use…

---

## [Shared memory parallelism with vtkUnstructuredGrid and vtkStaticCellLocator?](https://discourse.vtk.org/t/shared-memory-parallelism-with-vtkunstructuredgrid-and-vtkstaticcelllocator/13148)

<div class="topic-metadata">

**Author:** [@NathanaelJ](https://discourse.vtk.org/u/NathanaelJ)\
**Replies:** 0\
**Last updated:** [January 25, 2024, 4:08pm UTC](https://discourse.vtk.org/t/shared-memory-parallelism-with-vtkunstructuredgrid-and-vtkstaticcelllocator/13148 "2024-01-25T16:08:42Z")

</div>

I’m trying to achieve something I’m not sure is possible, but would really appreciate any ideas/ suggestions/ tips on how to try to do this… I’m running a post-processing tool on very large vtkUnstructuredGrids (with \>2…

---

## [Gradient of Unstructured Grid in Python](https://discourse.vtk.org/t/gradient-of-unstructured-grid-in-python/2489)

<div class="topic-metadata">

**Author:** [@RSwn](https://discourse.vtk.org/u/RSwn)\
**Replies:** 13\
**Last updated:** [January 25, 2024, 1:31pm UTC](https://discourse.vtk.org/t/gradient-of-unstructured-grid-in-python/2489 "2024-01-25T13:31:10Z")

</div>

I am looking to calculate the velocity gradients (du/dx, du/dy, dv,dx, dv/dy) at each point in an Unstructured Grid using Python. I have arrays for the x and y coordinate points as well as the x and y velocities at each …

---

## [SetUserMatrix vs using vtkTransformPolyDataFilter](https://discourse.vtk.org/t/setusermatrix-vs-using-vtktransformpolydatafilter/13131)

<div class="topic-metadata">

**Author:** [@stavbodik](https://discourse.vtk.org/u/stavbodik)\
**Replies:** 14\
**Last updated:** [January 24, 2024, 5:26pm UTC](https://discourse.vtk.org/t/setusermatrix-vs-using-vtktransformpolydatafilter/13131 "2024-01-24T17:26:13Z")

</div>

Can anyone explain me what’s the difference between transforming actor when using this two different approach ? The first one is using the vtkTransformPolyDataFilter on the 3D object PolyData. The second one is calling…

---

## [How to know the type for VTU file](https://discourse.vtk.org/t/how-to-know-the-type-for-vtu-file/13120)

<div class="topic-metadata">

**Author:** [@Ludo](https://discourse.vtk.org/u/Ludo)\
**Replies:** 2\
**Last updated:** [January 23, 2024, 10:35pm UTC](https://discourse.vtk.org/t/how-to-know-the-type-for-vtu-file/13120 "2024-01-23T22:35:49Z")

</div>

Hello everyone, So far I’ve used vtkDataReader class for vtk file in order to know if vtk file was Rectilineargrid,UnstructuredGrid or StructuredGrid by doing this test vtkDataReader GlobalReader = vtkDataReader.New()…

---

## [Extract closed Surface or Generate 3D mesh or volume from two non-closed surface](https://discourse.vtk.org/t/extract-closed-surface-or-generate-3d-mesh-or-volume-from-two-non-closed-surface/3016)

<div class="topic-metadata">

**Author:** [@rezaramdhan](https://discourse.vtk.org/u/rezaramdhan)\
**Replies:** 9\
**Last updated:** [January 23, 2024, 3:33pm UTC](https://discourse.vtk.org/t/extract-closed-surface-or-generate-3d-mesh-or-volume-from-two-non-closed-surface/3016 "2024-01-23T15:33:38Z")

</div>

Hi Fellas, I am currently developing a tool to create a 3D mesh or volume from two non-closed surface using vtk. For illustration: Imagine a Digital Elevation Model (surface model) that lies on top of another DEM with …

---

## [In lines vtkBoxWidget](https://discourse.vtk.org/t/in-lines-vtkboxwidget/13108)

<div class="topic-metadata">

**Author:** [@mahsum\_mahsum](https://discourse.vtk.org/u/mahsum_mahsum)\
**Replies:** 0\
**Last updated:** [January 21, 2024, 9:32pm UTC](https://discourse.vtk.org/t/in-lines-vtkboxwidget/13108 "2024-01-21T21:32:02Z")

</div>

With this line i am able to change opacity of Out line and in lines. how can i only change in lines. boxWidget.GetOutlineProperty().SetOpacity(0)

---

## [How to use the data in the one-dimensional array to create a vtkXYPlotActor image?](https://discourse.vtk.org/t/how-to-use-the-data-in-the-one-dimensional-array-to-create-a-vtkxyplotactor-image/13105)

<div class="topic-metadata">

**Author:** [@noname-jiang](https://discourse.vtk.org/u/noname-jiang)\
**Replies:** 0\
**Last updated:** [January 21, 2024, 4:06am UTC](https://discourse.vtk.org/t/how-to-use-the-data-in-the-one-dimensional-array-to-create-a-vtkxyplotactor-image/13105 "2024-01-21T04:06:04Z")

</div>

I tried to set the value of each point with SetPointComponent, but it didn’t seem to work. Or who knows how to use AddDataSetInput to input one-dimensional int array, please let me know, thank you! vtkSmartPoin…

---

## [QVTKRenderWindowInteractor PySide2 Resize Issue](https://discourse.vtk.org/t/qvtkrenderwindowinteractor-pyside2-resize-issue/13095)

<div class="topic-metadata">

**Author:** [@theodorebaltis](https://discourse.vtk.org/u/theodorebaltis)\
**Replies:** 9\
**Last updated:** [January 20, 2024, 3:10am UTC](https://discourse.vtk.org/t/qvtkrenderwindowinteractor-pyside2-resize-issue/13095 "2024-01-20T03:10:36Z")

</div>

I am trying to embed a QVTKRenderWindowInteractor in a QT app using PySide2 and VTK 9.0 I’ve done so successfully with PyQt5, but now with PySide2 the rendering area doesn’t update properly upon resizing. Initial rende…

---

## [Consume a VTK event in Python](https://discourse.vtk.org/t/consume-a-vtk-event-in-python/13052)

<div class="topic-metadata">

**Author:** [@Edoardo\_Pasca](https://discourse.vtk.org/u/Edoardo_Pasca)\
**Replies:** 4\
**Last updated:** [January 19, 2024, 5:45pm UTC](https://discourse.vtk.org/t/consume-a-vtk-event-in-python/13052 "2024-01-19T17:45:24Z")

</div>

Hi all, If I press s or w in a vtkRenderWindow a KeyPress event is fired and the representation of the rendered objects changes to surface or wireframe. The event observer, I should think, is handled by the vtkRenderWin…

---

## [vtkWorldPointPicker seems not working for multi-layer rendering](https://discourse.vtk.org/t/vtkworldpointpicker-seems-not-working-for-multi-layer-rendering/2322)

<div class="topic-metadata">

**Author:** [@mat127](https://discourse.vtk.org/u/mat127)\
**Replies:** 4\
**Last updated:** [January 19, 2024, 2:27pm UTC](https://discourse.vtk.org/t/vtkworldpointpicker-seems-not-working-for-multi-layer-rendering/2322 "2024-01-19T14:27:49Z")

</div>

Hello, I am trying to use the vtkWorldPointPicker to obtain just the picked position under the mouse cursor. auto picker = vtkSmartPointer\<vtkWorldPointPicker\>::New(); picker-\>Pick(clickPos\[0\], clickPos\[1\], 0, renderer…

---

## [Can I set line width and point size in vtkPolyData?](https://discourse.vtk.org/t/can-i-set-line-width-and-point-size-in-vtkpolydata/13097)

<div class="topic-metadata">

**Author:** [@baker-Xie](https://discourse.vtk.org/u/baker-Xie)\
**Replies:** 1\
**Last updated:** [January 19, 2024, 1:55pm UTC](https://discourse.vtk.org/t/can-i-set-line-width-and-point-size-in-vtkpolydata/13097 "2024-01-19T13:55:13Z")

</div>

I know how to set color in vtkPolydata. And usually we can SetPointSize and LineWidth using vtkActor. But I have large amount of polydata, some of them include lines, some of them include points, I want to set line widt…

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

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