# Development

**URL:** https://discourse.vtk.org/c/development/7.md?page=24

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

**Page:** 25

---

## [MIP - Max Intensity Projection with Bones](https://discourse.vtk.org/t/mip-max-intensity-projection-with-bones/10220)

<div class="topic-metadata">

**Author:** [@tigerhu7](https://discourse.vtk.org/u/tigerhu7)\
**Replies:** 5\
**Last updated:** [January 28, 2023, 2:19am UTC](https://discourse.vtk.org/t/mip-max-intensity-projection-with-bones/10220 "2023-01-28T02:19:21Z")

</div>

Dear All, I am working on a project on visualizating MIP of carotid-cerebral arteries of two types, namely with bone shown and without. The results are like these. Here, I succeeded in vislualization top image ( r…

---

## [Masking structured data](https://discourse.vtk.org/t/masking-structured-data/10538)

<div class="topic-metadata">

**Author:** [@Jens\_Munk\_Hansen](https://discourse.vtk.org/u/Jens_Munk_Hansen)\
**Replies:** 2\
**Last updated:** [January 25, 2023, 9:06pm UTC](https://discourse.vtk.org/t/masking-structured-data/10538 "2023-01-25T21:06:36Z")

</div>

Hi Developers I am in a situation where I am working on structured data, which needs to be filtered using a bit-mask, e.g. at least one of the first 3 bits must be set and always bit 7. I looked into vtkImageMaskBits, w…

---

## [About vtkCornerAnnotation rendering slow](https://discourse.vtk.org/t/about-vtkcornerannotation-rendering-slow/10493)

<div class="topic-metadata">

**Author:** [@marlon.ma](https://discourse.vtk.org/u/marlon.ma)\
**Replies:** 0\
**Last updated:** [January 19, 2023, 1:28am UTC](https://discourse.vtk.org/t/about-vtkcornerannotation-rendering-slow/10493 "2023-01-19T01:28:06Z")

</div>

I finished an mpr display, but I found a problem where I used the vtkCornerAnnotation class to synchronize the window width display in each window when adjusting the window width. However, I found that the rendering spee…

---

## [Blank scrren using imgui-vtk](https://discourse.vtk.org/t/blank-scrren-using-imgui-vtk/10488)

<div class="topic-metadata">

**Author:** [@claid00](https://discourse.vtk.org/u/claid00)\
**Replies:** 0\
**Last updated:** [January 18, 2023, 7:25am UTC](https://discourse.vtk.org/t/blank-scrren-using-imgui-vtk/10488 "2023-01-18T07:25:11Z")

</div>

Dear all developers, I’m developing 3d visualizer using imgui-vtk. Standalone project for 3d visualizer with imgui-vtk works fine, but it does NOT when I integrate other project. The other project has developed by onl…

---

## [VTK for Android](https://discourse.vtk.org/t/vtk-for-android/5604)

<div class="topic-metadata">

**Author:** [@timt](https://discourse.vtk.org/u/timt)\
**Replies:** 10\
**Last updated:** [January 18, 2023, 12:15am UTC](https://discourse.vtk.org/t/vtk-for-android/5604 "2023-01-18T00:15:00Z")

</div>

I am currently trying to build any recent version of VTK with any recent version of Android using: cmake -S vtk -B vtk-android-build -GNinja -DVTK\_ANDROID\_BUILD=ON cmake --build vtk-android-build I have tried the follo…

---

## [Out of memory for huge volume](https://discourse.vtk.org/t/out-of-memory-for-huge-volume/10118)

<div class="topic-metadata">

**Author:** [@WilliManFR](https://discourse.vtk.org/u/WilliManFR)\
**Replies:** 12\
**Last updated:** [January 17, 2023, 11:25am UTC](https://discourse.vtk.org/t/out-of-memory-for-huge-volume/10118 "2023-01-17T11:25:58Z")

</div>

Hello, I am a student. I am currently working on a project, where I have to generate a large cube composed of small cubes. For this, I generated csv files for vertices, edges, faces and also tetrahedra. Then in VTK I cr…

---

## [vtkInteractorStyleRubberBand2D inverted pan controls](https://discourse.vtk.org/t/vtkinteractorstylerubberband2d-inverted-pan-controls/10462)

<div class="topic-metadata">

**Author:** [@gbene](https://discourse.vtk.org/u/gbene)\
**Replies:** 0\
**Last updated:** [January 16, 2023, 9:42am UTC](https://discourse.vtk.org/t/vtkinteractorstylerubberband2d-inverted-pan-controls/10462 "2023-01-16T09:42:42Z")

</div>

Hi all! I was experimenting with the vtkInteractorStyleRubberBand2D interactor and I have encountered a strange behavior. It seems that when changing the camera’s position to \[0, 0, -1\] (view from below), the the horizo…

---

## [Feature: vtkObject inheritance without instantiation](https://discourse.vtk.org/t/feature-vtkobject-inheritance-without-instantiation/10426)

<div class="topic-metadata">

**Author:** [@dcthomp](https://discourse.vtk.org/u/dcthomp)\
**Replies:** 0\
**Last updated:** [January 11, 2023, 8:55pm UTC](https://discourse.vtk.org/t/feature-vtkobject-inheritance-without-instantiation/10426 "2023-01-11T20:55:15Z")

</div>

Summary The vtkObject class which serves as the basis for nearly all of VTK provides nice run-time methods like GetClassName() and IsA() to query objects for their type. These are implemented using the Superclass type-al…

---

## [Feature: String tokenization](https://discourse.vtk.org/t/feature-string-tokenization/10425)

<div class="topic-metadata">

**Author:** [@dcthomp](https://discourse.vtk.org/u/dcthomp)\
**Replies:** 0\
**Last updated:** [January 11, 2023, 8:30pm UTC](https://discourse.vtk.org/t/feature-string-tokenization/10425 "2023-01-11T20:30:02Z")

</div>

Summary VTK now includes a constexpr (compile-time) string hashing algorithm. This enables things such as more legible (and faster) code when comparing a test string to multiple potential matches: #include "vtkStringTok…

---

## [Questions about vtkCubeAxesActor](https://discourse.vtk.org/t/questions-about-vtkcubeaxesactor/10405)

<div class="topic-metadata">

**Author:** [@tong\_yang](https://discourse.vtk.org/u/tong_yang)\
**Replies:** 0\
**Last updated:** [January 9, 2023, 3:32am UTC](https://discourse.vtk.org/t/questions-about-vtkcubeaxesactor/10405 "2023-01-09T03:32:06Z")

</div>

Hello, I have been learning VTK for one year. I met some questions about the vtkCubeAxesActor. I have tried to use SetUserTransform, SetScale, SetPosition and RotateX, but these methods did not work. Abont font，I have …

---

## [\[Bugs\] Issue with compilation vtk to product a vtk.jar](https://discourse.vtk.org/t/bugs-issue-with-compilation-vtk-to-product-a-vtk-jar/10392)

<div class="topic-metadata">

**Author:** [@aschmit](https://discourse.vtk.org/u/aschmit)\
**Replies:** 3\
**Last updated:** [January 5, 2023, 8:22pm UTC](https://discourse.vtk.org/t/bugs-issue-with-compilation-vtk-to-product-a-vtk-jar/10392 "2023-01-05T20:22:00Z")

</div>

Hello everyone, I have tried to compile the source vtk to producta vtk.jar. But it fails because we have the enum arguments whose are truncated by the parser. The possible origin of this behaviour is the function vtkPa…

---

## [ParticlePathFilter can only process vtkImageData？](https://discourse.vtk.org/t/particlepathfilter-can-only-process-vtkimagedata/10379)

<div class="topic-metadata">

**Author:** [@lizemin2016](https://discourse.vtk.org/u/lizemin2016)\
**Replies:** 0\
**Last updated:** [January 4, 2023, 7:34am UTC](https://discourse.vtk.org/t/particlepathfilter-can-only-process-vtkimagedata/10379 "2023-01-04T07:34:32Z")

</div>

I want to generate particle path from my custom polydata, But the processing object in example/test codes I can find are all vtkImageData，Is it not applicable for unstructure polydata? Are there any implementation exampl…

---

## [How to abort vtkTIFFReader to read image files](https://discourse.vtk.org/t/how-to-abort-vtktiffreader-to-read-image-files/10376)

<div class="topic-metadata">

**Author:** [@tong\_yang](https://discourse.vtk.org/u/tong_yang)\
**Replies:** 0\
**Last updated:** [January 4, 2023, 2:54am UTC](https://discourse.vtk.org/t/how-to-abort-vtktiffreader-to-read-image-files/10376 "2023-01-04T02:54:38Z")

</div>

I want to interrupt the vtkTIFFReader reading process through multithreading. Because my image file is very large and the reading process takes a long time, users want to have a way to stop it. So I would like to ask i…

---

## [Will 9.2 support Python 3.11](https://discourse.vtk.org/t/will-9-2-support-python-3-11/9398)

<div class="topic-metadata">

**Author:** [@parched](https://discourse.vtk.org/u/parched)\
**Replies:** 7\
**Last updated:** [January 2, 2023, 7:27am UTC](https://discourse.vtk.org/t/will-9-2-support-python-3-11/9398 "2023-01-02T07:27:42Z")

</div>

Python 3.11 is planned to be released in 1 months time and the ABI is stable. Will support be added to the 9.2 release? Is it just a matter of adding it to the CMake files, or is there breaking changes in the C API? P…

---

## [Polyhedral cells: storing faces as vtkCellArray](https://discourse.vtk.org/t/polyhedral-cells-storing-faces-as-vtkcellarray/5656)

<div class="topic-metadata">

**Author:** [@utkarshayachit](https://discourse.vtk.org/u/utkarshayachit)\
**Replies:** 9\
**Last updated:** [January 1, 2023, 2:36pm UTC](https://discourse.vtk.org/t/polyhedral-cells-storing-faces-as-vtkcellarray/5656 "2023-01-01T14:36:12Z")

</div>

When storing face information for polyhedral cells, vtkUnstructuredGrid uses a vtkIdTypeArray in a special format that looks awfully similar to how vtkCellArray used maintain its internal storage. I wonder if it should s…

---

## [Seg fault reading jpeg in 9.2.2](https://discourse.vtk.org/t/seg-fault-reading-jpeg-in-9-2-2/10337)

<div class="topic-metadata">

**Author:** [@efahl](https://discourse.vtk.org/u/efahl)\
**Replies:** 7\
**Last updated:** [December 31, 2022, 7:33pm UTC](https://discourse.vtk.org/t/seg-fault-reading-jpeg-in-9-2-2/10337 "2022-12-31T19:33:00Z")

</div>

jpg-bug.zip (2.2 KB) I just was playing with Python 3.10.7, pip installed VTK 9.2.2 and ran one of our image reader tests. With VTK 9.1, when reading the bad one, Samsung.jpg, I’d see some error messages and get approp…

---

## [Generated points are not reduced when sampling spacing increases](https://discourse.vtk.org/t/generated-points-are-not-reduced-when-sampling-spacing-increases/10344)

<div class="topic-metadata">

**Author:** [@lizemin2016](https://discourse.vtk.org/u/lizemin2016)\
**Replies:** 2\
**Last updated:** [December 31, 2022, 3:05pm UTC](https://discourse.vtk.org/t/generated-points-are-not-reduced-when-sampling-spacing-increases/10344 "2022-12-31T15:05:56Z")

</div>

2D Interior Area.vtp (83.3 KB) I want to generate points from the above vtp file, I don’t know how to choose the suitable distance parameter, when I increase the distance it works at the beginning, but the points genera…

---

## [vtkScalarBarWidget stuck on vertical orientation](https://discourse.vtk.org/t/vtkscalarbarwidget-stuck-on-vertical-orientation/10217)

<div class="topic-metadata">

**Author:** [@BlueKnight7](https://discourse.vtk.org/u/BlueKnight7)\
**Replies:** 3\
**Last updated:** [December 29, 2022, 6:44pm UTC](https://discourse.vtk.org/t/vtkscalarbarwidget-stuck-on-vertical-orientation/10217 "2022-12-29T18:44:03Z")

</div>

I’m using Vtk 9.1 on Linux. I’ve been trying to get a vtkScalarBarWidget to orient horizontally. I’ve found that the vtkScalarBar will, but I can’t figure out how to do this with the widget. From the online example: h…

---

## [I want to complete the interactive segmentation of images. Is there any relevant example?](https://discourse.vtk.org/t/i-want-to-complete-the-interactive-segmentation-of-images-is-there-any-relevant-example/10334)

<div class="topic-metadata">

**Author:** [@marlon.ma](https://discourse.vtk.org/u/marlon.ma)\
**Replies:** 0\
**Last updated:** [December 29, 2022, 2:54am UTC](https://discourse.vtk.org/t/i-want-to-complete-the-interactive-segmentation-of-images-is-there-any-relevant-example/10334 "2022-12-29T02:54:10Z")

</div>

I want to complete the interactive segmentation of images. Is there any relevant example?

---

## [Polydata to 3d image!](https://discourse.vtk.org/t/polydata-to-3d-image/10331)

<div class="topic-metadata">

**Author:** [@jongzzi\_GanJang](https://discourse.vtk.org/u/jongzzi_GanJang)\
**Replies:** 0\
**Last updated:** [December 28, 2022, 10:09am UTC](https://discourse.vtk.org/t/polydata-to-3d-image/10331 "2022-12-28T10:09:02Z")

</div>

The code below is the process of extracting polydata from the contour sequence and converting it into a volume image. def contourSequence2Volume(cs, referenceImage): polylines = contourSequence2PolyLines(cs) wh…

---

## [NIFTI image to tensor/3d matrix representation](https://discourse.vtk.org/t/nifti-image-to-tensor-3d-matrix-representation/10237)

<div class="topic-metadata">

**Author:** [@genzo](https://discourse.vtk.org/u/genzo)\
**Replies:** 5\
**Last updated:** [December 18, 2022, 12:12am UTC](https://discourse.vtk.org/t/nifti-image-to-tensor-3d-matrix-representation/10237 "2022-12-18T00:12:17Z")

</div>

I need to apply a FFT on a 3D image (.nii.gz .nii files). Therefore I’d need a 3D/4D tensor representation of the vtkNIFTIImageReader in some way. I’ve found this, but having a tensor for each cell I think is not effici…

---

## [QML Example](https://discourse.vtk.org/t/qml-example/7247)

<div class="topic-metadata">

**Author:** [@Michael\_Jackson](https://discourse.vtk.org/u/Michael_Jackson)\
**Replies:** 6\
**Last updated:** [December 16, 2022, 5:06pm UTC](https://discourse.vtk.org/t/qml-example/7247 "2022-12-16T17:06:26Z")

</div>

Is there an example that uses the newer QML support besides the test cases? I’m having some issues getting a basic application (based off of the test applications) to actually run.

---

## [Some bugs when use vtk in qml.(Use the official way )](https://discourse.vtk.org/t/some-bugs-when-use-vtk-in-qml-use-the-official-way/9650)

<div class="topic-metadata">

**Author:** [@edwardAllen](https://discourse.vtk.org/u/edwardAllen)\
**Replies:** 7\
**Last updated:** [December 16, 2022, 5:02pm UTC](https://discourse.vtk.org/t/some-bugs-when-use-vtk-in-qml-use-the-official-way/9650 "2022-12-16T17:02:01Z")

</div>

Here are some bugs when use official demo quickVtkRenderwindow with qml. First : In qml file , QQuickVtkRenderer cannot in Rectangle ,like this : bug1.qml ... VTKRenderWindow { id: vtkwindow width…

---

## [QML Rendering Problem](https://discourse.vtk.org/t/qml-rendering-problem/7820)

<div class="topic-metadata">

**Author:** [@ltylight](https://discourse.vtk.org/u/ltylight)\
**Replies:** 13\
**Last updated:** [December 16, 2022, 5:01pm UTC](https://discourse.vtk.org/t/qml-rendering-problem/7820 "2022-12-16T17:01:13Z")

</div>

Hi, I use QT Qml as GUI framework and use VTK for 3D rendering. I tried QQuickVTKRenderWindow which is functional. However, I read the source code and it says ‘All the QtQuick element rendering is stacked visually above…

---

## [How to save the 3D image of the result of volume rendering algorithm as a 3D file](https://discourse.vtk.org/t/how-to-save-the-3d-image-of-the-result-of-volume-rendering-algorithm-as-a-3d-file/10183)

<div class="topic-metadata">

**Author:** [@zbz](https://discourse.vtk.org/u/zbz)\
**Replies:** 0\
**Last updated:** [December 14, 2022, 5:44am UTC](https://discourse.vtk.org/t/how-to-save-the-3d-image-of-the-result-of-volume-rendering-algorithm-as-a-3d-file/10183 "2022-12-14T05:44:43Z")

</div>

How to save the 3D image of the result of volume rendering algorithm as a 3D file

---

## [Can we assume that a vtkCell will hold a vtkPoints object with a double type?](https://discourse.vtk.org/t/can-we-assume-that-a-vtkcell-will-hold-a-vtkpoints-object-with-a-double-type/10149)

<div class="topic-metadata">

**Author:** [@spyridon97](https://discourse.vtk.org/u/spyridon97)\
**Replies:** 6\
**Last updated:** [December 12, 2022, 3:26pm UTC](https://discourse.vtk.org/t/can-we-assume-that-a-vtkcell-will-hold-a-vtkpoints-object-with-a-double-type/10149 "2022-12-12T15:26:42Z")

</div>

All the vtkCell subclasses when created rhwy instantiate a vtkPoints object with VTK\_DOUBLE, which means that the vtkDataArray holding the points of a cell will be a vtkDoubleArray. //-----------------------------------…

---

## [Foreign Function Interface Generation for Dart/Flutter - ffigen](https://discourse.vtk.org/t/foreign-function-interface-generation-for-dart-flutter-ffigen/10160)

<div class="topic-metadata">

**Author:** [@giiyms](https://discourse.vtk.org/u/giiyms)\
**Replies:** 3\
**Last updated:** [December 12, 2022, 1:48pm UTC](https://discourse.vtk.org/t/foreign-function-interface-generation-for-dart-flutter-ffigen/10160 "2022-12-12T13:48:45Z")

</div>

Hello, I would like to attempt converting the VTK headers so Flutter/Dart can talk to it directly. Does anyone know / can point me to the core/barebones headers needed for VTK to work? If anyone is interested in helpi…

---

## [Proplem using vtkPLYWriter with WriteToOutputString = true](https://discourse.vtk.org/t/proplem-using-vtkplywriter-with-writetooutputstring-true/10114)

<div class="topic-metadata">

**Author:** [@dwventer](https://discourse.vtk.org/u/dwventer)\
**Replies:** 3\
**Last updated:** [December 11, 2022, 9:40pm UTC](https://discourse.vtk.org/t/proplem-using-vtkplywriter-with-writetooutputstring-true/10114 "2022-12-11T21:40:43Z")

</div>

Hi, I am trying to use the vtkPLYWriter to write to a std::string. This is an extraction of my code: vtkNew\<vtkPLYWriter\> vtkWriter; vtkWriter-\>WriteToOutputStringOn(); vtkWriter-\>SetFileTypeToBinary(); vtkWriter-\>SetI…

---

## [VTKVornoi2D doesn't work probably](https://discourse.vtk.org/t/vtkvornoi2d-doesnt-work-probably/10138)

<div class="topic-metadata">

**Author:** [@AndreAhmed](https://discourse.vtk.org/u/AndreAhmed)\
**Replies:** 3\
**Last updated:** [December 9, 2022, 3:41pm UTC](https://discourse.vtk.org/t/vtkvornoi2d-doesnt-work-probably/10138 "2022-12-09T15:41:37Z")

</div>

Hello, I have two questions. I’m trying to use VTKVornoi to generate a 2D Mesh of voronoi graph, and the results is like the following picture vtkSmartPointer poly\_voronoi = vtkSmartPointer::New(); int i = 0; wh…

---

## [vtkInteractorObserver::ComputeDisplayToWorld dirties the Renderer!](https://discourse.vtk.org/t/vtkinteractorobserver-computedisplaytoworld-dirties-the-renderer/10111)

<div class="topic-metadata">

**Author:** [@John.Stone](https://discourse.vtk.org/u/John.Stone)\
**Replies:** 0\
**Last updated:** [December 8, 2022, 2:42am UTC](https://discourse.vtk.org/t/vtkinteractorobserver-computedisplaytoworld-dirties-the-renderer/10111 "2022-12-08T02:42:26Z")

</div>

So, I’d like to use vtkRenderer::BackingStoreOn() but I just noticed that vtkInteractorObserver::ComputeDisplayToWorld() and vtkInteractorObserver::ComputeWorldToDisplay() mark the passed renderer dirty because they indi…

[Previous page](https://discourse.vtk.org/c/development/7.md?page=23)

[Next page](https://discourse.vtk.org/c/development/7.md?page=25)
