# Development

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

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

**Page:** 33

---

## [vtkInteractorStyleRubberBand3D not playing nice with QQuickVTKRenderWindow](https://discourse.vtk.org/t/vtkinteractorstylerubberband3d-not-playing-nice-with-qquickvtkrenderwindow/7478)

<div class="topic-metadata">

**Author:** [@marcwang](https://discourse.vtk.org/u/marcwang)\
**Replies:** 0\
**Last updated:** [December 23, 2021, 4:28am UTC](https://discourse.vtk.org/t/vtkinteractorstylerubberband3d-not-playing-nice-with-qquickvtkrenderwindow/7478 "2021-12-23T04:28:46Z")

</div>

I was playing around with QQuickVTKRenderWindow. Instead of a trackball interactor on line 260, I put in a vtkInteractorStyleRubberBand3D. But when I try using it, it throws an error vtkGenericOpenGLRenderWindow (00000…

---

## [Handling allocation errors in Python](https://discourse.vtk.org/t/handling-allocation-errors-in-python/7451)

<div class="topic-metadata">

**Author:** [@sipkema](https://discourse.vtk.org/u/sipkema)\
**Replies:** 10\
**Last updated:** [December 22, 2021, 10:55am UTC](https://discourse.vtk.org/t/handling-allocation-errors-in-python/7451 "2021-12-22T10:55:57Z")

</div>

I ran into what I think might be a bug/regression in vtkFeatureEdges, where the filter tries and fails to allocate a very large array. The following code: from vtkmodules.vtkFiltersCore import vtkFeatureEdges from vtkm…

---

## [vtkDataSetMapper vs vtkPolyDataMapper](https://discourse.vtk.org/t/vtkdatasetmapper-vs-vtkpolydatamapper/7404)

<div class="topic-metadata">

**Author:** [@Taimour](https://discourse.vtk.org/u/Taimour)\
**Replies:** 2\
**Last updated:** [December 22, 2021, 7:46am UTC](https://discourse.vtk.org/t/vtkdatasetmapper-vs-vtkpolydatamapper/7404 "2021-12-22T07:46:18Z")

</div>

I am working on a project and in my project I have defined mapper as vtkDataSetMapper and my input data is vtkPolyData type. I want to ask, can I use vtkPolyDataMapper with this data?

---

## [VTK Problems vtkPolyData::GetScalarFieldCriticalIndex](https://discourse.vtk.org/t/vtk-problems-vtkpolydata-getscalarfieldcriticalindex/7461)

<div class="topic-metadata">

**Author:** [@AlexUtrobin](https://discourse.vtk.org/u/AlexUtrobin)\
**Replies:** 0\
**Last updated:** [December 22, 2021, 6:35am UTC](https://discourse.vtk.org/t/vtk-problems-vtkpolydata-getscalarfieldcriticalindex/7461 "2021-12-22T06:35:45Z")

</div>

Help! What am I doing wrong? Java code: vtkPolyData pd = new vtkPolyData(); vtkPoints points = new vtkPoints(); points.InsertNextPoint(0, 0, 0); points.InsertNextPoint(5, 0, 0); points.InsertNextPo…

---

## [Pinch gesture on Ubuntu 18.04](https://discourse.vtk.org/t/pinch-gesture-on-ubuntu-18-04/7443)

<div class="topic-metadata">

**Author:** [@syj](https://discourse.vtk.org/u/syj)\
**Replies:** 0\
**Last updated:** [December 21, 2021, 8:49am UTC](https://discourse.vtk.org/t/pinch-gesture-on-ubuntu-18-04/7443 "2021-12-21T08:49:57Z")

</div>

Hi guys, I’m trying to use touchscreen on ubuntu 18.04. And my enviroment is as belows: ubuntu 18.04 QT 5.12.9 vtk 9.1 I build the TouchGestureViewer example. Everything works fine, including single-touch, rotate, e…

---

## [Can Someone guide me about using vtkRenderWindowinteractor and vtkwin32renderwinowinteractor?](https://discourse.vtk.org/t/can-someone-guide-me-about-using-vtkrenderwindowinteractor-and-vtkwin32renderwinowinteractor/7414)

<div class="topic-metadata">

**Author:** [@Taimour](https://discourse.vtk.org/u/Taimour)\
**Replies:** 1\
**Last updated:** [December 17, 2021, 10:24pm UTC](https://discourse.vtk.org/t/can-someone-guide-me-about-using-vtkrenderwindowinteractor-and-vtkwin32renderwinowinteractor/7414 "2021-12-17T22:24:57Z")

</div>

Can Someone guide me about using vtkRenderWindowinteractor and vtkwin32renderwinowinteractor? I am beginner at vtk libraries. Also I want to know about vtkHandle message2 function. Any help will be appreciated. List …

---

## [vtkmfcview](https://discourse.vtk.org/t/vtkmfcview/7425)

<div class="topic-metadata">

**Author:** [@Taimour](https://discourse.vtk.org/u/Taimour)\
**Replies:** 0\
**Last updated:** [December 17, 2021, 12:47pm UTC](https://discourse.vtk.org/t/vtkmfcview/7425 "2021-12-17T12:47:13Z")

</div>

I want to ask that vtmfcview is the same as vtkmdiview?

---

## [Vtk 9.1.0 wants version 8.1.0 of FMT?](https://discourse.vtk.org/t/vtk-9-1-0-wants-version-8-1-0-of-fmt/7417)

<div class="topic-metadata">

**Author:** [@Michael\_Jackson](https://discourse.vtk.org/u/Michael_Jackson)\
**Replies:** 1\
**Last updated:** [December 16, 2021, 3:53pm UTC](https://discourse.vtk.org/t/vtk-9-1-0-wants-version-8-1-0-of-fmt/7417 "2021-12-16T15:53:03Z")

</div>

I was trying to build VTK version 9.1 using an external “fmt” library but I am getting a cmake configuration error where VTK wants version 8.1.0 of fmt but such a version does not exist according to the official GitHub r…

---

## [glyph variable arrow size](https://discourse.vtk.org/t/glyph-variable-arrow-size/7391)

<div class="topic-metadata">

**Author:** [@cimo](https://discourse.vtk.org/u/cimo)\
**Replies:** 1\
**Last updated:** [December 13, 2021, 11:30pm UTC](https://discourse.vtk.org/t/glyph-variable-arrow-size/7391 "2021-12-13T23:30:04Z")

</div>

Hi all, I would like to assign arrows with a different size according to the selected scalar. Any idea ? Thanks in advance. N.

---

## [VtkLibrary : Porting to 9.1 from 5.8](https://discourse.vtk.org/t/vtklibrary-porting-to-9-1-from-5-8/7386)

<div class="topic-metadata">

**Author:** [@Taimour](https://discourse.vtk.org/u/Taimour)\
**Replies:** 4\
**Last updated:** [December 13, 2021, 7:59am UTC](https://discourse.vtk.org/t/vtklibrary-porting-to-9-1-from-5-8/7386 "2021-12-13T07:59:45Z")

</div>

I am working on a project which was previously working with vtk5.8 . I have replaced header files and libraries in my project. Build is successful but when I try to switch to 3D mode I get following error. Please guide m…

---

## [Feature: logging support](https://discourse.vtk.org/t/feature-logging-support/171)

<div class="topic-metadata">

**Author:** [@utkarshayachit](https://discourse.vtk.org/u/utkarshayachit)\
**Replies:** 24\
**Last updated:** [December 12, 2021, 2:14pm UTC](https://discourse.vtk.org/t/feature-logging-support/171 "2021-12-12T14:14:06Z")

</div>

This is a proposal with draft implementation to add support for a logging framework to VTK originally introduce in this mailing list thread. Here’s an extract from the header docs in vtkLogger.h that summarizes how to u…

---

## [vtkCoordinateFrameWidget](https://discourse.vtk.org/t/vtkcoordinateframewidget/7379)

<div class="topic-metadata">

**Author:** [@spyridon97](https://discourse.vtk.org/u/spyridon97)\
**Replies:** 0\
**Last updated:** [December 9, 2021, 7:02pm UTC](https://discourse.vtk.org/t/vtkcoordinateframewidget/7379 "2021-12-09T19:02:30Z")

</div>

VTK now has the vtkCoordinateFrameWidget which controls 3 orthogonal, right-handed planes. (see VTK MR) The representation of the vtkCoordinateFrameWidget can be seen below: In more detail, the representation of th…

---

## [vtkmdiview file](https://discourse.vtk.org/t/vtkmdiview-file/7376)

<div class="topic-metadata">

**Author:** [@Taimour](https://discourse.vtk.org/u/Taimour)\
**Replies:** 0\
**Last updated:** [December 9, 2021, 1:23pm UTC](https://discourse.vtk.org/t/vtkmdiview-file/7376 "2021-12-09T13:23:59Z")

</div>

Hi everyone! I am working on a project that has a files named as vtkMDIView.h and vtkMDIView.cpp. In file desciption, it is written : Program: Visualization Toolkit Module: RCSfile: vtkMDIView.cpp,v Language: …

---

## [vtkStreamTracer recent changes](https://discourse.vtk.org/t/vtkstreamtracer-recent-changes/7325)

<div class="topic-metadata">

**Author:** [@will.schroeder](https://discourse.vtk.org/u/will.schroeder)\
**Replies:** 3\
**Last updated:** [December 4, 2021, 4:30pm UTC](https://discourse.vtk.org/t/vtkstreamtracer-recent-changes/7325 "2021-12-04T16:30:42Z")

</div>

FYI vtkStreamTracer had been threaded (one thread per streamline). This is a complex change and there may be residual issues - please let me know if you come across anything. One issue I am seeing on a few Rogue Researc…

---

## [Better labeling of issues in GitLab](https://discourse.vtk.org/t/better-labeling-of-issues-in-gitlab/7273)

<div class="topic-metadata">

**Author:** [@nocnokneo](https://discourse.vtk.org/u/nocnokneo)\
**Replies:** 3\
**Last updated:** [December 4, 2021, 6:17am UTC](https://discourse.vtk.org/t/better-labeling-of-issues-in-gitlab/7273 "2021-12-04T06:17:03Z")

</div>

As part of the validation of the Software Of Unknown Provenance (SOUP) in our medical device we need to review all know issues to see if any pose a safety risk. Using a risk based approach, we filter out issues that, for…

---

## [QuadratureSchemeDefinition and data arrays](https://discourse.vtk.org/t/quadratureschemedefinition-and-data-arrays/7326)

<div class="topic-metadata">

**Author:** [@Sagues](https://discourse.vtk.org/u/Sagues)\
**Replies:** 0\
**Last updated:** [December 3, 2021, 12:54pm UTC](https://discourse.vtk.org/t/quadratureschemedefinition-and-data-arrays/7326 "2021-12-03T12:54:03Z")

</div>

I suppose that QuadratureSchemeDefinition allows to define gauss points schemes to integrate data in cells. However I do not know how link QuadratureSchemeDefinition in DoubleArray or other type of celldata array. Thank…

---

## ["Flat index" for vtkDataObjectTree's iterators](https://discourse.vtk.org/t/flat-index-for-vtkdataobjecttrees-iterators/7313)

<div class="topic-metadata">

**Author:** [@tigarmo](https://discourse.vtk.org/u/tigarmo)\
**Replies:** 4\
**Last updated:** [December 2, 2021, 7:01pm UTC](https://discourse.vtk.org/t/flat-index-for-vtkdataobjecttrees-iterators/7313 "2021-12-02T19:01:19Z")

</div>

Hi everyone, It’s my understanding that for composite objects the “flat index” refers to the “subdata” inside the composite, and that this index is 0-based as usual. Therefore, it looks like there might be a bug with vt…

---

## [Transform an actor but keep it visible within the view](https://discourse.vtk.org/t/transform-an-actor-but-keep-it-visible-within-the-view/7243)

<div class="topic-metadata">

**Author:** [@lwh0328](https://discourse.vtk.org/u/lwh0328)\
**Replies:** 2\
**Last updated:** [November 29, 2021, 6:43pm UTC](https://discourse.vtk.org/t/transform-an-actor-but-keep-it-visible-within-the-view/7243 "2021-11-29T18:43:31Z")

</div>

Hi folks, I’m currently trying to translate an actor, but I was wondering how I can control the translation so as to avoid the actor outside the render view? In another way to describe my question, I would like to get t…

---

## [Local libraries with Python wrapping](https://discourse.vtk.org/t/local-libraries-with-python-wrapping/6808)

<div class="topic-metadata">

**Author:** [@djduke](https://discourse.vtk.org/u/djduke)\
**Replies:** 12\
**Last updated:** [November 29, 2021, 1:37pm UTC](https://discourse.vtk.org/t/local-libraries-with-python-wrapping/6808 "2021-11-29T13:37:04Z")

</div>

I’m after advice on the current recommended route for creating a local library for which the classes can be wrapped \[Python\] Previously releases provided an Examples/Build/vtkLocal directory that could be used as a te…

---

## [vtkCutter cutting disconnected cells](https://discourse.vtk.org/t/vtkcutter-cutting-disconnected-cells/7257)

<div class="topic-metadata">

**Author:** [@andreasbuykx](https://discourse.vtk.org/u/andreasbuykx)\
**Replies:** 5\
**Last updated:** [November 24, 2021, 4:51pm UTC](https://discourse.vtk.org/t/vtkcutter-cutting-disconnected-cells/7257 "2021-11-24T16:51:52Z")

</div>

I have an FEA mesh of 3d cells, with results that are discontinuous between cells. I model this by splitting the points such that each cell has its own points. I want to cut through those cells, yielding a single po…

---

## [stlReader.MergingOff() gives bad polyData](https://discourse.vtk.org/t/stlreader-mergingoff-gives-bad-polydata/2745)

<div class="topic-metadata">

**Author:** [@EmileSonneveld](https://discourse.vtk.org/u/EmileSonneveld)\
**Replies:** 4\
**Last updated:** [November 24, 2021, 1:36pm UTC](https://discourse.vtk.org/t/stlreader-mergingoff-gives-bad-polydata/2745 "2021-11-24T13:36:47Z")

</div>

Hi, We have a website using VTK.js that calls VTK-python functions in the backend. The problem is that both versions of VTK read STLs in a different way. VTK-python will merge vertices of the STL (good), and VTK.js will…

---

## [How to keep its color after being clipped](https://discourse.vtk.org/t/how-to-keep-its-color-after-being-clipped/7263)

<div class="topic-metadata">

**Author:** [@Erikevin](https://discourse.vtk.org/u/Erikevin)\
**Replies:** 0\
**Last updated:** [November 24, 2021, 7:36am UTC](https://discourse.vtk.org/t/how-to-keep-its-color-after-being-clipped/7263 "2021-11-24T07:36:01Z")

</div>

Hi, The original mapper of actor is using color lookup table.After being clipped,how to keep its color?It seems the orginal scalar is not matched with the current ones.Please give some help~ Br, Erikevin

---

## [VTK camera, how to get the right vector in world space](https://discourse.vtk.org/t/vtk-camera-how-to-get-the-right-vector-in-world-space/7251)

<div class="topic-metadata">

**Author:** [@cebugdev](https://discourse.vtk.org/u/cebugdev)\
**Replies:** 0\
**Last updated:** [November 23, 2021, 4:28am UTC](https://discourse.vtk.org/t/vtk-camera-how-to-get-the-right-vector-in-world-space/7251 "2021-11-23T04:28:27Z")

</div>

As the title says, how can I get the orientation vectors particularly the right vector of the VTK camera, what matrix can I use to extract this right vector? from documentation, i can see that there are ModelTransform, M…

---

## [Abnormal tube filter radius](https://discourse.vtk.org/t/abnormal-tube-filter-radius/7225)

<div class="topic-metadata">

**Author:** [@marcomusy](https://discourse.vtk.org/u/marcomusy)\
**Replies:** 3\
**Last updated:** [November 21, 2021, 5:53am UTC](https://discourse.vtk.org/t/abnormal-tube-filter-radius/7225 "2021-11-21T05:53:20Z")

</div>

The vtkTubeFilter with fixed radius …is not constant: import vtk from vedo import Line, show pts = \[\[100,0\], \[200,0\], \[200,200\], \[0,200\], \[0,0\]\] poly = Line(pts, closed=True).polydata() tuf = vtk.vtkTubeFilter() tuf.S…

---

## [Can't build VTK examples](https://discourse.vtk.org/t/cant-build-vtk-examples/7198)

<div class="topic-metadata">

**Author:** [@totte\_karlsson](https://discourse.vtk.org/u/totte_karlsson)\
**Replies:** 6\
**Last updated:** [November 19, 2021, 3:42am UTC](https://discourse.vtk.org/t/cant-build-vtk-examples/7198 "2021-11-19T03:42:30Z")

</div>

Hello, I’m new to this forum, and in ‘learning’ mode… :slight\_smile: I have built VTK, version 9.0.3 successfully using Visual Studio 2019 x64. I managed to build one example manually and can verify ‘it works’. Now I …

---

## [Could we have a new VTK 9.x release soon?](https://discourse.vtk.org/t/could-we-have-a-new-vtk-9-x-release-soon/5464)

<div class="topic-metadata">

**Author:** [@seanm](https://discourse.vtk.org/u/seanm)\
**Replies:** 25\
**Last updated:** [November 16, 2021, 4:20pm UTC](https://discourse.vtk.org/t/could-we-have-a-new-vtk-9-x-release-soon/5464 "2021-11-16T16:20:04Z")

</div>

Hi all, While tracking down something recently, I noticed the current VTK release (9.0.1) doesn’t actually compile out-of-the-box on recent macOS / Xcode because of: /VTK-9.0.1/ThirdParty/hdf5/vtkhdf5/src/H5Fsuper.c:13…

---

## [Solutions for vtkCollection API issues](https://discourse.vtk.org/t/solutions-for-vtkcollection-api-issues/6787)

<div class="topic-metadata">

**Author:** [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)\
**Replies:** 26\
**Last updated:** [November 16, 2021, 12:15am UTC](https://discourse.vtk.org/t/solutions-for-vtkcollection-api-issues/6787 "2021-11-16T00:15:55Z")

</div>

Hi, I’ve filed an issue outlining problems with the current set of vtkCollection APIs that are exposed. The issue states the problem and this thread is meant to discuss possible solutions (conclusions will go back to th…

---

## [Deprecate vtkMutexLock and vtkAtomic ?](https://discourse.vtk.org/t/deprecate-vtkmutexlock-and-vtkatomic/772)

<div class="topic-metadata">

**Author:** [@mwestphal](https://discourse.vtk.org/u/mwestphal)\
**Replies:** 14\
**Last updated:** [November 12, 2021, 8:43am UTC](https://discourse.vtk.org/t/deprecate-vtkmutexlock-and-vtkatomic/772 "2021-11-12T08:43:58Z")

</div>

vtkMutexLock is useless since C++11 support and std::mutex. Should we deprecate it for further removal ?

---

## [TypeError: vtiReader.parseAsArrayBuffer is not a function](https://discourse.vtk.org/t/typeerror-vtireader-parseasarraybuffer-is-not-a-function/7126)

<div class="topic-metadata">

**Author:** [@Sneha-pk](https://discourse.vtk.org/u/Sneha-pk)\
**Replies:** 3\
**Last updated:** [November 12, 2021, 12:45am UTC](https://discourse.vtk.org/t/typeerror-vtireader-parseasarraybuffer-is-not-a-function/7126 "2021-11-12T00:45:58Z")

</div>

Hello all, I am very new to vtk.js and trying to recreate one of the example in react.js. I am getting this error : TypeError: vtiReader.parseAsArrayBuffer is not a function import 'vtk.js/Sources/Rendering/Profiles/V…

---

## [Empty volumes for labellayer and foregroundlayer](https://discourse.vtk.org/t/empty-volumes-for-labellayer-and-foregroundlayer/7155)

<div class="topic-metadata">

**Author:** [@Shazam\_L](https://discourse.vtk.org/u/Shazam_L)\
**Replies:** 0\
**Last updated:** [November 11, 2021, 9:39pm UTC](https://discourse.vtk.org/t/empty-volumes-for-labellayer-and-foregroundlayer/7155 "2021-11-11T21:39:46Z")

</div>

Hi, I am new to using VTK, I am getting background layer just fine with the right HU values. However, when I pull out labellayer from slicelogic and use the function getvolume. It is always nullptr. On my screen I can …

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

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