# Latest

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

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

**Page:** 111

---

## [How to tune babel loader to properly import a module named macro.js when using CRA](https://discourse.vtk.org/t/how-to-tune-babel-loader-to-properly-import-a-module-named-macro-js-when-using-cra/5808)

<div class="topic-metadata">

**Author:** [@take5v](https://discourse.vtk.org/u/take5v)\
**Replies:** 9\
**Last updated:** [November 22, 2022, 4:40pm UTC](https://discourse.vtk.org/t/how-to-tune-babel-loader-to-properly-import-a-module-named-macro-js-when-using-cra/5808 "2022-11-22T16:40:36Z")

</div>

Hi, In order to create a VTK class, macro.js module needs to be imported. When I import this module (import macro from '@kitware/vtk.js/macro') in my application I get an error: SyntaxError: Cannot use import statement …

---

## [write vtkInformation](https://discourse.vtk.org/t/write-vtkinformation/9915)

<div class="topic-metadata">

**Author:** [@hamid\_badi](https://discourse.vtk.org/u/hamid_badi)\
**Replies:** 0\
**Last updated:** [November 21, 2022, 10:07pm UTC](https://discourse.vtk.org/t/write-vtkinformation/9915 "2022-11-21T22:07:14Z")

</div>

Hello, Is there a way to serialize extra keys from vtkInformation of an object ? I mean, i create an extra object key attached (instance of a class MyInfoObj which derived from vtkObjectBase) to a vtkPolyData object, I…

---

## [vtkMultiBlockDataSet name](https://discourse.vtk.org/t/vtkmultiblockdataset-name/9913)

<div class="topic-metadata">

**Author:** [@hamid\_badi](https://discourse.vtk.org/u/hamid_badi)\
**Replies:** 2\
**Last updated:** [November 21, 2022, 9:29pm UTC](https://discourse.vtk.org/t/vtkmultiblockdataset-name/9913 "2022-11-21T21:29:26Z")

</div>

Hello, My questions are related to vtkMultiBlockDataSet : In a vtm file it’s possible to name each block using the xml attribut name, is there a way to name the vtkMultiBlockDataSet root object so that it’ll appear in…

---

## [MakeKey location](https://discourse.vtk.org/t/makekey-location/9912)

<div class="topic-metadata">

**Author:** [@hamid\_badi](https://discourse.vtk.org/u/hamid_badi)\
**Replies:** 0\
**Last updated:** [November 21, 2022, 8:12pm UTC](https://discourse.vtk.org/t/makekey-location/9912 "2022-11-21T20:12:56Z")

</div>

Hello, I’m little but confused about vtk MakeKey, what location stands for ? Isn’t name enough to make the key unique ? Thanks.

---

## [how to create a annotation actor, which has more. than 4 face, clickable, not zoomable, and stay at the cornor](https://discourse.vtk.org/t/how-to-create-a-annotation-actor-which-has-more-than-4-face-clickable-not-zoomable-and-stay-at-the-cornor/9881)

<div class="topic-metadata">

**Author:** [@peng\_peter](https://discourse.vtk.org/u/peng_peter)\
**Replies:** 1\
**Last updated:** [November 21, 2022, 4:33pm UTC](https://discourse.vtk.org/t/how-to-create-a-annotation-actor-which-has-more-than-4-face-clickable-not-zoomable-and-stay-at-the-cornor/9881 "2022-11-21T16:33:29Z")

</div>

how to create a annotation actor, which has more. than 4 face, clickable, not zoomable, and stay at the cornor

---

## [Would 3x3 matrix multiplication be faster on vtk using Laderman's algorithm?](https://discourse.vtk.org/t/would-3x3-matrix-multiplication-be-faster-on-vtk-using-ladermans-algorithm/9884)

<div class="topic-metadata">

**Author:** [@mau\_igna\_06](https://discourse.vtk.org/u/mau_igna_06)\
**Replies:** 2\
**Last updated:** [November 21, 2022, 3:15pm UTC](https://discourse.vtk.org/t/would-3x3-matrix-multiplication-be-faster-on-vtk-using-ladermans-algorithm/9884 "2022-11-21T15:15:53Z")

</div>

Here is stackoverflow related question: Please look at the second answer. Here is the current implementation on vtk: https://gitlab.kitware.com/vtk/vtk/-/blob/master/Common/Core/vtkMath.cxx#L1610 Thank you for the a…

---

## [How to change dpi of saving pictures with vtkBMPWriter](https://discourse.vtk.org/t/how-to-change-dpi-of-saving-pictures-with-vtkbmpwriter/9908)

<div class="topic-metadata">

**Author:** [@Pariss.Guo](https://discourse.vtk.org/u/Pariss.Guo)\
**Replies:** 2\
**Last updated:** [November 21, 2022, 2:04pm UTC](https://discourse.vtk.org/t/how-to-change-dpi-of-saving-pictures-with-vtkbmpwriter/9908 "2022-11-21T14:04:09Z")

</div>

Hello， I know SetSpacing SetDimensions in vtkImageData, which set the pixel interval and the number of pixels number. And the dpi means the number of pixels per 2.54cm. If I want to set the dpi to 150, the spacing sho…

---

## [Potential vtkUnstructuredGrid::ShallowCopy from vtkUnstructuredGridBase crash](https://discourse.vtk.org/t/potential-vtkunstructuredgrid-shallowcopy-from-vtkunstructuredgridbase-crash/9898)

<div class="topic-metadata">

**Author:** [@Bengt](https://discourse.vtk.org/u/Bengt)\
**Replies:** 0\
**Last updated:** [November 20, 2022, 6:40pm UTC](https://discourse.vtk.org/t/potential-vtkunstructuredgrid-shallowcopy-from-vtkunstructuredgridbase-crash/9898 "2022-11-20T18:40:32Z")

</div>

We’re using a vtkMappedUnstructuredGrid for our input data. One of our filters takes our type as input, adds data and is supposed to output a regular vtkUnstructuredGrid. We ran into a crash situation with this scenario …

---

## [vtkClipClosedSurface bad result](https://discourse.vtk.org/t/vtkclipclosedsurface-bad-result/9879)

<div class="topic-metadata">

**Author:** [@Olivier](https://discourse.vtk.org/u/Olivier)\
**Replies:** 6\
**Last updated:** [November 20, 2022, 8:58am UTC](https://discourse.vtk.org/t/vtkclipclosedsurface-bad-result/9879 "2022-11-20T08:58:57Z")

</div>

Hi friends, I’m facing “many” bad results with capping done by vtkClipClosedSurface + vtkContourTriangulator … vtkClipClosedSurface does a perfect job calculating the clipped triangles / lines, but capping is another s…

---

## [ResliceCursorWidget first scrol tick ignore](https://discourse.vtk.org/t/reslicecursorwidget-first-scrol-tick-ignore/9883)

<div class="topic-metadata">

**Author:** [@michaelscott](https://discourse.vtk.org/u/michaelscott)\
**Replies:** 2\
**Last updated:** [November 18, 2022, 6:29pm UTC](https://discourse.vtk.org/t/reslicecursorwidget-first-scrol-tick-ignore/9883 "2022-11-18T18:29:52Z")

</div>

Hello, I am trying to use ResliceCursorWidget to scroll through an image. The example vtk.js skips the first scroll tick on the 2D views. Is there a way to fix that? Thanks

---

## [Using multiple proxyManagers to load multiple images?](https://discourse.vtk.org/t/using-multiple-proxymanagers-to-load-multiple-images/9795)

<div class="topic-metadata">

**Author:** [@davidshq](https://discourse.vtk.org/u/davidshq)\
**Replies:** 6\
**Last updated:** [November 18, 2022, 6:06pm UTC](https://discourse.vtk.org/t/using-multiple-proxymanagers-to-load-multiple-images/9795 "2022-11-18T18:06:07Z")

</div>

I’m working with MIQA and it uses a proxyManager to load a medical scan and it can show multiple views of the same scan. Now I’m trying to do something slightly different - I want to load three separate medical scans si…

---

## [Are there any examples or tutorials on using a vtk.js proxyManager to load multiple views from different input sources?](https://discourse.vtk.org/t/are-there-any-examples-or-tutorials-on-using-a-vtk-js-proxymanager-to-load-multiple-views-from-different-input-sources/9865)

<div class="topic-metadata">

**Author:** [@davidshq](https://discourse.vtk.org/u/davidshq)\
**Replies:** 3\
**Last updated:** [November 18, 2022, 6:02pm UTC](https://discourse.vtk.org/t/are-there-any-examples-or-tutorials-on-using-a-vtk-js-proxymanager-to-load-multiple-views-from-different-input-sources/9865 "2022-11-18T18:02:02Z")

</div>

I’m back. :grinning: I learned from @Sebastien\_Jourdain that I probably don’t need multiple proxyManagers to handle multiple scans. I’m now wondering if there are any resources (tutorials, code examples) of setting up …

---

## [What caused the different VolumeRender outputs between pure VTK and 3DSlicer](https://discourse.vtk.org/t/what-caused-the-different-volumerender-outputs-between-pure-vtk-and-3dslicer/9862)

<div class="topic-metadata">

**Author:** [@zhanghc](https://discourse.vtk.org/u/zhanghc)\
**Replies:** 0\
**Last updated:** [November 17, 2022, 1:28pm UTC](https://discourse.vtk.org/t/what-caused-the-different-volumerender-outputs-between-pure-vtk-and-3dslicer/9862 "2022-11-17T13:28:35Z")

</div>

This is a heart image rendered by pure VTK code: This is the same heart rendered by 3D Slicer: I used the same transfer functions and tried to tweak some parameters on the mapper (vtkOpenGLGPUVolumeRayCastMapper)…

---

## [Different Behavior from vtkAVSucdReader + vtkGeometryFilter going from 9.0.3 to \>= 9.1](https://discourse.vtk.org/t/different-behavior-from-vtkavsucdreader-vtkgeometryfilter-going-from-9-0-3-to-9-1/9868)

<div class="topic-metadata">

**Author:** [@ksh\_co](https://discourse.vtk.org/u/ksh_co)\
**Replies:** 0\
**Last updated:** [November 17, 2022, 11:40pm UTC](https://discourse.vtk.org/t/different-behavior-from-vtkavsucdreader-vtkgeometryfilter-going-from-9-0-3-to-9-1/9868 "2022-11-17T23:40:55Z")

</div>

Hello I have been using python VTK, as packaged by Anaconda, for about two years now to analyze data contained in unstructured cell data (UCD) meshes. My basic read process is as follows: reader = vtkAVSucdReader() rea…

---

## [vtkActor do not rotate as I want](https://discourse.vtk.org/t/vtkactor-do-not-rotate-as-i-want/9849)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 1\
**Last updated:** [November 17, 2022, 8:15pm UTC](https://discourse.vtk.org/t/vtkactor-do-not-rotate-as-i-want/9849 "2022-11-17T20:15:30Z")

</div>

The code to reproduce my problem is: import vtkmodules.all as vtk cylinder = vtk.vtkCylinderSource() cylinder.SetCenter(0, 10, 0) cylinder.SetRadius(5) cylinder.SetHeight(10) cylinder.SetResolution(100) cylinder.Update…

---

## [get a continuous line from a polydata structure](https://discourse.vtk.org/t/get-a-continuous-line-from-a-polydata-structure/9864)

<div class="topic-metadata">

**Author:** [@PBrockmann](https://discourse.vtk.org/u/PBrockmann)\
**Replies:** 4\
**Last updated:** [November 17, 2022, 7:12pm UTC](https://discourse.vtk.org/t/get-a-continuous-line-from-a-polydata-structure/9864 "2022-11-17T19:12:19Z")

</div>

Hi, I would like to create different continuous lines from a polydata made of cells (sparse segments). For now I have successfully found the different regions by using a vtk.vtkPolyDataConnectivityFilter(). I have a q…

---

## [gitlab CI/CD for Visual Studio 2019](https://discourse.vtk.org/t/gitlab-ci-cd-for-visual-studio-2019/9833)

<div class="topic-metadata">

**Author:** [@drpeterfranz](https://discourse.vtk.org/u/drpeterfranz)\
**Replies:** 2\
**Last updated:** [November 17, 2022, 6:46pm UTC](https://discourse.vtk.org/t/gitlab-ci-cd-for-visual-studio-2019/9833 "2022-11-17T18:46:07Z")

</div>

Hi guys, sorry it’s slighty off ‘vtk’ topic… I am trying to get a gitlab CI/CD pipeline going, and I really struggle getting my project built using Windows/Visual Studio 2019. I notice that VTK has runners using VS 20…

---

## [Brain segmentation on .VTK head surface](https://discourse.vtk.org/t/brain-segmentation-on-vtk-head-surface/9706)

<div class="topic-metadata">

**Author:** [@peeling](https://discourse.vtk.org/u/peeling)\
**Replies:** 16\
**Last updated:** [November 17, 2022, 3:09pm UTC](https://discourse.vtk.org/t/brain-segmentation-on-vtk-head-surface/9706 "2022-11-17T15:09:29Z")

</div>

Hey, I have a VTK surface of a human head (image below): I need to apply peeling to it to have the shape of the brain, (segmentation of the brain) using coordinates from the VTI volume data (MRI of the head), So u…

---

## [Beginner Question: Where is \`publicAPI.getActiveSource\` declared?](https://discourse.vtk.org/t/beginner-question-where-is-publicapi-getactivesource-declared/9863)

<div class="topic-metadata">

**Author:** [@davidshq](https://discourse.vtk.org/u/davidshq)\
**Replies:** 1\
**Last updated:** [November 17, 2022, 3:05pm UTC](https://discourse.vtk.org/t/beginner-question-where-is-publicapi-getactivesource-declared/9863 "2022-11-17T15:05:30Z")

</div>

I can find declarations for most functions in the vtk.js source code. For example, publicAPI.setActiveSource is in /Proxy/Core/ProxyManager/core.js: publicAPI.setActiveSource = (source) =\> { if (model.activeSource…

---

## [Custom file format for VTK](https://discourse.vtk.org/t/custom-file-format-for-vtk/9855)

<div class="topic-metadata">

**Author:** [@AndreAhmed](https://discourse.vtk.org/u/AndreAhmed)\
**Replies:** 10\
**Last updated:** [November 17, 2022, 3:01pm UTC](https://discourse.vtk.org/t/custom-file-format-for-vtk/9855 "2022-11-17T15:01:41Z")

</div>

Hello, I have a custom file format and I do conversion to VTK to to let VTK render my mesh, I would like to avoid such conversion from my mesh to VTK and from VTK to my mesh. Is there a suitable solution so that I inje…

---

## [Mapper and PolyData Have Different Bounds](https://discourse.vtk.org/t/mapper-and-polydata-have-different-bounds/9839)

<div class="topic-metadata">

**Author:** [@wmm](https://discourse.vtk.org/u/wmm)\
**Replies:** 0\
**Last updated:** [November 17, 2022, 2:39am UTC](https://discourse.vtk.org/t/mapper-and-polydata-have-different-bounds/9839 "2022-11-17T02:39:07Z")

</div>

I have a vtkPolyData object controlled by a vtkActor and a vtkPolyDataMapper. In the VTK 8.x version of my app I could transform the polydata, store it back in mapper, and the bounds of the actor, mapper, and polydata w…

---

## [Find the nearest triangle from a selected point](https://discourse.vtk.org/t/find-the-nearest-triangle-from-a-selected-point/9837)

<div class="topic-metadata">

**Author:** [@Henrik](https://discourse.vtk.org/u/Henrik)\
**Replies:** 5\
**Last updated:** [November 16, 2022, 2:14pm UTC](https://discourse.vtk.org/t/find-the-nearest-triangle-from-a-selected-point/9837 "2022-11-16T14:14:05Z")

</div>

Hey guys, i’m very new into VTK and using the 5.8. I already archieved to build a small 3D Plotter to open and view some .stl files. Now i’m trying to implementate a function that calculates me the nearest triangle from…

---

## [how to make js kind of vtkXMLUnstructuredGridReader.cpp so that I can use vtkXMLUnstructuredGridReader inside of js or vtk.js ?](https://discourse.vtk.org/t/how-to-make-js-kind-of-vtkxmlunstructuredgridreader-cpp-so-that-i-can-use-vtkxmlunstructuredgridreader-inside-of-js-or-vtk-js/9834)

<div class="topic-metadata">

**Author:** [@peng\_peter](https://discourse.vtk.org/u/peng_peter)\
**Replies:** 1\
**Last updated:** [November 16, 2022, 8:09am UTC](https://discourse.vtk.org/t/how-to-make-js-kind-of-vtkxmlunstructuredgridreader-cpp-so-that-i-can-use-vtkxmlunstructuredgridreader-inside-of-js-or-vtk-js/9834 "2022-11-16T08:09:01Z")

</div>

how to make js kind of vtkXMLUnstructuredGridReader.cpp so that I can use vtkXMLUnstructuredGridReader inside of js or vtk.js ?

---

## [Why is "number of components : 1" of color in "vtkArrowHandleRepresentation"](https://discourse.vtk.org/t/why-is-number-of-components-1-of-color-in-vtkarrowhandlerepresentation/9820)

<div class="topic-metadata">

**Author:** [@YHJ](https://discourse.vtk.org/u/YHJ)\
**Replies:** 2\
**Last updated:** [November 16, 2022, 4:01am UTC](https://discourse.vtk.org/t/why-is-number-of-components-1-of-color-in-vtkarrowhandlerepresentation/9820 "2022-11-16T04:01:32Z")

</div>

Hello. I’m sorry for the frequent questions these days. I’m just trying to change the color of “Handle” in “LineWidget”, but it doesn’t work well. The setColor method of the Handle enters a one-dimensional float value…

---

## [why after input .vtu file to vtureader inside of itk.js, then the vtkread inside of vtureader does not output any thing from my case](https://discourse.vtk.org/t/why-after-input-vtu-file-to-vtureader-inside-of-itk-js-then-the-vtkread-inside-of-vtureader-does-not-output-any-thing-from-my-case/9815)

<div class="topic-metadata">

**Author:** [@peng\_peter](https://discourse.vtk.org/u/peng_peter)\
**Replies:** 1\
**Last updated:** [November 15, 2022, 3:42pm UTC](https://discourse.vtk.org/t/why-after-input-vtu-file-to-vtureader-inside-of-itk-js-then-the-vtkread-inside-of-vtureader-does-not-output-any-thing-from-my-case/9815 "2022-11-15T15:42:39Z")

</div>

I use vue3+vite+typescript+@kitware/vtk.js+itk.js , then I input a .vtu file to vtu reader， I can see the vtu file that I input from rawDataBuffer, but the output is null, anyone can give me any help. thank you so much …

---

## [Get scalar value at selected coordinate from interpolated polydata](https://discourse.vtk.org/t/get-scalar-value-at-selected-coordinate-from-interpolated-polydata/9808)

<div class="topic-metadata">

**Author:** [@Waldeinsamkeit83](https://discourse.vtk.org/u/Waldeinsamkeit83)\
**Replies:** 4\
**Last updated:** [November 15, 2022, 2:08pm UTC](https://discourse.vtk.org/t/get-scalar-value-at-selected-coordinate-from-interpolated-polydata/9808 "2022-11-15T14:08:26Z")

</div>

Hi, I used PointInterpolater example ( https://kitware.github.io/vtk-examples/site/Cxx/Meshes/PointInterpolator ) code to visualize difference between 3d scanner point cloud data and nominal CAD data. Is it possible to…

---

## [vtkContext2D polygon filling disappears when zooming](https://discourse.vtk.org/t/vtkcontext2d-polygon-filling-disappears-when-zooming/9827)

<div class="topic-metadata">

**Author:** [@Mezitor](https://discourse.vtk.org/u/Mezitor)\
**Replies:** 0\
**Last updated:** [November 15, 2022, 1:38pm UTC](https://discourse.vtk.org/t/vtkcontext2d-polygon-filling-disappears-when-zooming/9827 "2022-11-15T13:38:07Z")

</div>

Hello! I’m using vtkContext2D as painter with DrawQuadStrip function to draw on vtkXYchart. It works fine, but when I’m zooming in filling of quads is disappearing. Only thing I found on it is correspondence with …

---

## [Concave polygon, issue with solid representation and vtkDelaunay2D](https://discourse.vtk.org/t/concave-polygon-issue-with-solid-representation-and-vtkdelaunay2d/9823)

<div class="topic-metadata">

**Author:** [@ugis](https://discourse.vtk.org/u/ugis)\
**Replies:** 2\
**Last updated:** [November 15, 2022, 11:08am UTC](https://discourse.vtk.org/t/concave-polygon-issue-with-solid-representation-and-vtkdelaunay2d/9823 "2022-11-15T11:08:53Z")

</div>

Dear developers, I was trying to test some functionality with a simple concave polygon but hit the following issue - after I draw the desired shape, only the wireframe is correct, but solid representation does not show …

---

## [Two viewer of same scene in VTK](https://discourse.vtk.org/t/two-viewer-of-same-scene-in-vtk/9822)

<div class="topic-metadata">

**Author:** [@Heydar](https://discourse.vtk.org/u/Heydar)\
**Replies:** 0\
**Last updated:** [November 15, 2022, 9:12am UTC](https://discourse.vtk.org/t/two-viewer-of-same-scene-in-vtk/9822 "2022-11-15T09:12:47Z")

</div>

The VTK library really is powerful . The question that I could not handle was how we could just create a scene with 2 cameras! , I found that we should create 2 renderers(from other question/answer), so we should add all…

---

## [Delete() doesn't release memory?](https://discourse.vtk.org/t/delete-doesnt-release-memory/9642)

<div class="topic-metadata">

**Author:** [@MKRangers](https://discourse.vtk.org/u/MKRangers)\
**Replies:** 15\
**Last updated:** [November 15, 2022, 5:40am UTC](https://discourse.vtk.org/t/delete-doesnt-release-memory/9642 "2022-11-15T05:40:24Z")

</div>

Hi VTK experts, I have a number of image stacks of which I need to crop a VOI out after I assemble them. I used vtkImageAppend\* volumeAppend = vtkImageAppend::New() to assemble these stacks forming one single volume. Th…

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

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