# Latest

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

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

**Page:** 136

---

## [MatplotlibDeprecationWarning when render math equation](https://discourse.vtk.org/t/matplotlibdeprecationwarning-when-render-math-equation/8288)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 1\
**Last updated:** [April 13, 2022, 2:26pm UTC](https://discourse.vtk.org/t/matplotlibdeprecationwarning-when-render-math-equation/8288 "2022-04-13T14:26:05Z")

</div>

I want to render math equation in my application. The minimal code is: import vtkmodules.all as vtk text = vtk.vtkTextActor() text.SetInput('Cell1 | Cell2 | $\\\\sum\_{i=0}^\\\\infty x\_i$\\n12 | $\\\\sum\_{i=0}^\\\\infty x\_i$ | 2…

---

## [how to show a vtu file in unity？](https://discourse.vtk.org/t/how-to-show-a-vtu-file-in-unity/8291)

<div class="topic-metadata">

**Author:** [@chengchengjing](https://discourse.vtk.org/u/chengchengjing)\
**Replies:** 1\
**Last updated:** [April 13, 2022, 2:22pm UTC](https://discourse.vtk.org/t/how-to-show-a-vtu-file-in-unity/8291 "2022-04-13T14:22:37Z")

</div>

The topology supported by unity is shown in the figure. Therefore, if the vtu file contains hexahedrons, can it not be displayed in unity?

---

## [How to print superscript in vtkTextActor?](https://discourse.vtk.org/t/how-to-print-superscript-in-vtktextactor/8284)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 4\
**Last updated:** [April 13, 2022, 2:08am UTC](https://discourse.vtk.org/t/how-to-print-superscript-in-vtktextactor/8284 "2022-04-13T02:08:37Z")

</div>

How to print superscript in vtkTextActor? For example: for text.SetInput('mm^2'), I hope it show: import vtkmodules.all as vtk text = vtk.vtkTextActor() text.SetInput('mm^2') text.SetDisplayPosition(100, 100) proper…

---

## [unity mesh，vtu data](https://discourse.vtk.org/t/unity-mesh-vtu-data/8289)

<div class="topic-metadata">

**Author:** [@chengchengjing](https://discourse.vtk.org/u/chengchengjing)\
**Replies:** 0\
**Last updated:** [April 13, 2022, 7:45am UTC](https://discourse.vtk.org/t/unity-mesh-vtu-data/8289 "2022-04-13T07:45:04Z")

</div>

How to generate the corresponding unity mesh from the organizational structure of vtu data?

---

## [How to build VTK for Linux if you are a new user](https://discourse.vtk.org/t/how-to-build-vtk-for-linux-if-you-are-a-new-user/8256)

<div class="topic-metadata">

**Author:** [@amaclean](https://discourse.vtk.org/u/amaclean)\
**Replies:** 3\
**Last updated:** [April 13, 2022, 12:51am UTC](https://discourse.vtk.org/t/how-to-build-vtk-for-linux-if-you-are-a-new-user/8256 "2022-04-13T00:51:58Z")

</div>

These instructions will will lead you step by step through the process of setting up VTK in your home folder. They were developed on a recent version of Kubuntu (21.10) so you may need to modify parts of it for your own …

---

## [errors migrating vtk.js from release 20 to release 24](https://discourse.vtk.org/t/errors-migrating-vtk-js-from-release-20-to-release-24/8243)

<div class="topic-metadata">

**Author:** [@JohnSkinner](https://discourse.vtk.org/u/JohnSkinner)\
**Replies:** 3\
**Last updated:** [April 12, 2022, 7:54pm UTC](https://discourse.vtk.org/t/errors-migrating-vtk-js-from-release-20-to-release-24/8243 "2022-04-12T19:54:52Z")

</div>

I am using angular with vtk.js following the instructions at GitHub - floryst/vtk-js-angular-10: Example repo demonstrating vtk.js and Angular 10 to address customizing angular’s webpack usage to include vtk.js. It wo…

---

## [How to merge volume viewer with volume contour or imageCropFilter using vtk.js?](https://discourse.vtk.org/t/how-to-merge-volume-viewer-with-volume-contour-or-imagecropfilter-using-vtk-js/8265)

<div class="topic-metadata">

**Author:** [@nas38](https://discourse.vtk.org/u/nas38)\
**Replies:** 7\
**Last updated:** [April 12, 2022, 7:16pm UTC](https://discourse.vtk.org/t/how-to-merge-volume-viewer-with-volume-contour-or-imagecropfilter-using-vtk-js/8265 "2022-04-12T19:16:04Z")

</div>

I am trying to merge the volume viewer with volume contour and image crop filter. However, I am not getting the expected output. How to do that?

---

## [Error in production mode using Vite VueJS](https://discourse.vtk.org/t/error-in-production-mode-using-vite-vuejs/8010)

<div class="topic-metadata">

**Author:** [@micheleivani](https://discourse.vtk.org/u/micheleivani)\
**Replies:** 15\
**Last updated:** [April 12, 2022, 6:34pm UTC](https://discourse.vtk.org/t/error-in-production-mode-using-vite-vuejs/8010 "2022-04-12T18:34:10Z")

</div>

Hello, I’m testing the volume rendering feature by loading a .vti file inside the render window. The project is built with Vuejs Vite tools. When I test the app running yarn dev the volume is rendered correctly, but as …

---

## [Pass custom headers Vtk.js](https://discourse.vtk.org/t/pass-custom-headers-vtk-js/8275)

<div class="topic-metadata">

**Author:** [@eino](https://discourse.vtk.org/u/eino)\
**Replies:** 10\
**Last updated:** [April 12, 2022, 2:52pm UTC](https://discourse.vtk.org/t/pass-custom-headers-vtk-js/8275 "2022-04-12T14:52:27Z")

</div>

Hi, we are developing an application around vtk.js, wslink and paraview web. Our need implies for an application to send to the server a custom information on connection. The most straightforward would be to send this…

---

## [QVTKOpenGLNativeWidget crash when using Mesa](https://discourse.vtk.org/t/qvtkopenglnativewidget-crash-when-using-mesa/8283)

<div class="topic-metadata">

**Author:** [@andra](https://discourse.vtk.org/u/andra)\
**Replies:** 0\
**Last updated:** [April 12, 2022, 2:16pm UTC](https://discourse.vtk.org/t/qvtkopenglnativewidget-crash-when-using-mesa/8283 "2022-04-12T14:16:42Z")

</div>

Hello, I have a problem with QVTKOpenGLNativeWidget when using software rendering mode. The application crashes when widget-\>show() is called. I am using vtk 9.0.1 with Qt6 ( 6.2.4) and Mesa driver 22.0 (Releases · pal…

---

## [vtkCaptionActor2D cannot change the background color](https://discourse.vtk.org/t/vtkcaptionactor2d-cannot-change-the-background-color/8247)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 1\
**Last updated:** [April 12, 2022, 1:55pm UTC](https://discourse.vtk.org/t/vtkcaptionactor2d-cannot-change-the-background-color/8247 "2022-04-12T13:55:11Z")

</div>

I am using vtkCaptionActor2D in my project, and I can not specify its’ background color. The minimal code to reproduce my question is: import vtkmodules.all as vtk line = vtk.vtkLineSource() line.SetPoint1(0, 0, 0) li…

---

## [Volume mapper: Cell Scalars not supported error](https://discourse.vtk.org/t/volume-mapper-cell-scalars-not-supported-error/8106)

<div class="topic-metadata">

**Author:** [@Arni](https://discourse.vtk.org/u/Arni)\
**Replies:** 1\
**Last updated:** [April 12, 2022, 1:23pm UTC](https://discourse.vtk.org/t/volume-mapper-cell-scalars-not-supported-error/8106 "2022-04-12T13:23:26Z")

</div>

Hello, I am trying to render a volume from a vti file. The data should be a scalar field in 3D. I want regions of high value to be colored and opaque and regions of low value to be white and transparent. The first few li…

---

## [Another problem with vtkImageReslice in 2D](https://discourse.vtk.org/t/another-problem-with-vtkimagereslice-in-2d/8248)

<div class="topic-metadata">

**Author:** [@jamsoft](https://discourse.vtk.org/u/jamsoft)\
**Replies:** 1\
**Last updated:** [April 12, 2022, 1:16pm UTC](https://discourse.vtk.org/t/another-problem-with-vtkimagereslice-in-2d/8248 "2022-04-12T13:16:33Z")

</div>

Hi all, according to solution of my topic with 3D reslicing using vtkImageReslice and transformation matrix I can rotate the reslicing cube inside the vtkExtractVOI. You can see the topic here: https://discourse.vtk.or…

---

## [Save the vtkImageReslice 2D output to file](https://discourse.vtk.org/t/save-the-vtkimagereslice-2d-output-to-file/8281)

<div class="topic-metadata">

**Author:** [@jamsoft](https://discourse.vtk.org/u/jamsoft)\
**Replies:** 2\
**Last updated:** [April 12, 2022, 12:51pm UTC](https://discourse.vtk.org/t/save-the-vtkimagereslice-2d-output-to-file/8281 "2022-04-12T12:51:51Z")

</div>

Hello friends, I have the following problem with saving the vtkImageReslice output to file using vtkBMPWriter. The output of the vtkImageReslice in the vtkImageViewer2 looks good, as demonstrated in the following image…

---

## [convert .stl fomat to .vtk format (XML VTU format and legacy ASCII format)](https://discourse.vtk.org/t/convert-stl-fomat-to-vtk-format-xml-vtu-format-and-legacy-ascii-format/8280)

<div class="topic-metadata">

**Author:** [@hye00525](https://discourse.vtk.org/u/hye00525)\
**Replies:** 1\
**Last updated:** [April 12, 2022, 11:05am UTC](https://discourse.vtk.org/t/convert-stl-fomat-to-vtk-format-xml-vtu-format-and-legacy-ascii-format/8280 "2022-04-12T11:05:21Z")

</div>

Hello, I’m trying to visualize my .stl file using glvis library (for using mfem ) .stl format is not supported in mfem, so I tried converting it to .vtk format. (using the following code) vtkSmartPointer\<vtkSTLReader\>…

---

## [Could not Find HoloplayCore External Dependencies](https://discourse.vtk.org/t/could-not-find-holoplaycore-external-dependencies/8255)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.vtk.org/u/Freya_the_Goddess)\
**Replies:** 5\
**Last updated:** [April 12, 2022, 6:24am UTC](https://discourse.vtk.org/t/could-not-find-holoplaycore-external-dependencies/8255 "2022-04-12T06:24:11Z")

</div>

Dear all, I want to know how to solve this? I am building basic VTK-9.1.0 and it is working. Now I want to build again with more options, in ccmake I am enabling several VTK Modules: RenderingOpenVR PowerCrust Poisso…

---

## [VTK Competitor: Paraview?](https://discourse.vtk.org/t/vtk-competitor-paraview/8244)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.vtk.org/u/Freya_the_Goddess)\
**Replies:** 9\
**Last updated:** [April 11, 2022, 11:24pm UTC](https://discourse.vtk.org/t/vtk-competitor-paraview/8244 "2022-04-11T23:24:22Z")

</div>

Hi all, just want to be honest in front of you all end-users and developers. I have been having hard time to make VTK work when I want to build CylinderExample, here is my post about it: I want to test and play with…

---

## [Cylinder Example Cannot be Created by CMake](https://discourse.vtk.org/t/cylinder-example-cannot-be-created-by-cmake/8233)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.vtk.org/u/Freya_the_Goddess)\
**Replies:** 45\
**Last updated:** [April 11, 2022, 10:12pm UTC](https://discourse.vtk.org/t/cylinder-example-cannot-be-created-by-cmake/8233 "2022-04-11T22:12:23Z")

</div>

I have obtain VTK’s sources locally by: git clone --recursive https://gitlab.kitware.com/vtk/vtk.git then I enter the vtk folder and build it using CMake. A build folder is created then I want to test it by following t…

---

## [Detecting edge fillet/blend vertices on a triangular surface mesh](https://discourse.vtk.org/t/detecting-edge-fillet-blend-vertices-on-a-triangular-surface-mesh/8278)

<div class="topic-metadata">

**Author:** [@drathin4](https://discourse.vtk.org/u/drathin4)\
**Replies:** 0\
**Last updated:** [April 11, 2022, 5:39pm UTC](https://discourse.vtk.org/t/detecting-edge-fillet-blend-vertices-on-a-triangular-surface-mesh/8278 "2022-04-11T17:39:42Z")

</div>

I want to detect the vertices of an edge fillet/blend of an STL file. This fillet/blend edge forms the border of the top face of a closed surface triangular mesh. I tried using the class vtkCurvature where I experimented…

---

## [Wrapping VTK in an inline namespace](https://discourse.vtk.org/t/wrapping-vtk-in-an-inline-namespace/8072)

<div class="topic-metadata">

**Author:** [@Ryan\_Krattiger](https://discourse.vtk.org/u/Ryan_Krattiger)\
**Replies:** 16\
**Last updated:** [April 11, 2022, 5:07pm UTC](https://discourse.vtk.org/t/wrapping-vtk-in-an-inline-namespace/8072 "2022-04-11T17:07:18Z")

</div>

Motivation The motivation for this change is to allow applications to link multiple major versions of VTK into the same application. A simple example of this could be an application A depends on library B and VTK 9, and…

---

## [polyhedral cell](https://discourse.vtk.org/t/polyhedral-cell/8237)

<div class="topic-metadata">

**Author:** [@garcfd](https://discourse.vtk.org/u/garcfd)\
**Replies:** 3\
**Last updated:** [April 11, 2022, 3:27pm UTC](https://discourse.vtk.org/t/polyhedral-cell/8237 "2022-04-11T15:27:02Z")

</div>

I’ve got this single polyhedral cell, in the ascii vtk file (see image), Im confused why it says CELLS “2” 38 (when there is just one cell)? I guess the connectivity data is all 7 faces of the polyhedral cell. Also is…

---

## [Issue compiling software](https://discourse.vtk.org/t/issue-compiling-software/8258)

<div class="topic-metadata">

**Author:** [@DomUoA](https://discourse.vtk.org/u/DomUoA)\
**Replies:** 2\
**Last updated:** [April 11, 2022, 1:36pm UTC](https://discourse.vtk.org/t/issue-compiling-software/8258 "2022-04-11T13:36:05Z")

</div>

Hi there, I am installing some software (compucell3d) using cmake and make. This sotware requires vtk. I have installed vtk 9.1 onto my linux machine. I am getting the following error: The “vtkpythonutil.h” header f…

---

## [How to identify limbs from a 3D image of a human body](https://discourse.vtk.org/t/how-to-identify-limbs-from-a-3d-image-of-a-human-body/8208)

<div class="topic-metadata">

**Author:** [@dwventer](https://discourse.vtk.org/u/dwventer)\
**Replies:** 3\
**Last updated:** [April 11, 2022, 1:32pm UTC](https://discourse.vtk.org/t/how-to-identify-limbs-from-a-3d-image-of-a-human-body/8208 "2022-04-11T13:32:51Z")

</div>

Hi, I’m working on 3D scans of the human body and I need to identify the limbs. For example, I need to compare measurements of the left (or right) arm from scans taken from the same person over a period of time. The per…

---

## [vtkVortexCore is running very slow](https://discourse.vtk.org/t/vtkvortexcore-is-running-very-slow/8242)

<div class="topic-metadata">

**Author:** [@adeelz92](https://discourse.vtk.org/u/adeelz92)\
**Replies:** 2\
**Last updated:** [April 11, 2022, 8:34am UTC](https://discourse.vtk.org/t/vtkvortexcore-is-running-very-slow/8242 "2022-04-11T08:34:52Z")

</div>

vtkVortexCore in C++ is running very very slow . It takes around 30 minuntes to get the results. The same code works fine in vtk-python installed with pip. The version for both python and C++ is same, 9.1. vtkNew\<vtkVo…

---

## [How to read file in MedicalDemo1](https://discourse.vtk.org/t/how-to-read-file-in-medicaldemo1/7735)

<div class="topic-metadata">

**Author:** [@perphy](https://discourse.vtk.org/u/perphy)\
**Replies:** 6\
**Last updated:** [April 11, 2022, 1:52am UTC](https://discourse.vtk.org/t/how-to-read-file-in-medicaldemo1/7735 "2022-04-11T01:52:58Z")

</div>

Hi, I am a new guy in vtk. I am trying to run vtk example in textbook MedicalDemo1. I do not know hot to load the source file - FullHead - into the program. I see the format of FullHead is plain text. I noticed that…

---

## [vtkActor SetDiffuseColor bug](https://discourse.vtk.org/t/vtkactor-setdiffusecolor-bug/8254)

<div class="topic-metadata">

**Author:** [@BlueKnight7](https://discourse.vtk.org/u/BlueKnight7)\
**Replies:** 1\
**Last updated:** [April 11, 2022, 12:19am UTC](https://discourse.vtk.org/t/vtkactor-setdiffusecolor-bug/8254 "2022-04-11T00:19:13Z")

</div>

I’ve taken the ImplicitBoolean example and “merged” it with the SolidClip example. From the SolidClip example there are 2 parts to the clipping: a clip away portion and a portion that stays – using a vktClipPolyData obj…

---

## [vtkImageConnectivityFilter seeds](https://discourse.vtk.org/t/vtkimageconnectivityfilter-seeds/8223)

<div class="topic-metadata">

**Author:** [@Valentin\_Regueiro](https://discourse.vtk.org/u/Valentin_Regueiro)\
**Replies:** 2\
**Last updated:** [April 10, 2022, 6:15pm UTC](https://discourse.vtk.org/t/vtkimageconnectivityfilter-seeds/8223 "2022-04-10T18:15:34Z")

</div>

Hi, I am writing a function to segmentate some parts of a vtkImageData using vtkImageConnectivityFilter. Please bear in mind I am new to vtk. I have had relatively good results with the filter just by setting the righ…

---

## [problem on vtkMetaImageReader](https://discourse.vtk.org/t/problem-on-vtkmetaimagereader/8250)

<div class="topic-metadata">

**Author:** [@perphy](https://discourse.vtk.org/u/perphy)\
**Replies:** 0\
**Last updated:** [April 10, 2022, 11:10am UTC](https://discourse.vtk.org/t/problem-on-vtkmetaimagereader/8250 "2022-04-10T11:10:05Z")

</div>

Hi, I am running the headbone example https://kitware.github.io/vtk-examples/site/Cxx/VisualizationAlgorithms/HeadBone/ What is the correct filename? I have error below I tried these filename, but none of them wo…

---

## [How to implement a moveable annotation?](https://discourse.vtk.org/t/how-to-implement-a-moveable-annotation/8246)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 0\
**Last updated:** [April 10, 2022, 4:06am UTC](https://discourse.vtk.org/t/how-to-implement-a-moveable-annotation/8246 "2022-04-10T04:06:52Z")

</div>

I want to add annotation in my window. Now, I add vtkCaptionActor2D in my window, but I cannot move it. The reason is that I can not pick it even actor.PickableOn. Is there any solution that I can add a annotation and …

---

## [Where could we get the dataset used by the vtk-examples?](https://discourse.vtk.org/t/where-could-we-get-the-dataset-used-by-the-vtk-examples/8245)

<div class="topic-metadata">

**Author:** [@1116](https://discourse.vtk.org/u/1116)\
**Replies:** 1\
**Last updated:** [April 10, 2022, 12:30am UTC](https://discourse.vtk.org/t/where-could-we-get-the-dataset-used-by-the-vtk-examples/8245 "2022-04-10T00:30:35Z")

</div>

Hello, guys: There is a quick question, where could we get the data sets used for the vtk-examples, such as this one (https://kitware.github.io/vtk-examples/site/Cxx/Visualization/StreamLines/) and this one (https://kit…

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

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