# Support

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

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

**Page:** 22

---

## [Is there a way to bundle a set of related simulations as a file?](https://discourse.vtk.org/t/is-there-a-way-to-bundle-a-set-of-related-simulations-as-a-file/14371)

<div class="topic-metadata">

**Author:** [@rexthor](https://discourse.vtk.org/u/rexthor)\
**Replies:** 4\
**Last updated:** [August 13, 2024, 7:42pm UTC](https://discourse.vtk.org/t/is-there-a-way-to-bundle-a-set-of-related-simulations-as-a-file/14371 "2024-08-13T19:42:25Z")

</div>

I have a couple of simulations for a set of temperatures and pressures. I had hoped to be able to store the conditions as field data in a vtkPolyData, and then put the vtkPolyData objects inside of a vtkPartitionedDataSe…

---

## [What does vtkTypeMacro() do???](https://discourse.vtk.org/t/what-does-vtktypemacro-do/14406)

<div class="topic-metadata">

**Author:** [@Tomasso](https://discourse.vtk.org/u/Tomasso)\
**Replies:** 4\
**Last updated:** [August 13, 2024, 6:53pm UTC](https://discourse.vtk.org/t/what-does-vtktypemacro-do/14406 "2024-08-13T18:53:36Z")

</div>

In summary, what does vtkTypeMacro() do? I see its definition here, but frankly don’t understand what the heck it is doing. E.g. in this example - what is going on with struct Data? class MyClass { struct Data : vtk…

---

## [How to Properly Rotate a DICOM](https://discourse.vtk.org/t/how-to-properly-rotate-a-dicom/1960)

<div class="topic-metadata">

**Author:** [@MichelleKline](https://discourse.vtk.org/u/MichelleKline)\
**Replies:** 1\
**Last updated:** [October 22, 2019, 4:48am UTC](https://discourse.vtk.org/t/how-to-properly-rotate-a-dicom/1960 "2019-10-22T04:48:52Z")

</div>

Hello, I have Python/vtk code that reads a DICOM image that was acquired obliquely, and uses vtkImageReslice to reslice the DICOM volume axially. I achieve this by generating an affine transformation matrix (vtkMatrix4…

---

## [vtkMultiBlockDataSet equivalent for VTKHDF files](https://discourse.vtk.org/t/vtkmultiblockdataset-equivalent-for-vtkhdf-files/14369)

<div class="topic-metadata">

**Author:** [@jpmorr](https://discourse.vtk.org/u/jpmorr)\
**Replies:** 11\
**Last updated:** [August 13, 2024, 1:01am UTC](https://discourse.vtk.org/t/vtkmultiblockdataset-equivalent-for-vtkhdf-files/14369 "2024-08-13T01:01:14Z")

</div>

I’m using .vtm files to handle results from simulations where singe timestep output comes in several file formats (.vtp, .vtu and sometimes .vti). Gathering all of the data in a .vtm file makes loading into Paraview very…

---

## [Loading in DICOM series to volume - Best way/most robust way of taking all file DICOM file types.](https://discourse.vtk.org/t/loading-in-dicom-series-to-volume-best-way-most-robust-way-of-taking-all-file-dicom-file-types/1630)

<div class="topic-metadata">

**Author:** [@joe.maliszewski](https://discourse.vtk.org/u/joe.maliszewski)\
**Replies:** 4\
**Last updated:** [August 12, 2024, 11:35pm UTC](https://discourse.vtk.org/t/loading-in-dicom-series-to-volume-best-way-most-robust-way-of-taking-all-file-dicom-file-types/1630 "2024-08-12T23:35:17Z")

</div>

I currently use VTK to read in a dicom series using vtkDICOMImageReader. (-\>setDirectory name). It reads the dicoms into a block or volume, of which i then reslice in my desired planes(s). vtkSmartPointer slice\_DICOM =…

---

## [Is there a way to programmatically mark/select cells for extraction?](https://discourse.vtk.org/t/is-there-a-way-to-programmatically-mark-select-cells-for-extraction/14379)

<div class="topic-metadata">

**Author:** [@rexthor](https://discourse.vtk.org/u/rexthor)\
**Replies:** 4\
**Last updated:** [August 12, 2024, 6:27pm UTC](https://discourse.vtk.org/t/is-there-a-way-to-programmatically-mark-select-cells-for-extraction/14379 "2024-08-12T18:27:39Z")

</div>

Perhaps there is a more elegant way of doing this, but I wanted to select cells where either the normal had a positive dot product with a given unit vector, or that had a positive dot product with a direction to a point …

---

## [qml vtk integration issue](https://discourse.vtk.org/t/qml-vtk-integration-issue/14396)

<div class="topic-metadata">

**Author:** [@Behnam\_Asadi](https://discourse.vtk.org/u/Behnam_Asadi)\
**Replies:** 2\
**Last updated:** [August 12, 2024, 3:08pm UTC](https://discourse.vtk.org/t/qml-vtk-integration-issue/14396 "2024-08-12T15:08:25Z")

</div>

Consider the following snippet: // standard boiler plate code for creating actors. renderer, etc vtkNew\<vtkCallbackCommand\> callback; callback-\>SetCallback(CallbackFunction); renderer-\>AddObserver(vtkCommand::EndEvent, …

---

## [Selective display of some cells from a polydata](https://discourse.vtk.org/t/selective-display-of-some-cells-from-a-polydata/14365)

<div class="topic-metadata">

**Author:** [@YvesBailly](https://discourse.vtk.org/u/YvesBailly)\
**Replies:** 4\
**Last updated:** [August 12, 2024, 2:14pm UTC](https://discourse.vtk.org/t/selective-display-of-some-cells-from-a-polydata/14365 "2024-08-12T14:14:04Z")

</div>

Greetings, I create a set of vtkPolyLine, stored in a vtkCellArray, which is given to vtkPolyData::SetLines(). Then the polydata is set as input data to a vtkPolyDataMapper. By default, all cells (all polylines) are d…

---

## [Texture buffer size error](https://discourse.vtk.org/t/texture-buffer-size-error/8484)

<div class="topic-metadata">

**Author:** [@brandonfosso](https://discourse.vtk.org/u/brandonfosso)\
**Replies:** 11\
**Last updated:** [August 10, 2024, 4:51pm UTC](https://discourse.vtk.org/t/texture-buffer-size-error/8484 "2024-08-10T16:51:23Z")

</div>

Hey VTK community, Ubuntu:18.04 python: 3.9.12 vtk: 9.1.0 I am rendering a large mesh and am getting the following error: vtkTextureObject.cxx:1025 ERR| vtkTextureObject (0x55c39d370ab0): Attempt to use a texture …

---

## [Is it possible to use the vtkDataAssemblyVisitor pattern from Python?](https://discourse.vtk.org/t/is-it-possible-to-use-the-vtkdataassemblyvisitor-pattern-from-python/14352)

<div class="topic-metadata">

**Author:** [@scotsman60](https://discourse.vtk.org/u/scotsman60)\
**Replies:** 4\
**Last updated:** [August 9, 2024, 10:50pm UTC](https://discourse.vtk.org/t/is-it-possible-to-use-the-vtkdataassemblyvisitor-pattern-from-python/14352 "2024-08-09T22:50:45Z")

</div>

Hello!!! I’m working on vtkPartitionedDataSetCollections in Python and I’m trying to use the vtkDataAssemblyVisitor to traverse the associated assembly. However, when I try to create my specialized Python class (shown …

---

## [Is ipyvtklink still maintained?](https://discourse.vtk.org/t/is-ipyvtklink-still-maintained/14305)

<div class="topic-metadata">

**Author:** [@rexthor](https://discourse.vtk.org/u/rexthor)\
**Replies:** 14\
**Last updated:** [August 7, 2024, 4:32pm UTC](https://discourse.vtk.org/t/is-ipyvtklink-still-maintained/14305 "2024-08-07T16:32:11Z")

</div>

Is ipyvtklink still maintained? I ran into an issue which was exactly this issue. ipyvtklink.\_\_version\_\_ # is 0.2.3 vtk.\_\_version\_\_ # is 9.3.1 \[rexthor@dogbearer geometry\]$ jupyter --version Selected Jupyter core packa…

---

## [OpenGL Stencil](https://discourse.vtk.org/t/opengl-stencil/14272)

<div class="topic-metadata">

**Author:** [@Olivier](https://discourse.vtk.org/u/Olivier)\
**Replies:** 8\
**Last updated:** [August 6, 2024, 6:53am UTC](https://discourse.vtk.org/t/opengl-stencil/14272 "2024-08-06T06:53:41Z")

</div>

Hi Friends, I want to use very basic Stencil tests in a VTK application. I’m using VTK 9.2.2 under Windows, OpenGL backend. All is done inside vtkContext2D (scene, actor), with RenderWindow.StencilCapableOn(). Code i…

---

## [How to extract the contour line?](https://discourse.vtk.org/t/how-to-extract-the-contour-line/14349)

<div class="topic-metadata">

**Author:** [@wyl](https://discourse.vtk.org/u/wyl)\
**Replies:** 2\
**Last updated:** [August 5, 2024, 12:11pm UTC](https://discourse.vtk.org/t/how-to-extract-the-contour-line/14349 "2024-08-05T12:11:51Z")

</div>

I am a beginner. I encountered some issues during the use of VTK. The task is to use a plane to cut an object and extract the contour line of the cut. The cutting has been completed.

---

## [How to handle interactions with vtkPlaybackWidget?](https://discourse.vtk.org/t/how-to-handle-interactions-with-vtkplaybackwidget/14343)

<div class="topic-metadata">

**Author:** [@fraseyboo](https://discourse.vtk.org/u/fraseyboo)\
**Replies:** 4\
**Last updated:** [August 2, 2024, 11:45am UTC](https://discourse.vtk.org/t/how-to-handle-interactions-with-vtkplaybackwidget/14343 "2024-08-02T11:45:22Z")

</div>

So I’m trying to use vtkPlaybackWidget to control animation in a scene, the widget is fairly obscure and I can’t find much documentation on its use. It looks like its representation vtkPlaybackRepresentation is intended …

---

## [Ho to check for left button single click event vs click and drag event](https://discourse.vtk.org/t/ho-to-check-for-left-button-single-click-event-vs-click-and-drag-event/3629)

<div class="topic-metadata">

**Author:** [@dwventer](https://discourse.vtk.org/u/dwventer)\
**Replies:** 6\
**Last updated:** [July 31, 2024, 6:53pm UTC](https://discourse.vtk.org/t/ho-to-check-for-left-button-single-click-event-vs-click-and-drag-event/3629 "2024-07-31T18:53:22Z")

</div>

I have a view with a vtkInteractorStyleTrackballCamera interactor. When you drag the mouse (left click and drag) it rotates the object. This is good. Now I want to return the mouse coordinates when the user does a single…

---

## [Unexpected behavoir of FindCellsWithinBounds.](https://discourse.vtk.org/t/unexpected-behavoir-of-findcellswithinbounds/1805)

<div class="topic-metadata">

**Author:** [@Jason](https://discourse.vtk.org/u/Jason)\
**Replies:** 3\
**Last updated:** [July 31, 2024, 6:04pm UTC](https://discourse.vtk.org/t/unexpected-behavoir-of-findcellswithinbounds/1805 "2024-07-31T18:04:01Z")

</div>

It seems that when the cell size is similar to or larger than one of the dimensions of the bounds, FindCellsWithBounds for the various cell locators returns cells that are outside the bounds. Is this expected behavior, a…

---

## [Selectively setting parts of image transperent for vtkImageActor in 3D scene](https://discourse.vtk.org/t/selectively-setting-parts-of-image-transperent-for-vtkimageactor-in-3d-scene/14314)

<div class="topic-metadata">

**Author:** [@vipulraikar](https://discourse.vtk.org/u/vipulraikar)\
**Replies:** 4\
**Last updated:** [July 31, 2024, 3:25pm UTC](https://discourse.vtk.org/t/selectively-setting-parts-of-image-transperent-for-vtkimageactor-in-3d-scene/14314 "2024-07-31T15:25:58Z")

</div>

Hi All, I am looking for some pointers. Please see the included illustration for my problem statement. I have an image that is rendered as a vtkImageActor in a 3D scene. The image data \[0-255\] is inside a know geome…

---

## [Question about BozoShader example](https://discourse.vtk.org/t/question-about-bozoshader-example/14324)

<div class="topic-metadata">

**Author:** [@whereismymoney](https://discourse.vtk.org/u/whereismymoney)\
**Replies:** 1\
**Last updated:** [July 30, 2024, 10:47pm UTC](https://discourse.vtk.org/t/question-about-bozoshader-example/14324 "2024-07-30T22:47:14Z")

</div>

The VTK BozoShader example, https://examples.vtk.org/site/Cxx/Shaders/BozoShader, is another truly excellent example, and I am studying it with great interest. I would like to add one line actor-\>GetProperty()-\>EdgeVisi…

---

## [using VTK to get a 3D .obj file from DICOM files](https://discourse.vtk.org/t/using-vtk-to-get-a-3d-obj-file-from-dicom-files/14318)

<div class="topic-metadata">

**Author:** [@SaneSoup](https://discourse.vtk.org/u/SaneSoup)\
**Replies:** 2\
**Last updated:** [July 30, 2024, 6:24pm UTC](https://discourse.vtk.org/t/using-vtk-to-get-a-3d-obj-file-from-dicom-files/14318 "2024-07-30T18:24:25Z")

</div>

Hello everyone, my goal is it to have a python code that reads DICOM files and then turns them into a 3D .obj file, the problem is that I don’t know how the values of vtkMarchingCubes work because I can’t seem to get al…

---

## [vtkCleanPolyData much slower with Doubles than Floats](https://discourse.vtk.org/t/vtkcleanpolydata-much-slower-with-doubles-than-floats/14303)

<div class="topic-metadata">

**Author:** [@mtzeth](https://discourse.vtk.org/u/mtzeth)\
**Replies:** 5\
**Last updated:** [July 30, 2024, 12:16pm UTC](https://discourse.vtk.org/t/vtkcleanpolydata-much-slower-with-doubles-than-floats/14303 "2024-07-30T12:16:41Z")

</div>

I was stuck trying to figure out why my code was running 5-6 times slower between my python project and my cpp project, and it turns out that it was because I was creating my vtkPolyData with a double data array instead …

---

## [RenderPointsAsSpheresOn vertice doesn't show](https://discourse.vtk.org/t/renderpointsassphereson-vertice-doesnt-show/13455)

<div class="topic-metadata">

**Author:** [@Flagada](https://discourse.vtk.org/u/Flagada)\
**Replies:** 11\
**Last updated:** [July 30, 2024, 8:01am UTC](https://discourse.vtk.org/t/renderpointsassphereson-vertice-doesnt-show/13455 "2024-07-30T08:01:08Z")

</div>

Hi all I am facing a problem on a new computer. In my application I highlight the node selection using a dedicated actor where I put : GetProperty().SetPointSize(10.0) and GetProperty().RenderPointsAsSpheresOn() Bu…

---

## [MRP Orientation and setting camera roll issue](https://discourse.vtk.org/t/mrp-orientation-and-setting-camera-roll-issue/13117)

<div class="topic-metadata">

**Author:** [@vipulraikar](https://discourse.vtk.org/u/vipulraikar)\
**Replies:** 9\
**Last updated:** [July 29, 2024, 1:49pm UTC](https://discourse.vtk.org/t/mrp-orientation-and-setting-camera-roll-issue/13117 "2024-07-29T13:49:43Z")

</div>

Hi All, I am trying to see if I can get some help resolving an issue I am facing concerning MPR slice view orientation. I am slicing real-time ultrasound data coming in from the scanner. The slicing view follows the XY …

---

## [What is the best way to use Python VTK?](https://discourse.vtk.org/t/what-is-the-best-way-to-use-python-vtk/14308)

<div class="topic-metadata">

**Author:** [@risinyoung](https://discourse.vtk.org/u/risinyoung)\
**Replies:** 5\
**Last updated:** [July 29, 2024, 1:04pm UTC](https://discourse.vtk.org/t/what-is-the-best-way-to-use-python-vtk/14308 "2024-07-29T13:04:43Z")

</div>

If ask gpt, it tells me to import vtk like import vtk cube = vtk.vtkCubeSource() but on vtk example, most cases use vtkmodule like import vtkmodules.vtkInteractionStyle import vtkmodules.vtkRenderingOpenGL2 from vtkmo…

---

## [How to change the color of the triangle according to the orientation of the camera and the normal vector of the triangle](https://discourse.vtk.org/t/how-to-change-the-color-of-the-triangle-according-to-the-orientation-of-the-camera-and-the-normal-vector-of-the-triangle/14253)

<div class="topic-metadata">

**Author:** [@yangyang117](https://discourse.vtk.org/u/yangyang117)\
**Replies:** 5\
**Last updated:** [July 29, 2024, 6:17am UTC](https://discourse.vtk.org/t/how-to-change-the-color-of-the-triangle-according-to-the-orientation-of-the-camera-and-the-normal-vector-of-the-triangle/14253 "2024-07-29T06:17:22Z")

</div>

Hello, I am looking for a way to change the display color of the triangular patch based on its normal vector and camera orientation, as shown in the following picture. If the normal vector is facing the camera, it is dis…

---

## [How to create surface between two closed lines?](https://discourse.vtk.org/t/how-to-create-surface-between-two-closed-lines/14258)

<div class="topic-metadata">

**Author:** [@bassfaye](https://discourse.vtk.org/u/bassfaye)\
**Replies:** 2\
**Last updated:** [July 26, 2024, 7:33am UTC](https://discourse.vtk.org/t/how-to-create-surface-between-two-closed-lines/14258 "2024-07-26T07:33:51Z")

</div>

Hello, I have two closed lines like ellipsoids. I want to join them by creating a surface between them. Final mesh must be like a truncated cone but bases are the two previous closed lines. How can I proceed? Thanks i…

---

## [SnapShot issues when using vtkPNGWriter](https://discourse.vtk.org/t/snapshot-issues-when-using-vtkpngwriter/14292)

<div class="topic-metadata">

**Author:** [@chu](https://discourse.vtk.org/u/chu)\
**Replies:** 0\
**Last updated:** [July 25, 2024, 2:04am UTC](https://discourse.vtk.org/t/snapshot-issues-when-using-vtkpngwriter/14292 "2024-07-25T02:04:35Z")

</div>

I am integrating QML and VTK using QQuickVTKItem. When trying to capture the screen as shown below, only a gray image is saved. When calling renderLargeImage-\>Update(), the following warning appears: Warning: In vtk…

---

## [JavaVTK Example Android Black Screen](https://discourse.vtk.org/t/javavtk-example-android-black-screen/13730)

<div class="topic-metadata">

**Author:** [@Don\_Zenk](https://discourse.vtk.org/u/Don_Zenk)\
**Replies:** 14\
**Last updated:** [July 24, 2024, 9:17am UTC](https://discourse.vtk.org/t/javavtk-example-android-black-screen/13730 "2024-07-24T09:17:56Z")

</div>

Hi, I tested the JavaVTK example with 8.2 and it works as expected while I got black screen with 9.3 and also with the latest master. VTK was build with the NDK version 25.1.8937393, ABI arm64-v8a, API 27, toolchain 25.…

---

## [Why the boolean operation is failed, saying there isn't an overlap](https://discourse.vtk.org/t/why-the-boolean-operation-is-failed-saying-there-isnt-an-overlap/14279)

<div class="topic-metadata">

**Author:** [@Hsien-kang\_Liu](https://discourse.vtk.org/u/Hsien-kang_Liu)\
**Replies:** 1\
**Last updated:** [July 23, 2024, 3:00pm UTC](https://discourse.vtk.org/t/why-the-boolean-operation-is-failed-saying-there-isnt-an-overlap/14279 "2024-07-23T15:00:23Z")

</div>

I want to subtract a cylinder from the cone to form a frustrum, it always shows “ERR| vtkDistancePolyDataFilter (0000019EC3064A90): No points/cells to operate on” but they’re indeed overlapped Code below: Create the up…

---

## [Problem with VTK examples not building](https://discourse.vtk.org/t/problem-with-vtk-examples-not-building/14273)

<div class="topic-metadata">

**Author:** [@Gib\_Bogle](https://discourse.vtk.org/u/Gib_Bogle)\
**Replies:** 5\
**Last updated:** [July 23, 2024, 7:49am UTC](https://discourse.vtk.org/t/problem-with-vtk-examples-not-building/14273 "2024-07-23T07:49:54Z")

</div>

Hi all. After failing to build VTK 8.2.0 with Qt5.12.12, I decided to build it without Qt. This went without errors. But I am puzzled by one thing. I selected BUILD\_EXAMPLES, but as far as I can see no examples were …

---

## [vtkImageResliceMapper DICOM image slice disappears when zoomed in enough](https://discourse.vtk.org/t/vtkimagereslicemapper-dicom-image-slice-disappears-when-zoomed-in-enough/14276)

<div class="topic-metadata">

**Author:** [@jvokac](https://discourse.vtk.org/u/jvokac)\
**Replies:** 2\
**Last updated:** [July 23, 2024, 6:36am UTC](https://discourse.vtk.org/t/vtkimagereslicemapper-dicom-image-slice-disappears-when-zoomed-in-enough/14276 "2024-07-23T06:36:35Z")

</div>

Hi! Our company has been making a piece of software with VTK for some time now and we’ve been using the vtkImageResliceMapper class to display DICOM CT images ( vtkImageData ). I came across an issue when zooming into t…

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

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