# Support

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

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

**Page:** 35

---

## [any way to check nvidia GPU memory fragmentation on Linux? and any method to reclaim them?](https://discourse.vtk.org/t/any-way-to-check-nvidia-gpu-memory-fragmentation-on-linux-and-any-method-to-reclaim-them/12932)

<div class="topic-metadata">

**Author:** [@gpu](https://discourse.vtk.org/u/gpu)\
**Replies:** 1\
**Last updated:** [December 22, 2023, 3:33pm UTC](https://discourse.vtk.org/t/any-way-to-check-nvidia-gpu-memory-fragmentation-on-linux-and-any-method-to-reclaim-them/12932 "2023-12-22T15:33:29Z")

</div>

any way to check nvidia GPU memory fragmentation? and any method to reclaim them? Thanks!

---

## [Xmesa and offscreen rendering](https://discourse.vtk.org/t/xmesa-and-offscreen-rendering/12951)

<div class="topic-metadata">

**Author:** [@Rafael\_Scatena](https://discourse.vtk.org/u/Rafael_Scatena)\
**Replies:** 1\
**Last updated:** [December 22, 2023, 2:53pm UTC](https://discourse.vtk.org/t/xmesa-and-offscreen-rendering/12951 "2023-12-22T14:53:44Z")

</div>

What is the xmesa library used for and do I need it to perform offscreen rendering on a linux server? Thank you,

---

## [How to use vtk in Cutsom C++ Project using CLion/CMake and Win10](https://discourse.vtk.org/t/how-to-use-vtk-in-cutsom-c-project-using-clion-cmake-and-win10/12907)

<div class="topic-metadata">

**Author:** [@mr\_90](https://discourse.vtk.org/u/mr_90)\
**Replies:** 1\
**Last updated:** [December 22, 2023, 2:40pm UTC](https://discourse.vtk.org/t/how-to-use-vtk-in-cutsom-c-project-using-clion-cmake-and-win10/12907 "2023-12-22T14:40:34Z")

</div>

Hello guys, somehow I can’t get vtk to properly run in my project. I have downloaded, build and installed vtk-9.3 on my local machine. I can also find the VTK Packages and it’s modules, as well as reference the Header…

---

## [Offscreen rendering opening window](https://discourse.vtk.org/t/offscreen-rendering-opening-window/1660)

<div class="topic-metadata">

**Author:** [@jjackso2](https://discourse.vtk.org/u/jjackso2)\
**Replies:** 5\
**Last updated:** [December 22, 2023, 3:48am UTC](https://discourse.vtk.org/t/offscreen-rendering-opening-window/1660 "2023-12-22T03:48:11Z")

</div>

I want to some offscreen rendering but come across a very annoying problem in linux, even when I use a vtkWindowToImageFilter as the destination of the render and call Render() on the render window, it opens the window…

---

## [Filled contours / discrete number of colors](https://discourse.vtk.org/t/filled-contours-discrete-number-of-colors/537)

<div class="topic-metadata">

**Author:** [@lucasouto](https://discourse.vtk.org/u/lucasouto)\
**Replies:** 5\
**Last updated:** [December 22, 2023, 10:04am UTC](https://discourse.vtk.org/t/filled-contours-discrete-number-of-colors/537 "2023-12-22T10:04:58Z")

</div>

Hi, I’m new to VTK and any help would be appreciated. I’m trying to visualize unstructured data with VTK and Python. So far I managed to visualize temperature on a plate like this: But I need the plate to only show …

---

## [How to use the function indexing in vtkGlyph2D](https://discourse.vtk.org/t/how-to-use-the-function-indexing-in-vtkglyph2d/12959)

<div class="topic-metadata">

**Author:** [@baker-Xie](https://discourse.vtk.org/u/baker-Xie)\
**Replies:** 0\
**Last updated:** [December 22, 2023, 8:39am UTC](https://discourse.vtk.org/t/how-to-use-the-function-indexing-in-vtkglyph2d/12959 "2023-12-22T08:39:47Z")

</div>

vtkglyph2D have function SetIndexModeToScalar, but how can I pass the index array to vtkglyph2D? I want to show different char using this class.

---

## [How to plot scalar on the mesh elements when we have only nodal resutls](https://discourse.vtk.org/t/how-to-plot-scalar-on-the-mesh-elements-when-we-have-only-nodal-resutls/12958)

<div class="topic-metadata">

**Author:** [@abhayminachi](https://discourse.vtk.org/u/abhayminachi)\
**Replies:** 0\
**Last updated:** [December 22, 2023, 6:53am UTC](https://discourse.vtk.org/t/how-to-plot-scalar-on-the-mesh-elements-when-we-have-only-nodal-resutls/12958 "2023-12-22T06:53:34Z")

</div>

How to plot the scalar on mesh elements when we have only the nodal results. The nodal results are in the form of .csv file containing X, Y, Z and Stress columns. These values needs to be plotted on .cdb file format. How…

---

## [Support for uint64\_t in Xdmf/HDF5](https://discourse.vtk.org/t/support-for-uint64-t-in-xdmf-hdf5/12640)

<div class="topic-metadata">

**Author:** [@pkestene](https://discourse.vtk.org/u/pkestene)\
**Replies:** 1\
**Last updated:** [December 21, 2023, 10:53pm UTC](https://discourse.vtk.org/t/support-for-uint64-t-in-xdmf-hdf5/12640 "2023-12-21T22:53:34Z")

</div>

Hello, I’m using Xdmf/hdf5 data format and noticed that 64 bits unsigned integer are not properly supported when I load the data set in paraview, paraview doesn’t complain that uint64\_t is not supported, and the data …

---

## [Handling Opengl error Out of memory](https://discourse.vtk.org/t/handling-opengl-error-out-of-memory/3972)

<div class="topic-metadata">

**Author:** [@mykolav](https://discourse.vtk.org/u/mykolav)\
**Replies:** 24\
**Last updated:** [December 21, 2023, 6:01am UTC](https://discourse.vtk.org/t/handling-opengl-error-out-of-memory/3972 "2023-12-21T06:01:00Z")

</div>

Hi, I’m trying to make an adaptive volume loader, first trying to load super big volume that will probably not fit into the memory and then decrease the volume dimensions and try again until the volume actually loads. I…

---

## [vtkAnnotatedCubeActor display with shadows](https://discourse.vtk.org/t/vtkannotatedcubeactor-display-with-shadows/12943)

<div class="topic-metadata">

**Author:** [@a1401358759](https://discourse.vtk.org/u/a1401358759)\
**Replies:** 0\
**Last updated:** [December 20, 2023, 12:52pm UTC](https://discourse.vtk.org/t/vtkannotatedcubeactor-display-with-shadows/12943 "2023-12-20T12:52:52Z")

</div>

use vtk==9.2.6,as you can see in the image above,if I set cube.GetCubeProperty().SetEdgeVisibility(1),the cube displayed as the following,why?

---

## [Custom vtkWidgetRepresentation in Python](https://discourse.vtk.org/t/custom-vtkwidgetrepresentation-in-python/887)

<div class="topic-metadata">

**Author:** [@addisonElliott](https://discourse.vtk.org/u/addisonElliott)\
**Replies:** 1\
**Last updated:** [December 20, 2023, 6:15am UTC](https://discourse.vtk.org/t/custom-vtkwidgetrepresentation-in-python/887 "2023-12-20T06:15:02Z")

</div>

Hello, I am working with VTK 8.2 in Python 3.7 using the VTK distribution on Anaconda’s conda-forge channel. I’m hoping to create a few custom widgets to interact with the data in the VTK scene. I haven’t attempted it …

---

## [How can I disable the automatic render in QVTKOpenGLNativeWidget](https://discourse.vtk.org/t/how-can-i-disable-the-automatic-render-in-qvtkopenglnativewidget/12940)

<div class="topic-metadata">

**Author:** [@baker-Xie](https://discourse.vtk.org/u/baker-Xie)\
**Replies:** 3\
**Last updated:** [December 20, 2023, 5:06am UTC](https://discourse.vtk.org/t/how-can-i-disable-the-automatic-render-in-qvtkopenglnativewidget/12940 "2023-12-20T05:06:40Z")

</div>

I want to make a timer that call render when I need (because I’m modify vtk data in another thread). But for now, the interactor in QVTKOpenGLNativeWidget will call render automatically. How can I avoid this?

---

## [any expert has experiences on the GPU memory(esp. fragmentation) and CUDA-context working with OpenGL-context(VTK)?](https://discourse.vtk.org/t/any-expert-has-experiences-on-the-gpu-memory-esp-fragmentation-and-cuda-context-working-with-opengl-context-vtk/12939)

<div class="topic-metadata">

**Author:** [@gpu](https://discourse.vtk.org/u/gpu)\
**Replies:** 0\
**Last updated:** [December 20, 2023, 1:40am UTC](https://discourse.vtk.org/t/any-expert-has-experiences-on-the-gpu-memory-esp-fragmentation-and-cuda-context-working-with-opengl-context-vtk/12939 "2023-12-20T01:40:52Z")

</div>

any expert has experiences on the GPU memory(esp. fragmentation) and CUDA-context working with OpenGL-context(VTK)? is there any good project or article about this? Thanks!

---

## [Geodesic Distance for Unstructured Grids](https://discourse.vtk.org/t/geodesic-distance-for-unstructured-grids/12937)

<div class="topic-metadata">

**Author:** [@adeelz92](https://discourse.vtk.org/u/adeelz92)\
**Replies:** 0\
**Last updated:** [December 20, 2023, 1:09am UTC](https://discourse.vtk.org/t/geodesic-distance-for-unstructured-grids/12937 "2023-12-20T01:09:10Z")

</div>

Is there a way to compute geodesic distance (can be approximate) from one cell to another in an unstructured grid? vtkDijkstraGraphGeodesicPath only takes polygonal mesh as input!

---

## [GPU based rendering error](https://discourse.vtk.org/t/gpu-based-rendering-error/884)

<div class="topic-metadata">

**Author:** [@smrolfe](https://discourse.vtk.org/u/smrolfe)\
**Replies:** 2\
**Last updated:** [December 19, 2023, 8:02pm UTC](https://discourse.vtk.org/t/gpu-based-rendering-error/884 "2023-12-19T20:02:41Z")

</div>

Volume rendering in Slicer and ParaView is failing due to a VTK error when the volume has one dimension larger than 2000px. The following error is produced by Slicer: Generic Warning: In C:\\S\\B\\VTK\\Rendering\\VolumeOpen…

---

## [How to perform cinematic rendering(photorealistic volume rendering) of medical images using open source?](https://discourse.vtk.org/t/how-to-perform-cinematic-rendering-photorealistic-volume-rendering-of-medical-images-using-open-source/9716)

<div class="topic-metadata">

**Author:** [@Gal](https://discourse.vtk.org/u/Gal)\
**Replies:** 17\
**Last updated:** [December 19, 2023, 4:56pm UTC](https://discourse.vtk.org/t/how-to-perform-cinematic-rendering-photorealistic-volume-rendering-of-medical-images-using-open-source/9716 "2023-12-19T16:56:54Z")

</div>

Hello everyone, I am a beginner to visualization software, and my running hardware is MacOS. I have managed to get some experience with 3D Slicer and carry out some volume rendering; I also downloaded Paraview and Blende…

---

## [visualize large amount of changing object(cubes, points, lines, etc) in real time](https://discourse.vtk.org/t/visualize-large-amount-of-changing-object-cubes-points-lines-etc-in-real-time/12926)

<div class="topic-metadata">

**Author:** [@baker-Xie](https://discourse.vtk.org/u/baker-Xie)\
**Replies:** 5\
**Last updated:** [December 19, 2023, 9:40am UTC](https://discourse.vtk.org/t/visualize-large-amount-of-changing-object-cubes-points-lines-etc-in-real-time/12926 "2023-12-19T09:40:45Z")

</div>

Hi, I’m creating a visualization tool using vtk to visualize sensor’s data in self driving car. For now, I need to render 100000+ points and 2000+ objects (consist of cube, arrow, lines, etc), the points / objects positi…

---

## [QVTKOpenGLStereoWidget question](https://discourse.vtk.org/t/qvtkopenglstereowidget-question/12895)

<div class="topic-metadata">

**Author:** [@parisa\_kmn](https://discourse.vtk.org/u/parisa_kmn)\
**Replies:** 6\
**Last updated:** [December 19, 2023, 6:43am UTC](https://discourse.vtk.org/t/qvtkopenglstereowidget-question/12895 "2023-12-19T06:43:56Z")

</div>

Hi. I have a QFrame and an OpenGLWidget which has promoted to QVTKOpenGLStereoWidget.well i can bring my QFrame in front of my QVTKOpenGLStereoWidget in Qt Creator software but when I run my code in Visual Studio, the f…

---

## [Disable X,Y,and Z in vtkInteractorStyleImage](https://discourse.vtk.org/t/disable-x-y-and-z-in-vtkinteractorstyleimage/2918)

<div class="topic-metadata">

**Author:** [@zandarina](https://discourse.vtk.org/u/zandarina)\
**Replies:** 1\
**Last updated:** [December 19, 2023, 2:03am UTC](https://discourse.vtk.org/t/disable-x-y-and-z-in-vtkinteractorstyleimage/2918 "2023-12-19T02:03:56Z")

</div>

I would like to disable this key events because it rotates me one image that it has one single slice. So it does not make sense. What I did was to try: auto widget = std::make\_unique\<QVTKResliceImageWidget\> (parent);…

---

## [scaling issue with vtkExtractEdges](https://discourse.vtk.org/t/scaling-issue-with-vtkextractedges/12901)

<div class="topic-metadata">

**Author:** [@gregthom992](https://discourse.vtk.org/u/gregthom992)\
**Replies:** 1\
**Last updated:** [December 18, 2023, 9:18pm UTC](https://discourse.vtk.org/t/scaling-issue-with-vtkextractedges/12901 "2023-12-18T21:18:42Z")

</div>

Hi, I posted this on the slicer forum but I think the issue is with VTK. I have the following code that extracts the edges from a vtkimagedata and applies a tube filter to the edges. The issue is that the extractEdges…

---

## [How to correctly apply affine transforms from NIfTI images to PolyData derived from that input image?](https://discourse.vtk.org/t/how-to-correctly-apply-affine-transforms-from-nifti-images-to-polydata-derived-from-that-input-image/12916)

<div class="topic-metadata">

**Author:** [@normanius](https://discourse.vtk.org/u/normanius)\
**Replies:** 2\
**Last updated:** [December 18, 2023, 7:35pm UTC](https://discourse.vtk.org/t/how-to-correctly-apply-affine-transforms-from-nifti-images-to-polydata-derived-from-that-input-image/12916 "2023-12-18T19:35:43Z")

</div>

Consider this scenario: I am processing 3D medical imaging data (stored as NIfTIs) using some specific segmentation tool (not based on VTK/ITK). This tool extracts a segmentation masks for a certain structure of interest…

---

## [RAM blow out when looping vtkRenderWindow render](https://discourse.vtk.org/t/ram-blow-out-when-looping-vtkrenderwindow-render/3034)

<div class="topic-metadata">

**Author:** [@Philip\_George](https://discourse.vtk.org/u/Philip_George)\
**Replies:** 3\
**Last updated:** [December 18, 2023, 4:39pm UTC](https://discourse.vtk.org/t/ram-blow-out-when-looping-vtkrenderwindow-render/3034 "2023-12-18T16:39:20Z")

</div>

Hi, I’m having memory issues when I loop vtkRenderWindow-\>Render(). Each render window consists of different Actors. So in the loop, I create the polydata, mapper, actors, renderer and render window. When I call the re…

---

## [A question about vtkOpenGLHardwareSelector::GeneratePolygonSelection](https://discourse.vtk.org/t/a-question-about-vtkopenglhardwareselector-generatepolygonselection/9033)

<div class="topic-metadata">

**Author:** [@loufear](https://discourse.vtk.org/u/loufear)\
**Replies:** 3\
**Last updated:** [December 17, 2023, 1:44am UTC](https://discourse.vtk.org/t/a-question-about-vtkopenglhardwareselector-generatepolygonselection/9033 "2023-12-17T01:44:15Z")

</div>

I use this method to get the visible surface of the ticked polygon data, but the output of the result is weird It looks like a part is missing, hope for help, auto selector = vtkSmartPointer::New(); selector-\>SetRender…

---

## [create custom grid image in VTK](https://discourse.vtk.org/t/create-custom-grid-image-in-vtk/12908)

<div class="topic-metadata">

**Author:** [@gregthom992](https://discourse.vtk.org/u/gregthom992)\
**Replies:** 0\
**Last updated:** [December 14, 2023, 6:12pm UTC](https://discourse.vtk.org/t/create-custom-grid-image-in-vtk/12908 "2023-12-14T18:12:33Z")

</div>

I want to create a a grid image made up of a grid of rods in vtk like so (Figure 1) I tried vtkImageGridSource source: grid0 = vtk.vtkImageGridSource() grid0.SetDataScalarTypeToUnsignedChar() grid0.SetGridSpacing…

---

## [vtkMP4Writer not an attribute for my pip installed vtk](https://discourse.vtk.org/t/vtkmp4writer-not-an-attribute-for-my-pip-installed-vtk/12877)

<div class="topic-metadata">

**Author:** [@fallen](https://discourse.vtk.org/u/fallen)\
**Replies:** 5\
**Last updated:** [December 14, 2023, 1:44pm UTC](https://discourse.vtk.org/t/vtkmp4writer-not-an-attribute-for-my-pip-installed-vtk/12877 "2023-12-14T13:44:01Z")

</div>

I used pip3.8 to install vtk version 9.2.6 on Linux Rocky 8. I was hoping to use the vtkMP4Writer to export the render data to an external file, but I receive the following error: AttributeError: module ‘vtk’ has no att…

---

## [How to export the color of actor to OBJ model by vtkOBJWriter correctly](https://discourse.vtk.org/t/how-to-export-the-color-of-actor-to-obj-model-by-vtkobjwriter-correctly/2725)

<div class="topic-metadata">

**Author:** [@yuhuimoon](https://discourse.vtk.org/u/yuhuimoon)\
**Replies:** 4\
**Last updated:** [December 14, 2023, 2:20am UTC](https://discourse.vtk.org/t/how-to-export-the-color-of-actor-to-obj-model-by-vtkobjwriter-correctly/2725 "2023-12-14T02:20:18Z")

</div>

I can’t export the color of an actor(without texture, only single color) to OBJ model. The mesh and geometry of OBJ model is correct. But its color is always white instead of its own color. The color is white in many oth…

---

## [Visualize VTU together with DICOM slices](https://discourse.vtk.org/t/visualize-vtu-together-with-dicom-slices/12898)

<div class="topic-metadata">

**Author:** [@Lois\_Vazquez](https://discourse.vtk.org/u/Lois_Vazquez)\
**Replies:** 1\
**Last updated:** [December 13, 2023, 6:12pm UTC](https://discourse.vtk.org/t/visualize-vtu-together-with-dicom-slices/12898 "2023-12-13T18:12:05Z")

</div>

Hello everybody. I am trying to visualize the slices of a DICOM file together with a VTU within the same scene. Said VTU is a file resulting from performing FEM simulations using an STL geometry that I obtained from man…

---

## [Fixing the BoundaryEdges issue of an Errored STL](https://discourse.vtk.org/t/fixing-the-boundaryedges-issue-of-an-errored-stl/12889)

<div class="topic-metadata">

**Author:** [@Anvesh](https://discourse.vtk.org/u/Anvesh)\
**Replies:** 0\
**Last updated:** [December 13, 2023, 6:56am UTC](https://discourse.vtk.org/t/fixing-the-boundaryedges-issue-of-an-errored-stl/12889 "2023-12-13T06:56:03Z")

</div>

Hello there, I tried to correct the errored stl file using the vtk Classes… But got stuck at the below explained problem, Problem I have a stl file which is shown below: For this, I have to close the region that is…

---

## [Display of a OBJ file.](https://discourse.vtk.org/t/display-of-a-obj-file/7659)

<div class="topic-metadata">

**Author:** [@Luis\_Carlos\_Carneiro](https://discourse.vtk.org/u/Luis_Carlos_Carneiro)\
**Replies:** 12\
**Last updated:** [December 13, 2023, 6:27am UTC](https://discourse.vtk.org/t/display-of-a-obj-file/7659 "2023-12-13T06:27:13Z")

</div>

Dear All, Has VTK, support to load and display an OBJ file (color vectorial image, extension .obj with .mtl and .png files)? Can you please provide a link for an example code? Thanks, Luís Gonçalves

---

## [getting Error: GLEW could not be initialized: Missing GL version](https://discourse.vtk.org/t/getting-error-glew-could-not-be-initialized-missing-gl-version/12848)

<div class="topic-metadata">

**Author:** [@NewPony](https://discourse.vtk.org/u/NewPony)\
**Replies:** 16\
**Last updated:** [December 12, 2023, 1:48pm UTC](https://discourse.vtk.org/t/getting-error-glew-could-not-be-initialized-missing-gl-version/12848 "2023-12-12T13:48:18Z")

</div>

I tried to update this QML-VTK project from Dao Duc Tung to the current vtk 9.3.0 & PySide6 versions fork. I run the script on two machines (NVIDIA GTX 4060Ti & NVIDIA RTX A500) on both the situation is the same: On L…

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

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