# Development

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

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

**Page:** 30

---

## [Set Visible in SetTableValue](https://discourse.vtk.org/t/set-visible-in-settablevalue/8563)

<div class="topic-metadata">

**Author:** [@Ren](https://discourse.vtk.org/u/Ren)\
**Replies:** 0\
**Last updated:** [May 24, 2022, 3:17am UTC](https://discourse.vtk.org/t/set-visible-in-settablevalue/8563 "2022-05-24T03:17:10Z")

</div>

Hello， everyone， I met a problem I am using table value to render a actor, pColorTable-\>SetTableValue(0, r, g, b, 1.0); pColorTable-\>SetTableValue(1, r, g, b, 1.0); pColorTable-\>SetTableValue(2, r, g, b, 0.0); pColo…

---

## [FindMEMKIND.cmake support](https://discourse.vtk.org/t/findmemkind-cmake-support/8524)

<div class="topic-metadata">

**Author:** [@jiapei100](https://discourse.vtk.org/u/jiapei100)\
**Replies:** 5\
**Last updated:** [May 19, 2022, 4:09pm UTC](https://discourse.vtk.org/t/findmemkind-cmake-support/8524 "2022-05-19T16:09:04Z")

</div>

Hi, all: I happened to realize it’s NOT quite convenient to build VTK from source WITHOUT memkind. So, I enabled memkind VTK\_USE\_MEMKIND ON. However, default repository of Ubuntu 22.04, or from source…

---

## [VTK-9.1.0 with FFMPEG-5.0 ?](https://discourse.vtk.org/t/vtk-9-1-0-with-ffmpeg-5-0/8486)

<div class="topic-metadata">

**Author:** [@jiapei100](https://discourse.vtk.org/u/jiapei100)\
**Replies:** 3\
**Last updated:** [May 15, 2022, 1:42pm UTC](https://discourse.vtk.org/t/vtk-9-1-0-with-ffmpeg-5-0/8486 "2022-05-15T13:42:42Z")

</div>

Hi, all: I’m trying to build \*\*VTK-9.1.0 \*\* on Ubuntu 22.04, with gcc-11.2. with VTK\_BUILD\_ALL\_MODULES ON. And I’ve already installed FFMPEG-5.0 on my system. It looks so far VTK-9.1.0 is NOT compatible wi…

---

## [VTK-9.1.0 vtkm failed to build](https://discourse.vtk.org/t/vtk-9-1-0-vtkm-failed-to-build/8490)

<div class="topic-metadata">

**Author:** [@jiapei100](https://discourse.vtk.org/u/jiapei100)\
**Replies:** 1\
**Last updated:** [May 15, 2022, 12:24pm UTC](https://discourse.vtk.org/t/vtk-9-1-0-vtkm-failed-to-build/8490 "2022-05-15T12:24:05Z")

</div>

Hi, all: I’m trying to buld VTK-9.1.0 release, but failed. My ENV: ➜ ~ uname -r 5.15.0-30-generic ➜ ~ lsb\_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04 LTS Release: 22.04…

---

## [how can i draw a straight horizontal line using line widget?](https://discourse.vtk.org/t/how-can-i-draw-a-straight-horizontal-line-using-line-widget/8487)

<div class="topic-metadata">

**Author:** [@Sneha-pk](https://discourse.vtk.org/u/Sneha-pk)\
**Replies:** 0\
**Last updated:** [May 13, 2022, 8:11am UTC](https://discourse.vtk.org/t/how-can-i-draw-a-straight-horizontal-line-using-line-widget/8487 "2022-05-13T08:11:35Z")

</div>

I am trying to draw a line using line widget and want to set the line straight. Is the method \[SetAlignToXAxis\] available in vtk.js?? Also, are all of the methods mentioned in vtkLineWidget class(https://vtk.org/doc/nig…

---

## [ShallowCopy cost more time than building itself](https://discourse.vtk.org/t/shallowcopy-cost-more-time-than-building-itself/8472)

<div class="topic-metadata">

**Author:** [@Ren](https://discourse.vtk.org/u/Ren)\
**Replies:** 3\
**Last updated:** [May 12, 2022, 8:43am UTC](https://discourse.vtk.org/t/shallowcopy-cost-more-time-than-building-itself/8472 "2022-05-12T08:43:36Z")

</div>

Hello, everyone, I would like to create a actor, the poly data shallow copies from another actor, For some models, why ShallowCopy takes too long time even than building data itself? For some models, it is indeed fast. …

---

## [Adding an "arrays range over time" information key in vtkDataObject](https://discourse.vtk.org/t/adding-an-arrays-range-over-time-information-key-in-vtkdataobject/8398)

<div class="topic-metadata">

**Author:** [@nicolas.vuaille](https://discourse.vtk.org/u/nicolas.vuaille)\
**Replies:** 5\
**Last updated:** [May 11, 2022, 2:03pm UTC](https://discourse.vtk.org/t/adding-an-arrays-range-over-time-information-key-in-vtkdataobject/8398 "2022-05-11T14:03:32Z")

</div>

Use case We read some temporal data and in the visualization pipeline, we choose an array and we want to setup a lookup table with the union of all the data ranges over time (i.e. from the absolute min over time to absol…

---

## [Cell Locators: Support Linear Transformations](https://discourse.vtk.org/t/cell-locators-support-linear-transformations/8449)

<div class="topic-metadata">

**Author:** [@spyridon97](https://discourse.vtk.org/u/spyridon97)\
**Replies:** 33\
**Last updated:** [May 10, 2022, 6:42pm UTC](https://discourse.vtk.org/t/cell-locators-support-linear-transformations/8449 "2022-05-10T18:42:50Z")

</div>

When operating on datasets that vary over time, the new timesteps are often either the same or a linear transformation of the first timestep. As of now, in the case of linear transformations, when a cell locator is util…

---

## [Gradient Opacity transfer function range](https://discourse.vtk.org/t/gradient-opacity-transfer-function-range/8169)

<div class="topic-metadata">

**Author:** [@Jiayi\_Xu](https://discourse.vtk.org/u/Jiayi_Xu)\
**Replies:** 3\
**Last updated:** [May 10, 2022, 12:55pm UTC](https://discourse.vtk.org/t/gradient-opacity-transfer-function-range/8169 "2022-05-10T12:55:57Z")

</div>

Hi all, I’m exploring the gradient opacity transfer function in vtkVolumeProperty. According to this old post, the range of opacity function X axis is data dependent. But in the default shader (obtained by dumping shade…

---

## [vtk+DearImGui integration through vtkGenericOpenGLRenderWindow](https://discourse.vtk.org/t/vtk-dearimgui-integration-through-vtkgenericopenglrenderwindow/4424)

<div class="topic-metadata">

**Author:** [@jaswantp](https://discourse.vtk.org/u/jaswantp)\
**Replies:** 14\
**Last updated:** [May 6, 2022, 4:06am UTC](https://discourse.vtk.org/t/vtk-dearimgui-integration-through-vtkgenericopenglrenderwindow/4424 "2022-05-06T04:06:58Z")

</div>

I made this post to help ImGui/3rd party UI users who wish to display VTK content in an externally provided context(glad/glbindings/…) and (or) windowing system (glfw/…) or DearImGUI, Nuklear, etc. So far, there is only…

---

## [vtkPropPicker not working in OSX and Qt](https://discourse.vtk.org/t/vtkproppicker-not-working-in-osx-and-qt/8057)

<div class="topic-metadata">

**Author:** [@marcomusy](https://discourse.vtk.org/u/marcomusy)\
**Replies:** 3\
**Last updated:** [April 30, 2022, 6:32am UTC](https://discourse.vtk.org/t/vtkproppicker-not-working-in-osx-and-qt/8057 "2022-04-30T06:32:15Z")

</div>

Picker is not picking at the correct position - there seems to be a factor 2 somewhere which screws up the result: import sys import vtk from PyQt5 import Qt from vtk.qt.QVTKRenderWindowInteractor import QVTKRenderWindo…

---

## [How to distinguish exterior and interior contour from vtkCutter?](https://discourse.vtk.org/t/how-to-distinguish-exterior-and-interior-contour-from-vtkcutter/8356)

<div class="topic-metadata">

**Author:** [@Cameron](https://discourse.vtk.org/u/Cameron)\
**Replies:** 3\
**Last updated:** [April 26, 2022, 8:26pm UTC](https://discourse.vtk.org/t/how-to-distinguish-exterior-and-interior-contour-from-vtkcutter/8356 "2022-04-26T20:26:26Z")

</div>

Say I have a tube. I can use vtkCutter to get the intersection between the tube and a plane as vtkPolyData. This polydata contains two disjoint polygon. I can use vtkConnectivityFilter to distinguish the points/cells …

---

## [Unable to allocate a large size of memory with VtkUnsignedShortArray](https://discourse.vtk.org/t/unable-to-allocate-a-large-size-of-memory-with-vtkunsignedshortarray/8374)

<div class="topic-metadata">

**Author:** [@PBH](https://discourse.vtk.org/u/PBH)\
**Replies:** 2\
**Last updated:** [April 26, 2022, 12:49am UTC](https://discourse.vtk.org/t/unable-to-allocate-a-large-size-of-memory-with-vtkunsignedshortarray/8374 "2022-04-26T00:49:50Z")

</div>

The following codes cause exception: “vtkUnsignedShortArray (0000014ECA3A0510): Unable to allocate 1566872789057536 elements of size 2 bytes”. vtkSmartPointer\<vtkImageData\> image = vtkSmartPointer\<vtkImageData\>::New(…

---

## [Backface bug in vtkActor](https://discourse.vtk.org/t/backface-bug-in-vtkactor/8376)

<div class="topic-metadata">

**Author:** [@BlueKnight7](https://discourse.vtk.org/u/BlueKnight7)\
**Replies:** 0\
**Last updated:** [April 25, 2022, 9:10pm UTC](https://discourse.vtk.org/t/backface-bug-in-vtkactor/8376 "2022-04-25T21:10:01Z")

</div>

I’m using VTK 9.1.0 on a Linux Redhat system. I obtain a vtkPolyDataMapper representation of a simple sphere which I use to set up a vtkActor. I’ve assigned the color red to the actor. When I assign a different color …

---

## [QVTKInteractorAdapter asumes QTouchEvent point IDs start at zero when Qt specifies to not asume that](https://discourse.vtk.org/t/qvtkinteractoradapter-asumes-qtouchevent-point-ids-start-at-zero-when-qt-specifies-to-not-asume-that/8342)

<div class="topic-metadata">

**Author:** [@Iker\_Salmon](https://discourse.vtk.org/u/Iker_Salmon)\
**Replies:** 4\
**Last updated:** [April 25, 2022, 2:39pm UTC](https://discourse.vtk.org/t/qvtkinteractoradapter-asumes-qtouchevent-point-ids-start-at-zero-when-qt-specifies-to-not-asume-that/8342 "2022-04-25T14:39:29Z")

</div>

And because of this there is a bug where touch events are not working in linux machines with vtk.9 and qt 6.2 Qt seems to generate QTouch events with point IDs like 37 (for example) so when the event reaches the Proces…

---

## [How to transform distance in world coordinates to distance in display coordinates?](https://discourse.vtk.org/t/how-to-transform-distance-in-world-coordinates-to-distance-in-display-coordinates/2252)

<div class="topic-metadata">

**Author:** [@Andrzej\_Marciniak](https://discourse.vtk.org/u/Andrzej_Marciniak)\
**Replies:** 4\
**Last updated:** [April 25, 2022, 2:09pm UTC](https://discourse.vtk.org/t/how-to-transform-distance-in-world-coordinates-to-distance-in-display-coordinates/2252 "2022-04-25T14:09:28Z")

</div>

Hi All, I am implementing a custom circle-shaped cursor using SVG and CSS. The radius of the circle should be calculated dynamically based on a given size in world coordinates (eg. 1mm). It should be calculated in place…

---

## [vtkMarkBoundaryFilter](https://discourse.vtk.org/t/vtkmarkboundaryfilter/8335)

<div class="topic-metadata">

**Author:** [@andreasbuykx](https://discourse.vtk.org/u/andreasbuykx)\
**Replies:** 0\
**Last updated:** [April 20, 2022, 11:17am UTC](https://discourse.vtk.org/t/vtkmarkboundaryfilter/8335 "2022-04-20T11:17:12Z")

</div>

In my FEA application I need to compute the (still unstructured, i.e. possibly non-linear) surface of unstructured grids and this often is time consuming. I was looking for whether vtkUnstructuredGridGeometryFilter was S…

---

## [Show vtkDebugMacro in console using python](https://discourse.vtk.org/t/show-vtkdebugmacro-in-console-using-python/8319)

<div class="topic-metadata">

**Author:** [@syj](https://discourse.vtk.org/u/syj)\
**Replies:** 0\
**Last updated:** [April 19, 2022, 12:34pm UTC](https://discourse.vtk.org/t/show-vtkdebugmacro-in-console-using-python/8319 "2022-04-19T12:34:28Z")

</div>

Hi guys, I wonder if it is possible to show the vtkDebugMacro text in console, when using python? reader=vtk.vtkDICOMImageReader() reader.DebugOn() I use the code above, but no debug text shows in console except error…

---

## [Xdmf2 Missing Header ?](https://discourse.vtk.org/t/xdmf2-missing-header/8300)

<div class="topic-metadata">

**Author:** [@Kostas\_Politis](https://discourse.vtk.org/u/Kostas_Politis)\
**Replies:** 1\
**Last updated:** [April 14, 2022, 7:28pm UTC](https://discourse.vtk.org/t/xdmf2-missing-header/8300 "2022-04-14T19:28:18Z")

</div>

Hello all, The header “XdmfExport.h” is missing from the include subdirectory of VTK’s installation (vtkxdmf2/libsrc - I actually noticed that by chance in PV). The header is used by XdmfH5Driver.h and XdmfObject.h. As…

---

## [Why doesn't VTK\_SMP\_IMPLEMENTATION\_TYPE default to STDThread?](https://discourse.vtk.org/t/why-doesnt-vtk-smp-implementation-type-default-to-stdthread/8293)

<div class="topic-metadata">

**Author:** [@seanm](https://discourse.vtk.org/u/seanm)\
**Replies:** 7\
**Last updated:** [April 14, 2022, 5:00pm UTC](https://discourse.vtk.org/t/why-doesnt-vtk-smp-implementation-type-default-to-stdthread/8293 "2022-04-14T17:00:06Z")

</div>

Hi all, Why does VTK\_SMP\_IMPLEMENTATION\_TYPE default to Sequential instead of STDThread? Are there platforms where STDThread doesn’t exist/work? Cheers, Sean

---

## [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…

---

## [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…

---

## [VTK 9.1 Python overloaded method call broken](https://discourse.vtk.org/t/vtk-9-1-python-overloaded-method-call-broken/8235)

<div class="topic-metadata">

**Author:** [@efahl](https://discourse.vtk.org/u/efahl)\
**Replies:** 5\
**Last updated:** [April 9, 2022, 7:55pm UTC](https://discourse.vtk.org/t/vtk-9-1-python-overloaded-method-call-broken/8235 "2022-04-09T19:55:07Z")

</div>

It appears that vtkDICOMReader.GetMetaData.Get overloaded Python methods are broken in vtk 9.1. Tested in both Python 3.9 and 3.10, same result, so not Py-version specific. I’m building VTK with the remote vtkDICOM mod…

---

## [Proposal: Introduce data object caching in vtkCompositeDataPipeline](https://discourse.vtk.org/t/proposal-introduce-data-object-caching-in-vtkcompositedatapipeline/8222)

<div class="topic-metadata">

**Author:** [@andreasbuykx](https://discourse.vtk.org/u/andreasbuykx)\
**Replies:** 4\
**Last updated:** [April 6, 2022, 2:38pm UTC](https://discourse.vtk.org/t/proposal-introduce-data-object-caching-in-vtkcompositedatapipeline/8222 "2022-04-06T14:38:55Z")

</div>

Motivation I work on an FEA application. Our pipeline data objects consist of composite data structures of vtkUnstructuredGrid or vtkPolyData. Both the number of leaf blocks and the size of the blocks may be large. Du…

---

## [Why does the select polydata class not support the SetEdgeSearchModeToGreedy method?](https://discourse.vtk.org/t/why-does-the-select-polydata-class-not-support-the-setedgesearchmodetogreedy-method/8200)

<div class="topic-metadata">

**Author:** [@vahid\_rastgoo](https://discourse.vtk.org/u/vahid_rastgoo)\
**Replies:** 0\
**Last updated:** [April 2, 2022, 6:24pm UTC](https://discourse.vtk.org/t/why-does-the-select-polydata-class-not-support-the-setedgesearchmodetogreedy-method/8200 "2022-04-02T18:24:15Z")

</div>

To solve the problem of Can’t follow edge Follow Edge, I want to use the SetEdgeSearchModeToGreedy() method that has been introduced in the site, but I get the error of not supporting this method while I installed the la…

---

## [vtkClipClosedSurface behaviour different from vtkClipPolyData](https://discourse.vtk.org/t/vtkclipclosedsurface-behaviour-different-from-vtkclippolydata/8193)

<div class="topic-metadata">

**Author:** [@aveek-brahmachari](https://discourse.vtk.org/u/aveek-brahmachari)\
**Replies:** 0\
**Last updated:** [April 1, 2022, 5:50am UTC](https://discourse.vtk.org/t/vtkclipclosedsurface-behaviour-different-from-vtkclippolydata/8193 "2022-04-01T05:50:33Z")

</div>

I am trying to use vtkClipClosedSurface with multiple planes and I want to get the region within the intersection of the cut by each plane to be cut off. However, for vtkClipClosedSurface I find that the union of the reg…

---

## [Can i get the documentation of ResliceCursor as it is removed from the version 23 in vtk.js.](https://discourse.vtk.org/t/can-i-get-the-documentation-of-reslicecursor-as-it-is-removed-from-the-version-23-in-vtk-js/8189)

<div class="topic-metadata">

**Author:** [@Mayukhdeep\_Mathur](https://discourse.vtk.org/u/Mayukhdeep_Mathur)\
**Replies:** 1\
**Last updated:** [April 1, 2022, 5:07am UTC](https://discourse.vtk.org/t/can-i-get-the-documentation-of-reslicecursor-as-it-is-removed-from-the-version-23-in-vtk-js/8189 "2022-04-01T05:07:05Z")

</div>

I am trying to implment reslice cursor in the vtk.js but now it is not supported by the 23 version of vtk.js how can i get the documentation back. Link: https://github.com/Kitware/vtk-js/tree/master/Sources/Interaction/…

---

## [Lesson 2:Import .IGES .STEP files while using VTK visualization ,simple example.](https://discourse.vtk.org/t/lesson-2-import-iges-step-files-while-using-vtk-visualization-simple-example/7991)

<div class="topic-metadata">

**Author:** [@anon41080341](https://discourse.vtk.org/u/anon41080341)\
**Replies:** 4\
**Last updated:** [March 31, 2022, 11:04am UTC](https://discourse.vtk.org/t/lesson-2-import-iges-step-files-while-using-vtk-visualization-simple-example/7991 "2022-03-31T11:04:23Z")

</div>

Dear @cory.quammen Is this the Proper way to publish Code ? Thank You. :pray: In this example, I am adding Import .Iges file and .Step File to this YouTube Video Example \[Lesson 2: Bring OpenCascade and VTK together …

---

## [how to rotate a .obj object](https://discourse.vtk.org/t/how-to-rotate-a-obj-object/8117)

<div class="topic-metadata">

**Author:** [@george66s](https://discourse.vtk.org/u/george66s)\
**Replies:** 1\
**Last updated:** [March 29, 2022, 2:26am UTC](https://discourse.vtk.org/t/how-to-rotate-a-obj-object/8117 "2022-03-29T02:26:19Z")

</div>

Hi, I am trying to rotate an object with .obj format. Is there any example that I can learn from? I checked out the example RotationAroundLine.cxx. It is about rotating an Arrow. It has the following code: // Create ar…

---

## [Kalman Filter for vtkTransform](https://discourse.vtk.org/t/kalman-filter-for-vtktransform/8141)

<div class="topic-metadata">

**Author:** [@Jens\_Munk\_Hansen](https://discourse.vtk.org/u/Jens_Munk_Hansen)\
**Replies:** 9\
**Last updated:** [March 29, 2022, 1:04am UTC](https://discourse.vtk.org/t/kalman-filter-for-vtktransform/8141 "2022-03-29T01:04:37Z")

</div>

Hi Developers I am currently implementing a pose Kalman Filter using MEKF as a spare-time project. This means that I could add this as a contribution to the VTK repository if you think it is a good idea. So far, I have…

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

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