# Support

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

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

**Page:** 60

---

## [vtkOBJReader - use material string break reader handling of UV](https://discourse.vtk.org/t/vtkobjreader-use-material-string-break-reader-handling-of-uv/10276)

<div class="topic-metadata">

**Author:** [@Nicholas\_Yue](https://discourse.vtk.org/u/Nicholas_Yue)\
**Replies:** 0\
**Last updated:** [December 20, 2022, 10:42pm UTC](https://discourse.vtk.org/t/vtkobjreader-use-material-string-break-reader-handling-of-uv/10276 "2022-12-20T22:42:14Z")

</div>

I have noticed OBJ with the following types of string in them will break the OBJ reader mtllib mesh.mtl usemtl material0000 usemtl material0001 usemtl material0002 usemtl material0003 usemtl material0004 The points pos…

---

## [Get the data from vtkAlgorithmOutput](https://discourse.vtk.org/t/get-the-data-from-vtkalgorithmoutput/10252)

<div class="topic-metadata">

**Author:** [@Neo](https://discourse.vtk.org/u/Neo)\
**Replies:** 3\
**Last updated:** [December 20, 2022, 8:16pm UTC](https://discourse.vtk.org/t/get-the-data-from-vtkalgorithmoutput/10252 "2022-12-20T20:16:52Z")

</div>

I applied the marching cubes algorithm on a volume. The output is a vtkAlgorithmOutput (output\_port variable) as shown by the following code. I want to extract the actual points (locations inside the volume coordinates) …

---

## [Hierarchical Mouse Events](https://discourse.vtk.org/t/hierarchical-mouse-events/10189)

<div class="topic-metadata">

**Author:** [@llobera](https://discourse.vtk.org/u/llobera)\
**Replies:** 4\
**Last updated:** [December 20, 2022, 2:25pm UTC](https://discourse.vtk.org/t/hierarchical-mouse-events/10189 "2022-12-20T14:25:52Z")

</div>

This is probably a simple question but I have not been able to figure it out. I want to be able to implement implement a hierarchical processing of mouse events. For instance, I would like to be able to press on the mid…

---

## [vtkDynamic2DLabelMapper and vtkChartXY](https://discourse.vtk.org/t/vtkdynamic2dlabelmapper-and-vtkchartxy/10275)

<div class="topic-metadata">

**Author:** [@manatee](https://discourse.vtk.org/u/manatee)\
**Replies:** 0\
**Last updated:** [December 20, 2022, 1:54pm UTC](https://discourse.vtk.org/t/vtkdynamic2dlabelmapper-and-vtkchartxy/10275 "2022-12-20T13:54:48Z")

</div>

Hi all, how do you use labels (e.g. vtkDynamic2DLabelMapper) in vtkChartXY? I can render them, but they’re at the wrong positions. Do I need to apply a coordinate system or a transformation first? If so, how is it done…

---

## [Qt + VTK RenderWindow ghosting](https://discourse.vtk.org/t/qt-vtk-renderwindow-ghosting/10250)

<div class="topic-metadata">

**Author:** [@Justin\_Weber](https://discourse.vtk.org/u/Justin_Weber)\
**Replies:** 1\
**Last updated:** [December 20, 2022, 11:28am UTC](https://discourse.vtk.org/t/qt-vtk-renderwindow-ghosting/10250 "2022-12-20T11:28:01Z")

</div>

We are having issues with ghosting when another widget is visible on top of the render window. Specifically, we have QVTKRenderWindowInteractor widgets in tabs. When you go to a different tab, then back to a tab with the…

---

## [vtkActor.SetColor do not work for vtkContourFilter](https://discourse.vtk.org/t/vtkactor-setcolor-do-not-work-for-vtkcontourfilter/10238)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 4\
**Last updated:** [December 19, 2022, 9:00am UTC](https://discourse.vtk.org/t/vtkactor-setcolor-do-not-work-for-vtkcontourfilter/10238 "2022-12-19T09:00:49Z")

</div>

I have a binary mask, and I want to display the isoface. The special mask is zero for all pixel except that the intensity is one for two slice, for example import vtkmodules.all as vtk img = vtk.vtkImageData() img.Se…

---

## [Is it possible to use VTK9 with qt6 QRhi and QML ?](https://discourse.vtk.org/t/is-it-possible-to-use-vtk9-with-qt6-qrhi-and-qml/6946)

<div class="topic-metadata">

**Author:** [@Julienchz](https://discourse.vtk.org/u/Julienchz)\
**Replies:** 1\
**Last updated:** [December 16, 2022, 5:07pm UTC](https://discourse.vtk.org/t/is-it-possible-to-use-vtk9-with-qt6-qrhi-and-qml/6946 "2022-12-16T17:07:53Z")

</div>

Hello everyone, I would like to make a small 3D viewer with VTK 9 in Qt6 with QML. I know that it is now possible to use the QRhi class to have an abstraction with classic APIs. Can this be used with VTK? There are very…

---

## [How to use the ImplicitPlaneWidget2 inside QML?](https://discourse.vtk.org/t/how-to-use-the-implicitplanewidget2-inside-qml/2536)

<div class="topic-metadata">

**Author:** [@Synfony](https://discourse.vtk.org/u/Synfony)\
**Replies:** 4\
**Last updated:** [December 16, 2022, 5:04pm UTC](https://discourse.vtk.org/t/how-to-use-the-implicitplanewidget2-inside-qml/2536 "2022-12-16T17:04:53Z")

</div>

Hi, I am using VTK render window inside a QML item (i.e. in a QtQuick application). Rendering is working fine for the ImplicitPlaneWidget2 as well as mouse interaction like mouse wheel, camera rotate etc. But I can’t e…

---

## [select Self intersecting face in vtk](https://discourse.vtk.org/t/select-self-intersecting-face-in-vtk/10200)

<div class="topic-metadata">

**Author:** [@hye00525](https://discourse.vtk.org/u/hye00525)\
**Replies:** 2\
**Last updated:** [December 16, 2022, 8:58am UTC](https://discourse.vtk.org/t/select-self-intersecting-face-in-vtk/10200 "2022-12-16T08:58:30Z")

</div>

Hello, I would like to check the presence or absence of self intersecting face in stl mesh using vtk. Is there a filter that can do this? Thank you. I look forward to your reply.

---

## [How to create dual-colored sphere](https://discourse.vtk.org/t/how-to-create-dual-colored-sphere/10215)

<div class="topic-metadata">

**Author:** [@abstracted](https://discourse.vtk.org/u/abstracted)\
**Replies:** 1\
**Last updated:** [December 15, 2022, 11:15pm UTC](https://discourse.vtk.org/t/how-to-create-dual-colored-sphere/10215 "2022-12-15T23:15:07Z")

</div>

Hello all, I’d like to create partially colored spheres which always face the camera. Partially colored means exactly 2 colors, and the fraction of 1 color to another varies based on the context. The sphere can be colore…

---

## [Merge connected coplanar faces](https://discourse.vtk.org/t/merge-connected-coplanar-faces/10196)

<div class="topic-metadata">

**Author:** [@Tim\_Hutton](https://discourse.vtk.org/u/Tim_Hutton)\
**Replies:** 4\
**Last updated:** [December 15, 2022, 5:05pm UTC](https://discourse.vtk.org/t/merge-connected-coplanar-faces/10196 "2022-12-15T17:05:16Z")

</div>

Is there a filter in VTK to merge connected coplanar faces? Example image showing a case where a cube has triangulated faces. The desired output has square faces. Thanks, Tim

---

## [Named Selection in VTK](https://discourse.vtk.org/t/named-selection-in-vtk/10180)

<div class="topic-metadata">

**Author:** [@MicK7](https://discourse.vtk.org/u/MicK7)\
**Replies:** 1\
**Last updated:** [December 14, 2022, 11:47pm UTC](https://discourse.vtk.org/t/named-selection-in-vtk/10180 "2022-12-14T23:47:08Z")

</div>

Hello, I have seen that conduit has a nice Explicit Selection protocol (Partitioning — Conduit 0.8.4 documentation). Is there a way to generate a kind of VTK object to represent an Explicit Selection (meaning block id +…

---

## [How can I generate the same Meniscus model?](https://discourse.vtk.org/t/how-can-i-generate-the-same-meniscus-model/10164)

<div class="topic-metadata">

**Author:** [@wyc7894512](https://discourse.vtk.org/u/wyc7894512)\
**Replies:** 1\
**Last updated:** [December 14, 2022, 3:53pm UTC](https://discourse.vtk.org/t/how-can-i-generate-the-same-meniscus-model/10164 "2022-12-14T15:53:11Z")

</div>

Hello, I split the meniscus from MRI and input it, but this result is not what I expected. I would like to generate a model similar to the real meniscus. I attach the snippet code. Please, could you help me to find a s…

---

## [Repeated interpolation between static unstructured grids](https://discourse.vtk.org/t/repeated-interpolation-between-static-unstructured-grids/10192)

<div class="topic-metadata">

**Author:** [@lv-426](https://discourse.vtk.org/u/lv-426)\
**Replies:** 0\
**Last updated:** [December 14, 2022, 2:01pm UTC](https://discourse.vtk.org/t/repeated-interpolation-between-static-unstructured-grids/10192 "2022-12-14T14:01:50Z")

</div>

Hello, I am interpolating from an unstructured fine grid 1 to an unstructured coarse grid 2 many times over with changing data (both grids stay the same). I am wondering if it is possible to speed up the process so that…

---

## [Wrong parameters in exported MTL](https://discourse.vtk.org/t/wrong-parameters-in-exported-mtl/10185)

<div class="topic-metadata">

**Author:** [@ARI31](https://discourse.vtk.org/u/ARI31)\
**Replies:** 0\
**Last updated:** [December 14, 2022, 8:08am UTC](https://discourse.vtk.org/t/wrong-parameters-in-exported-mtl/10185 "2022-12-14T08:08:45Z")

</div>

Hello, I am using VTK 9.2 (from pip) to generate height maps for robotics simulators, but I run into some issues when trying to display them in the simulators (Gazebo 9, and Isaac Sim). What’s happening is that the “Ka”…

---

## [vtkPolyData : add attribute/annotation](https://discourse.vtk.org/t/vtkpolydata-add-attribute-annotation/10148)

<div class="topic-metadata">

**Author:** [@Nicholas\_Yue](https://discourse.vtk.org/u/Nicholas_Yue)\
**Replies:** 2\
**Last updated:** [December 14, 2022, 6:33am UTC](https://discourse.vtk.org/t/vtkpolydata-add-attribute-annotation/10148 "2022-12-14T06:33:13Z")

</div>

Hi, I wish to record some meta data regarding the source information that goes into the creation of a given vtkPolyData (for versioning/history/tracking purpose) Is there some way to add such sting/integer information …

---

## [Editing \*vtu files which are part of \*pvtu and saving them](https://discourse.vtk.org/t/editing-vtu-files-which-are-part-of-pvtu-and-saving-them/10177)

<div class="topic-metadata">

**Author:** [@rnp](https://discourse.vtk.org/u/rnp)\
**Replies:** 0\
**Last updated:** [December 13, 2022, 4:54pm UTC](https://discourse.vtk.org/t/editing-vtu-files-which-are-part-of-pvtu-and-saving-them/10177 "2022-12-13T16:54:33Z")

</div>

Hello, I am new to using this library. I have a bunch of \*vtu files which are part of \*pvtu generated from deal.ii. I want to make some changes to the point-data present - delete a few variables and add a few more manu…

---

## [append new scalar field to existing vtk file](https://discourse.vtk.org/t/append-new-scalar-field-to-existing-vtk-file/10175)

<div class="topic-metadata">

**Author:** [@garcfd](https://discourse.vtk.org/u/garcfd)\
**Replies:** 0\
**Last updated:** [December 13, 2022, 12:34pm UTC](https://discourse.vtk.org/t/append-new-scalar-field-to-existing-vtk-file/10175 "2022-12-13T12:34:50Z")

</div>

I want to get started with python vtk, by reading an vtk file (slice) and then add a new scalar field to the existing velocity magnitude field, and then write out the new modified vtk file (ideally with an image file too…

---

## [vtkVoronoi2D doesn't work with simple cube](https://discourse.vtk.org/t/vtkvoronoi2d-doesnt-work-with-simple-cube/10169)

<div class="topic-metadata">

**Author:** [@AndreAhmed](https://discourse.vtk.org/u/AndreAhmed)\
**Replies:** 1\
**Last updated:** [December 13, 2022, 2:09am UTC](https://discourse.vtk.org/t/vtkvoronoi2d-doesnt-work-with-simple-cube/10169 "2022-12-13T02:09:10Z")

</div>

Hello, I’m reading an obj file “cube” which is a simple cube, and would like to project voronoi diagram on it. I’ve tried the following code, but it either crashes, or it stays in infinite loop. Kindly find the attach…

---

## [VTK9.2.2 Python Cylinder example will not run on Ubuntu from fresh conda (or pip) install](https://discourse.vtk.org/t/vtk9-2-2-python-cylinder-example-will-not-run-on-ubuntu-from-fresh-conda-or-pip-install/10085)

<div class="topic-metadata">

**Author:** [@connorferster](https://discourse.vtk.org/u/connorferster)\
**Replies:** 7\
**Last updated:** [December 13, 2022, 12:52am UTC](https://discourse.vtk.org/t/vtk9-2-2-python-cylinder-example-will-not-run-on-ubuntu-from-fresh-conda-or-pip-install/10085 "2022-12-13T00:52:58Z")

</div>

Hi there! I am trying to get vtk to run and I am getting the following error on the Python Cylinder (“hello world”) example. libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris\_dri.so: cannot open shared o…

---

## [Python: Reading, Calculate, Write Out](https://discourse.vtk.org/t/python-reading-calculate-write-out/1138)

<div class="topic-metadata">

**Author:** [@Horus](https://discourse.vtk.org/u/Horus)\
**Replies:** 6\
**Last updated:** [December 12, 2022, 5:57pm UTC](https://discourse.vtk.org/t/python-reading-calculate-write-out/1138 "2022-12-12T17:57:25Z")

</div>

Hello, I want to read in a VTK file, evaluate some function on it and write the file back, including the function result. All that, using the Python VTK interface. So far I got: from vtk import \* reader = vtkDataSetR…

---

## [Vtk point cloud display multiple points (cluster)](https://discourse.vtk.org/t/vtk-point-cloud-display-multiple-points-cluster/10162)

<div class="topic-metadata">

**Author:** [@nikhilmakkar2345](https://discourse.vtk.org/u/nikhilmakkar2345)\
**Replies:** 2\
**Last updated:** [December 12, 2022, 4:53pm UTC](https://discourse.vtk.org/t/vtk-point-cloud-display-multiple-points-cluster/10162 "2022-12-12T16:53:42Z")

</div>

Cannot visualize the points around one of the selected points in point cloud. Not sure what I am missing. I used the below code. What it does is just takes a pointcloud and convert it into polydata and visualize it. Afte…

---

## [vtkImageMathematics as a pipeline?](https://discourse.vtk.org/t/vtkimagemathematics-as-a-pipeline/10154)

<div class="topic-metadata">

**Author:** [@XGDragon](https://discourse.vtk.org/u/XGDragon)\
**Replies:** 3\
**Last updated:** [December 12, 2022, 4:30pm UTC](https://discourse.vtk.org/t/vtkimagemathematics-as-a-pipeline/10154 "2022-12-12T16:30:11Z")

</div>

I have learned that using a.SetInputConnection(b.GetOutputPort()), you establish a pipeline connection such that when you b.Update(), it will also update a. For vtkImageMathematics, it appears there is no way to establi…

---

## [problem in: vtk Android Render Window Interactor](https://discourse.vtk.org/t/problem-in-vtk-android-render-window-interactor/10167)

<div class="topic-metadata">

**Author:** [@perphy](https://discourse.vtk.org/u/perphy)\
**Replies:** 0\
**Last updated:** [December 12, 2022, 4:14pm UTC](https://discourse.vtk.org/t/problem-in-vtk-android-render-window-interactor/10167 "2022-12-12T16:14:58Z")

</div>

Hi: I am using vtk9.2.2 to run the official android example https://gitlab.kitware.com/vtk/vtk/-/tree/master/Examples/Android/NativeVTK I meet an error in logcat I locate the source file that . How can I solve i…

---

## [Converting several splines into 3D Mesh](https://discourse.vtk.org/t/converting-several-splines-into-3d-mesh/10166)

<div class="topic-metadata">

**Author:** [@AndreAhmed](https://discourse.vtk.org/u/AndreAhmed)\
**Replies:** 1\
**Last updated:** [December 12, 2022, 1:54pm UTC](https://discourse.vtk.org/t/converting-several-splines-into-3d-mesh/10166 "2022-12-12T13:54:07Z")

</div>

Hello, I’m sorry if its a repeated question, but I have the following input and want to generate the output like that, does vtk support something like the following

---

## [points and texture coordinate in vtkPolyData vtkOBJReader ?](https://discourse.vtk.org/t/points-and-texture-coordinate-in-vtkpolydata-vtkobjreader/10058)

<div class="topic-metadata">

**Author:** [@Nicholas\_Yue](https://discourse.vtk.org/u/Nicholas_Yue)\
**Replies:** 4\
**Last updated:** [December 12, 2022, 8:15am UTC](https://discourse.vtk.org/t/points-and-texture-coordinate-in-vtkpolydata-vtkobjreader/10058 "2022-12-12T08:15:25Z")

</div>

I am reading in an OBJ file that has both points and texture coordinate information, I am reading them in via vtkOBJReader How should I go about extracting those information ? Should I go via Cell or Poly ? #include \<v…

---

## [vtkTextProperty / vtkPointSetToLabelHierarchy offset strange behavior](https://discourse.vtk.org/t/vtktextproperty-vtkpointsettolabelhierarchy-offset-strange-behavior/10092)

<div class="topic-metadata">

**Author:** [@CharInt0](https://discourse.vtk.org/u/CharInt0)\
**Replies:** 3\
**Last updated:** [December 12, 2022, 7:50am UTC](https://discourse.vtk.org/t/vtktextproperty-vtkpointsettolabelhierarchy-offset-strange-behavior/10092 "2022-12-12T07:50:12Z")

</div>

Hi, (VTK 9.2.2, C++ language) I am trying to position some labels near some points at a distance using the class vtkTextProperty and vtkPointSetToLabelHierarchy, but I am obtaining unexpected results. The vtkTextPrope…

---

## [How to evenly cut the pipe model through the method in VTK](https://discourse.vtk.org/t/how-to-evenly-cut-the-pipe-model-through-the-method-in-vtk/10156)

<div class="topic-metadata">

**Author:** [@Dwight98](https://discourse.vtk.org/u/Dwight98)\
**Replies:** 2\
**Last updated:** [December 12, 2022, 6:39am UTC](https://discourse.vtk.org/t/how-to-evenly-cut-the-pipe-model-through-the-method-in-vtk/10156 "2022-12-12T06:39:00Z")

</div>

I have a long OBJ model of a mine pipeline, but its direction is not regular in any of the x, y, or z axial directions，I used to use the bounding box to determine the direction of Plane’s cutting for him, but the cut out…

---

## [Color a cut plane over unstructured grid](https://discourse.vtk.org/t/color-a-cut-plane-over-unstructured-grid/10135)

<div class="topic-metadata">

**Author:** [@albert](https://discourse.vtk.org/u/albert)\
**Replies:** 1\
**Last updated:** [December 12, 2022, 3:56am UTC](https://discourse.vtk.org/t/color-a-cut-plane-over-unstructured-grid/10135 "2022-12-12T03:56:36Z")

</div>

Hi all. I have a doubt about how to use vtkCutter in my python script. My workflow is: taking an unstructured grid. filter it by a VtkThreshold over a scalar, named e.g. ‘A’ then plot a slice of the filtered-by-thres…

---

## [The problem in vtkInteractorStyleImage to set DICOM slice by mousewheel](https://discourse.vtk.org/t/the-problem-in-vtkinteractorstyleimage-to-set-dicom-slice-by-mousewheel/9732)

<div class="topic-metadata">

**Author:** [@a0980543469](https://discourse.vtk.org/u/a0980543469)\
**Replies:** 17\
**Last updated:** [December 11, 2022, 3:08pm UTC](https://discourse.vtk.org/t/the-problem-in-vtkinteractorstyleimage-to-set-dicom-slice-by-mousewheel/9732 "2022-12-11T15:08:36Z")

</div>

When I want to use vtkInteractorStyleImage to overide the mousewheel event, #1 New(); #2 vtkTypeMacro( ,); are show “doesn’t find the function definition” How can I do to solve it? use VTK 9.2.0rc2 VTK-DICOM QT …

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

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