# Latest

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

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

**Page:** 205

---

## [vector of vtkDataArray](https://discourse.vtk.org/t/vector-of-vtkdataarray/3841)

<div class="topic-metadata">

**Author:** [@kayarre](https://discourse.vtk.org/u/kayarre)\
**Replies:** 5\
**Last updated:** [August 6, 2020, 5:41pm UTC](https://discourse.vtk.org/t/vector-of-vtkdataarray/3841 "2020-08-06T17:41:12Z")

</div>

I want to make a vector of vtkDataArray where each array may be a different type. I know I can use something like std::vector\<vtkDataArray \*\> data\_arrays; and I can do something like vtkSmartPointer\<vtkDoubleArray\> …

---

## [Advantage of adding annotations to a look up table?](https://discourse.vtk.org/t/advantage-of-adding-annotations-to-a-look-up-table/3907)

<div class="topic-metadata">

**Author:** [@dmgroppe](https://discourse.vtk.org/u/dmgroppe)\
**Replies:** 2\
**Last updated:** [August 6, 2020, 1:53pm UTC](https://discourse.vtk.org/t/advantage-of-adding-annotations-to-a-look-up-table/3907 "2020-08-06T13:53:45Z")

</div>

Hi VTKers, I’m trying to use VTK to visualize some data with a categorical color map in C# and am having some issues adding annotations to the look up table. I can work around the issues by setting the table indexing to…

---

## [Glyph3D normal to polygon](https://discourse.vtk.org/t/glyph3d-normal-to-polygon/3709)

<div class="topic-metadata">

**Author:** [@efdiloreto](https://discourse.vtk.org/u/efdiloreto)\
**Replies:** 1\
**Last updated:** [August 6, 2020, 1:15pm UTC](https://discourse.vtk.org/t/glyph3d-normal-to-polygon/3709 "2020-08-06T13:15:44Z")

</div>

I’m trying to make a glyph3D normal to a polygon. Maybe I’m misinterpreting the use of normals or my approach is wrong, but I can’t make the glyphs normal to the polygon. This is what I’m getting at the moment. \*\* EDIT\*…

---

## [Transfer result of vtkVoxelModeller to STL format.](https://discourse.vtk.org/t/transfer-result-of-vtkvoxelmodeller-to-stl-format/3904)

<div class="topic-metadata">

**Author:** [@EugeneZ](https://discourse.vtk.org/u/EugeneZ)\
**Replies:** 7\
**Last updated:** [August 6, 2020, 6:10am UTC](https://discourse.vtk.org/t/transfer-result-of-vtkvoxelmodeller-to-stl-format/3904 "2020-08-06T06:10:32Z")

</div>

Hello Team, I have some voxelisation and want to save it to STL format. Why code below doesn’t generate STL-file? Thanks in advance. vtkSmartPointer voxelModeller = vtkSmartPointer::New(); voxelModeller-\>SetModelBou…

---

## [vtkRandomPool question](https://discourse.vtk.org/t/vtkrandompool-question/3918)

<div class="topic-metadata">

**Author:** [@mastrogiorgis](https://discourse.vtk.org/u/mastrogiorgis)\
**Replies:** 0\
**Last updated:** [August 5, 2020, 2:44pm UTC](https://discourse.vtk.org/t/vtkrandompool-question/3918 "2020-08-05T14:44:15Z")

</div>

Hello, Is there a way we can adjust the setting on having random points using vtkRandomPool? I would like to have random points at different coordinates whenever I run the program. Thanks,

---

## [vtkCaptionWidget crashes](https://discourse.vtk.org/t/vtkcaptionwidget-crashes/3911)

<div class="topic-metadata">

**Author:** [@alx](https://discourse.vtk.org/u/alx)\
**Replies:** 0\
**Last updated:** [August 5, 2020, 9:39am UTC](https://discourse.vtk.org/t/vtkcaptionwidget-crashes/3911 "2020-08-05T09:39:47Z")

</div>

Hello, I am trying to implement a caption widget to show the max / min locations. Unfortunately after rendering and closing the renderWindow VTK crashes. I am using Python 3.7 and VTK 8.2.0. When I delete the code for …

---

## [How to use vtkImageReslice for vtkUnstructuredGrid](https://discourse.vtk.org/t/how-to-use-vtkimagereslice-for-vtkunstructuredgrid/3847)

<div class="topic-metadata">

**Author:** [@aldis](https://discourse.vtk.org/u/aldis)\
**Replies:** 7\
**Last updated:** [August 5, 2020, 2:16am UTC](https://discourse.vtk.org/t/how-to-use-vtkimagereslice-for-vtkunstructuredgrid/3847 "2020-08-05T02:16:14Z")

</div>

Dear VTK team, I read the vtkUnstructuredGrid data from a file, and now I want to use vtkImageReslice to slice and extract it, but I did not find an example of how to use it. I hope Kind people can help me.

---

## [vtkImageReslice Output Appears to be "Shifted Up and to the Left" by one Pixel](https://discourse.vtk.org/t/vtkimagereslice-output-appears-to-be-shifted-up-and-to-the-left-by-one-pixel/3884)

<div class="topic-metadata">

**Author:** [@MichelleKline](https://discourse.vtk.org/u/MichelleKline)\
**Replies:** 5\
**Last updated:** [August 4, 2020, 5:01pm UTC](https://discourse.vtk.org/t/vtkimagereslice-output-appears-to-be-shifted-up-and-to-the-left-by-one-pixel/3884 "2020-08-04T17:01:32Z")

</div>

Hello, I am using vtkImageReslice to resample a simple image. The output image is not as expected, though. It appears to be “shifted up and to the left”. Here is what I mean: Let’s say the input to vtkImageReslice is a…

---

## [Get intersection of PolyData line and a plane](https://discourse.vtk.org/t/get-intersection-of-polydata-line-and-a-plane/3894)

<div class="topic-metadata">

**Author:** [@jrwrigh](https://discourse.vtk.org/u/jrwrigh)\
**Replies:** 4\
**Last updated:** [August 4, 2020, 3:53pm UTC](https://discourse.vtk.org/t/get-intersection-of-polydata-line-and-a-plane/3894 "2020-08-04T15:53:55Z")

</div>

I have a PolyLine and I’d like to get the data from that line that intersects a plane. How would I do that in Python. I’ve tried using vtkClipPolyData and vtkCutter to no avail; the output is empty. I’m also working in…

---

## [Convert MHD to VTU](https://discourse.vtk.org/t/convert-mhd-to-vtu/3862)

<div class="topic-metadata">

**Author:** [@Luis\_Carlos\_Carneiro](https://discourse.vtk.org/u/Luis_Carlos_Carneiro)\
**Replies:** 1\
**Last updated:** [August 4, 2020, 2:35pm UTC](https://discourse.vtk.org/t/convert-mhd-to-vtu/3862 "2020-08-04T14:35:37Z")

</div>

Dear All, Are there in VTK some conversion from MHD (3D structured image Grid) to VTU (3D unstructured image Grid i.e 3D meshes)? Thanks, Luis Gonçalves

---

## [Module wrapping classes with non-VTK names](https://discourse.vtk.org/t/module-wrapping-classes-with-non-vtk-names/3905)

<div class="topic-metadata">

**Author:** [@kit](https://discourse.vtk.org/u/kit)\
**Replies:** 7\
**Last updated:** [August 4, 2020, 2:32pm UTC](https://discourse.vtk.org/t/module-wrapping-classes-with-non-vtk-names/3905 "2020-08-04T14:32:44Z")

</div>

I have a VTK derived data type, that (for a variety of reasons) breaks the VTK naming convention. For example, it looks something like this class myType: public vtkImageData { ... blah blah .. } now I also have VTK der…

---

## [VTK Module system with mulitple projects](https://discourse.vtk.org/t/vtk-module-system-with-mulitple-projects/3880)

<div class="topic-metadata">

**Author:** [@kit](https://discourse.vtk.org/u/kit)\
**Replies:** 5\
**Last updated:** [August 4, 2020, 12:29pm UTC](https://discourse.vtk.org/t/vtk-module-system-with-mulitple-projects/3880 "2020-08-04T12:29:09Z")

</div>

Hi, I have a couple of projects that use VTK and would like to upgrade them to the new module system used with VTK 9, but am having difficulty with how I get them to link together. Let’s say the projects are projectA a…

---

## [VTK Open CASCADE integration](https://discourse.vtk.org/t/vtk-open-cascade-integration/3900)

<div class="topic-metadata">

**Author:** [@EugeneZ](https://discourse.vtk.org/u/EugeneZ)\
**Replies:** 0\
**Last updated:** [August 3, 2020, 1:53pm UTC](https://discourse.vtk.org/t/vtk-open-cascade-integration/3900 "2020-08-03T13:53:29Z")

</div>

Hello Everyone, I am new in VTK development. My target is to use Voxelisation from VTK. I have objects as TopoDS\_Shape (from OCC), I provided data from it to vtkVoxelModeller. After executing Voxel modeler I want to c…

---

## [How to color or fill the selected contour?](https://discourse.vtk.org/t/how-to-color-or-fill-the-selected-contour/3887)

<div class="topic-metadata">

**Author:** [@wulicheng](https://discourse.vtk.org/u/wulicheng)\
**Replies:** 3\
**Last updated:** [August 4, 2020, 9:50am UTC](https://discourse.vtk.org/t/how-to-color-or-fill-the-selected-contour/3887 "2020-08-04T09:50:15Z")

</div>

I am rendering a volume; And displaying its coronal plane,transverse plane,sigittal plane. Now i outlined a contour via the VTK tools, the picture like this picture 1, the code is as flows: m\_pContourWidget = vtkSmartP…

---

## [How to integrate VTK with Unity](https://discourse.vtk.org/t/how-to-integrate-vtk-with-unity/1108)

<div class="topic-metadata">

**Author:** [@Oscar](https://discourse.vtk.org/u/Oscar)\
**Replies:** 8\
**Last updated:** [August 4, 2020, 9:26am UTC](https://discourse.vtk.org/t/how-to-integrate-vtk-with-unity/1108 "2020-08-04T09:26:40Z")

</div>

Hello there, pretty new to the forum and VTK I’m working on a project that need advance rendering in Unity. I’ve thought this would be a achievable through VTK and i still think it can’t be that hard but i’m stuck. The…

---

## [Picking point position from a rendered STL](https://discourse.vtk.org/t/picking-point-position-from-a-rendered-stl/3208)

<div class="topic-metadata">

**Author:** [@Hign](https://discourse.vtk.org/u/Hign)\
**Replies:** 2\
**Last updated:** [August 3, 2020, 8:02am UTC](https://discourse.vtk.org/t/picking-point-position-from-a-rendered-stl/3208 "2020-08-03T08:02:11Z")

</div>

Hello, I have been using vtk for a project with python. Before I start my question, excuse me if this is not the place to ask about using vtk with python or if this has been asked before. I did some research but couldn’…

---

## [Where can I get the VTK 8.90?](https://discourse.vtk.org/t/where-can-i-get-the-vtk-8-90/3892)

<div class="topic-metadata">

**Author:** [@Kim\_William](https://discourse.vtk.org/u/Kim_William)\
**Replies:** 2\
**Last updated:** [August 2, 2020, 11:53pm UTC](https://discourse.vtk.org/t/where-can-i-get-the-vtk-8-90/3892 "2020-08-02T23:53:03Z")

</div>

Hi all. I tried to create the OpenCV library with viz module using VTK 9.0.0 and 9.0.1. But I failed and I found that viz module needs the 8.90.0. The ‘viz/CMakeLists.txt’ contains the following messages: if (VTK\_VER…

---

## [Calculation of the volume of hexahedral cells](https://discourse.vtk.org/t/calculation-of-the-volume-of-hexahedral-cells/3842)

<div class="topic-metadata">

**Author:** [@rodrigomologni](https://discourse.vtk.org/u/rodrigomologni)\
**Replies:** 1\
**Last updated:** [July 31, 2020, 12:18pm UTC](https://discourse.vtk.org/t/calculation-of-the-volume-of-hexahedral-cells/3842 "2020-07-31T12:18:38Z")

</div>

I would like to know the difference between vtkMeshQuality and vtkCellSizeFilter for computing the volume of hexahedron cells. According to the VTK Documentation, vtkCellSizeFilter uses vtkMeshQuality for triangles, quad…

---

## [How to make vertex colored squares show black borders](https://discourse.vtk.org/t/how-to-make-vertex-colored-squares-show-black-borders/3863)

<div class="topic-metadata">

**Author:** [@Cheng1087](https://discourse.vtk.org/u/Cheng1087)\
**Replies:** 4\
**Last updated:** [July 31, 2020, 10:55am UTC](https://discourse.vtk.org/t/how-to-make-vertex-colored-squares-show-black-borders/3863 "2020-07-31T10:55:47Z")

</div>

I have a square with four vertices, color of each vertex is different. in order to distinguish this square from other squares, I want the border to be black color. Approximately as shown below, the triangle used verte…

---

## [Beginners question regarding vtkPointDataToCellData](https://discourse.vtk.org/t/beginners-question-regarding-vtkpointdatatocelldata/3889)

<div class="topic-metadata">

**Author:** [@uwsan](https://discourse.vtk.org/u/uwsan)\
**Replies:** 2\
**Last updated:** [July 31, 2020, 9:25am UTC](https://discourse.vtk.org/t/beginners-question-regarding-vtkpointdatatocelldata/3889 "2020-07-31T09:25:36Z")

</div>

Hello, everyone, for me the topic VTK is very new, so I hope that the question is not too stupid. I’m trying to create a simple program that allows me to select a contiguous area on an STL. For this I want to use the v…

---

## [Synchronising multiple cameras](https://discourse.vtk.org/t/synchronising-multiple-cameras/3860)

<div class="topic-metadata">

**Author:** [@dwventer](https://discourse.vtk.org/u/dwventer)\
**Replies:** 1\
**Last updated:** [July 31, 2020, 2:11am UTC](https://discourse.vtk.org/t/synchronising-multiple-cameras/3860 "2020-07-31T02:11:03Z")

</div>

I have multiple cameras on multiple renderers. I have layered the RenderWindow to have one layer for each renderer. Then I have changed the centre for each camera (SetWindowCenter) so that the objects are not overlapping…

---

## [Missing file vtkCommonKitPython.so in python build](https://discourse.vtk.org/t/missing-file-vtkcommonkitpython-so-in-python-build/3882)

<div class="topic-metadata">

**Author:** [@lllmanriquelll](https://discourse.vtk.org/u/lllmanriquelll)\
**Replies:** 0\
**Last updated:** [July 30, 2020, 5:54pm UTC](https://discourse.vtk.org/t/missing-file-vtkcommonkitpython-so-in-python-build/3882 "2020-07-30T17:54:44Z")

</div>

Hi guys, I’m trying to build a vtk-8.1.2 package for python. I need to run a software that requires this version of vtk, I was able to install it using pip on Intel architecture, but now I need to run it on my ARM compu…

---

## [vtkFlyingEdges3D Usage. (Comparison with vtkContourfilter)](https://discourse.vtk.org/t/vtkflyingedges3d-usage-comparison-with-vtkcontourfilter/3873)

<div class="topic-metadata">

**Author:** [@Seun](https://discourse.vtk.org/u/Seun)\
**Replies:** 6\
**Last updated:** [July 30, 2020, 4:20pm UTC](https://discourse.vtk.org/t/vtkflyingedges3d-usage-comparison-with-vtkcontourfilter/3873 "2020-07-30T16:20:05Z")

</div>

Hi everyone, I was recently testing vtkFlyingEdges3D in replacement of vtkContourFilter and didn’t really notice that much of a difference in terms of performance, just to give an idea of the result of the task I was ca…

---

## [How to create a time aware filter that update when its temporal input changed](https://discourse.vtk.org/t/how-to-create-a-time-aware-filter-that-update-when-its-temporal-input-changed/3859)

<div class="topic-metadata">

**Author:** [@sharon](https://discourse.vtk.org/u/sharon)\
**Replies:** 1\
**Last updated:** [July 29, 2020, 4:23pm UTC](https://discourse.vtk.org/t/how-to-create-a-time-aware-filter-that-update-when-its-temporal-input-changed/3859 "2020-07-29T16:23:19Z")

</div>

Dear All, One of my filter’s input is from a temporal reader, how can make filter aware its input changed and update accordingly? In my case, the reader can read time series files and update correctly, but the filter i…

---

## [Sharing vtkGlyph3DMapper.](https://discourse.vtk.org/t/sharing-vtkglyph3dmapper/3867)

<div class="topic-metadata">

**Author:** [@Seun](https://discourse.vtk.org/u/Seun)\
**Replies:** 2\
**Last updated:** [July 29, 2020, 1:53am UTC](https://discourse.vtk.org/t/sharing-vtkglyph3dmapper/3867 "2020-07-29T01:53:39Z")

</div>

Hi everyone, I’m working with a large set of data (voxels) which I group together and have rendered using vtkGlyph3DMapper attached to an actor in a scene. However, the process of generating these points and creating th…

---

## [Create unstructured grid source that changes in time\`](https://discourse.vtk.org/t/create-unstructured-grid-source-that-changes-in-time/3868)

<div class="topic-metadata">

**Author:** [@kayarre](https://discourse.vtk.org/u/kayarre)\
**Replies:** 0\
**Last updated:** [July 28, 2020, 10:47pm UTC](https://discourse.vtk.org/t/create-unstructured-grid-source-that-changes-in-time/3868 "2020-07-28T22:47:54Z")

</div>

I have been working through the vtkTimeSourceExample.h and would am having trouble. I have this Janky (technical term) file reader that I would like to generate a xdmf3 file or vtu file for all the files to be read in.…

---

## [Determine percentage of visible background](https://discourse.vtk.org/t/determine-percentage-of-visible-background/3749)

<div class="topic-metadata">

**Author:** [@woodscn](https://discourse.vtk.org/u/woodscn)\
**Replies:** 5\
**Last updated:** [July 28, 2020, 8:26pm UTC](https://discourse.vtk.org/t/determine-percentage-of-visible-background/3749 "2020-07-28T20:26:30Z")

</div>

I need to determine what percentage of a given rendered image is background. Is there a simple way I can query that?

---

## [ImageData with Time-series (alternative of vtkTemporalDataSet?)](https://discourse.vtk.org/t/imagedata-with-time-series-alternative-of-vtktemporaldataset/3735)

<div class="topic-metadata">

**Author:** [@kusnahmi](https://discourse.vtk.org/u/kusnahmi)\
**Replies:** 6\
**Last updated:** [July 28, 2020, 7:58pm UTC](https://discourse.vtk.org/t/imagedata-with-time-series-alternative-of-vtktemporaldataset/3735 "2020-07-28T19:58:54Z")

</div>

I am dealing with time series vector data. The 3-directional velocity vector in 3D space varies through time. I came to know that there are wonderful filters for pathline and streakline, but I could not find the appropri…

---

## [vtkOrientationMarkerWidget icon](https://discourse.vtk.org/t/vtkorientationmarkerwidget-icon/3865)

<div class="topic-metadata">

**Author:** [@flaviu2](https://discourse.vtk.org/u/flaviu2)\
**Replies:** 1\
**Last updated:** [July 28, 2020, 7:17pm UTC](https://discourse.vtk.org/t/vtkorientationmarkerwidget-icon/3865 "2020-07-28T19:17:04Z")

</div>

I saw here an example of how to put a little volume (rabbit) as vtkOrientationMarkerWidget: https://vtk.org/Wiki/VTK/Examples/Cxx/Widgets/OrientationMarkerWidget How can I use another image instead of vtkXMLPolyDataRead…

---

## [\[RESOLVED\]: Issue LeftButtonPressEvent() to vtkRenderWindowInteractor with C++?](https://discourse.vtk.org/t/resolved-issue-leftbuttonpressevent-to-vtkrenderwindowinteractor-with-c/3858)

<div class="topic-metadata">

**Author:** [@Tomasso](https://discourse.vtk.org/u/Tomasso)\
**Replies:** 1\
**Last updated:** [July 28, 2020, 6:36pm UTC](https://discourse.vtk.org/t/resolved-issue-leftbuttonpressevent-to-vtkrenderwindowinteractor-with-c/3858 "2020-07-28T18:36:37Z")

</div>

My C++ application displays an actor in a vtkRenderWindow, with an associated vtkGenericRenderWindowInteractor. If in “camera mode” and I left-click the mouse in the window at position x,y the surface is rendered from a …

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

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