# Latest

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

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

**Page:** 175

---

## [Compatibility VTK with python 3.9](https://discourse.vtk.org/t/compatibility-vtk-with-python-3-9/5234)

<div class="topic-metadata">

**Author:** [@annagulcher](https://discourse.vtk.org/u/annagulcher)\
**Replies:** 2\
**Last updated:** [May 31, 2021, 9:58pm UTC](https://discourse.vtk.org/t/compatibility-vtk-with-python-3-9/5234 "2021-05-31T21:58:23Z")

</div>

For a visualisation class I’m taking, I need to use VTK, and as I’m more familiar with Python than C++ I hope to use the python VTK interface. However, I’m unable to install VTK because it is not compatible with Python 3…

---

## [Mapping between coordinate position (x,y,z) and voxel index](https://discourse.vtk.org/t/mapping-between-coordinate-position-x-y-z-and-voxel-index/5357)

<div class="topic-metadata">

**Author:** [@Luis\_Carlos\_Carneiro](https://discourse.vtk.org/u/Luis_Carlos_Carneiro)\
**Replies:** 7\
**Last updated:** [May 31, 2021, 3:37pm UTC](https://discourse.vtk.org/t/mapping-between-coordinate-position-x-y-z-and-voxel-index/5357 "2021-05-31T15:37:15Z")

</div>

Dear All, Having a (x,y,z) got with picking with a displayed mhd file, exists any VTK instruction to convert to the voxel index (other (x,y,z), preferable in float) in the image in memory? Notice that the camera was ch…

---

## [SetLabelFormat](https://discourse.vtk.org/t/setlabelformat/5894)

<div class="topic-metadata">

**Author:** [@devngc](https://discourse.vtk.org/u/devngc)\
**Replies:** 0\
**Last updated:** [May 31, 2021, 1:00pm UTC](https://discourse.vtk.org/t/setlabelformat/5894 "2021-05-31T13:00:20Z")

</div>

Is there a good reference on how to use SetLabelFormat method of the vtkScalarBarActor class? I have looked at this post already which is helpful. I used ‘%-#6.3g’ (default value) to get integer values for labels of a S…

---

## [Getting 3D ImageData from polyData](https://discourse.vtk.org/t/getting-3d-imagedata-from-polydata/5893)

<div class="topic-metadata">

**Author:** [@Tnmw](https://discourse.vtk.org/u/Tnmw)\
**Replies:** 0\
**Last updated:** [May 31, 2021, 11:47am UTC](https://discourse.vtk.org/t/getting-3d-imagedata-from-polydata/5893 "2021-05-31T11:47:16Z")

</div>

Hi all, I am trying to use vtk to load in an object stored in an .stl file, and fill a structured 3D grid with the volume of the object present in each grid cell. (If there is an obvious way to do this which I am missi…

---

## [The range of the SetPosition values.](https://discourse.vtk.org/t/the-range-of-the-setposition-values/5835)

<div class="topic-metadata">

**Author:** [@Kim\_William](https://discourse.vtk.org/u/Kim_William)\
**Replies:** 4\
**Last updated:** [May 31, 2021, 12:43am UTC](https://discourse.vtk.org/t/the-range-of-the-setposition-values/5835 "2021-05-31T00:43:00Z")

</div>

Hi all. I have a question about the SetPosition function of the vtkCamera class. I have found a reference manual for the SetPosition function. But I don’t understand what is the range of the position. (I can pass t…

---

## [Extract cubic volume from transformed imageData](https://discourse.vtk.org/t/extract-cubic-volume-from-transformed-imagedata/5841)

<div class="topic-metadata">

**Author:** [@dani](https://discourse.vtk.org/u/dani)\
**Replies:** 2\
**Last updated:** [May 30, 2021, 2:32am UTC](https://discourse.vtk.org/t/extract-cubic-volume-from-transformed-imagedata/5841 "2021-05-30T02:32:09Z")

</div>

Hi, I am new in VTK. I am using Python 3.7 for VTK 9.0.1 under anaconda in Ubuntu Linux. I do have a 3D numpy array with a 3D scalar volume image and a cube source. I would like to split the image in two parts: the one…

---

## [Python wrapping is slow on Windows](https://discourse.vtk.org/t/python-wrapping-is-slow-on-windows/5862)

<div class="topic-metadata">

**Author:** [@lassoan](https://discourse.vtk.org/u/lassoan)\
**Replies:** 18\
**Last updated:** [May 28, 2021, 11:34pm UTC](https://discourse.vtk.org/t/python-wrapping-is-slow-on-windows/5862 "2021-05-28T23:34:50Z")

</div>

We use VTK’s Python wrapper for VTK classes in 3D Slicer and we find that on Windows it can take several minutes to generate the hierarchy files for each larger library. If we change a header file at lower level, hierarc…

---

## [rotate and translate assemblies](https://discourse.vtk.org/t/rotate-and-translate-assemblies/5882)

<div class="topic-metadata">

**Author:** [@bernhard-42](https://discourse.vtk.org/u/bernhard-42)\
**Replies:** 0\
**Last updated:** [May 28, 2021, 1:13pm UTC](https://discourse.vtk.org/t/rotate-and-translate-assemblies/5882 "2021-05-28T13:13:03Z")

</div>

I followed “Is there a vtkPropAssembly class we can use in vtkjs? · Issue #1319 · Kitware/vtk-js · GitHub” and created an vtkAssembly class with getNestedProps, getBounds and getActors (see below). The visualisation work…

---

## [Combine multiple ExodusII results into single geometry](https://discourse.vtk.org/t/combine-multiple-exodusii-results-into-single-geometry/5878)

<div class="topic-metadata">

**Author:** [@aeslaughter](https://discourse.vtk.org/u/aeslaughter)\
**Replies:** 1\
**Last updated:** [May 28, 2021, 4:42am UTC](https://discourse.vtk.org/t/combine-multiple-exodusii-results-into-single-geometry/5878 "2021-05-28T04:42:03Z")

</div>

I am attempting to load multiple ExodusII results into a single geometry. The results are from a set of simulations that are performed independent, but are all related to the same multi-physics simulation. Attached is m…

---

## [How to implement integration point](https://discourse.vtk.org/t/how-to-implement-integration-point/5838)

<div class="topic-metadata">

**Author:** [@gaetanocmr](https://discourse.vtk.org/u/gaetanocmr)\
**Replies:** 3\
**Last updated:** [May 27, 2021, 11:55am UTC](https://discourse.vtk.org/t/how-to-implement-integration-point/5838 "2021-05-27T11:55:35Z")

</div>

Hello everyone, I would like to implement integration point in my celltype line. I’m doing some analysis on beam element, so I have the node “i” and “j” and the connectivity of the element i - j. StressStrain of this …

---

## [Reslice Cursor LineSource appearing dark in certain older iOS devices](https://discourse.vtk.org/t/reslice-cursor-linesource-appearing-dark-in-certain-older-ios-devices/5864)

<div class="topic-metadata">

**Author:** [@Mathews\_JS](https://discourse.vtk.org/u/Mathews_JS)\
**Replies:** 0\
**Last updated:** [May 26, 2021, 9:33am UTC](https://discourse.vtk.org/t/reslice-cursor-linesource-appearing-dark-in-certain-older-ios-devices/5864 "2021-05-26T09:33:33Z")

</div>

Hi, I am using the VTK JS version 14.15.5, And I am running the “ResliceCursor” example on three different iOS devices iPhone SE2, iPad(6thGen) and iPad Air(4thGen). While running the example on iPhone SE2 and iPad Air…

---

## [Assigning Multiple Tensors to a Point](https://discourse.vtk.org/t/assigning-multiple-tensors-to-a-point/5867)

<div class="topic-metadata">

**Author:** [@nrsharan](https://discourse.vtk.org/u/nrsharan)\
**Replies:** 2\
**Last updated:** [May 26, 2021, 3:36pm UTC](https://discourse.vtk.org/t/assigning-multiple-tensors-to-a-point/5867 "2021-05-26T15:36:02Z")

</div>

Hi everyone, I am using VTK to generate .vtu files from Java to use them in ParaView. I am trying to use polyData.GetPointData().SetTensors(stress) polyData.GetPointData().SetTensors(strain) where polyData is a varia…

---

## [Upsample vtkPolyData](https://discourse.vtk.org/t/upsample-vtkpolydata/5865)

<div class="topic-metadata">

**Author:** [@rijobro](https://discourse.vtk.org/u/rijobro)\
**Replies:** 3\
**Last updated:** [May 26, 2021, 12:31pm UTC](https://discourse.vtk.org/t/upsample-vtkpolydata/5865 "2021-05-26T12:31:59Z")

</div>

I have a set of 3d coordinates and their triangulations, which have been pre-computed and this is the start of my pipeline. I also have a colour that corresponds to each of these points. I can visualise the surface as ex…

---

## [How to generate clipped plane area?](https://discourse.vtk.org/t/how-to-generate-clipped-plane-area/5823)

<div class="topic-metadata">

**Author:** [@Dgg820502](https://discourse.vtk.org/u/Dgg820502)\
**Replies:** 5\
**Last updated:** [May 26, 2021, 8:59am UTC](https://discourse.vtk.org/t/how-to-generate-clipped-plane-area/5823 "2021-05-26T08:59:14Z")

</div>

Please help, I have generated the clipped plane of ear canal but which VTK function should I use to generate the clipped plane area? Many thanks in advance.

---

## [Rotation of two vectors](https://discourse.vtk.org/t/rotation-of-two-vectors/5858)

<div class="topic-metadata">

**Author:** [@Koly](https://discourse.vtk.org/u/Koly)\
**Replies:** 1\
**Last updated:** [May 25, 2021, 9:54pm UTC](https://discourse.vtk.org/t/rotation-of-two-vectors/5858 "2021-05-25T21:54:16Z")

</div>

Given two three-dimensional unit vectors A and B, calculate the rotation angle (including the order) from A to B.

---

## [Glyph3D problems with orientation](https://discourse.vtk.org/t/glyph3d-problems-with-orientation/5797)

<div class="topic-metadata">

**Author:** [@Tees](https://discourse.vtk.org/u/Tees)\
**Replies:** 5\
**Last updated:** [May 25, 2021, 3:31pm UTC](https://discourse.vtk.org/t/glyph3d-problems-with-orientation/5797 "2021-05-25T15:31:35Z")

</div>

Hello I am new to VTK and have the problem that my glyphs are not oriented and i don’t understand why This is the orientation i get: and this should be their orientation: This is my Code: void performGlyph(const…

---

## [Client-Server of Python Server Menu](https://discourse.vtk.org/t/client-server-of-python-server-menu/5772)

<div class="topic-metadata">

**Author:** [@Luis\_Carlos\_Carneiro](https://discourse.vtk.org/u/Luis_Carlos_Carneiro)\
**Replies:** 13\
**Last updated:** [May 25, 2021, 2:55pm UTC](https://discourse.vtk.org/t/client-server-of-python-server-menu/5772 "2021-05-25T14:55:44Z")

</div>

Dear All, I am using the example web-project-templates-master that replicate an OpenGL window in the Python server side in a web browser client side. Now, if I want to create a menu with buttons in the server side (Pyth…

---

## [Assigning node number vtk file](https://discourse.vtk.org/t/assigning-node-number-vtk-file/5859)

<div class="topic-metadata">

**Author:** [@gaetanocmr](https://discourse.vtk.org/u/gaetanocmr)\
**Replies:** 0\
**Last updated:** [May 25, 2021, 8:18am UTC](https://discourse.vtk.org/t/assigning-node-number-vtk-file/5859 "2021-05-25T08:18:46Z")

</div>

Hello there, I’m facing the following problem: I’m making a vtk file with all my point, but I do not want to assign the default number of the node in vtk I have my numbering instead. I’m generating a file like this: #…

---

## [Generate VTK mesh from point and connectivity](https://discourse.vtk.org/t/generate-vtk-mesh-from-point-and-connectivity/5855)

<div class="topic-metadata">

**Author:** [@gaetanocmr](https://discourse.vtk.org/u/gaetanocmr)\
**Replies:** 1\
**Last updated:** [May 25, 2021, 12:44am UTC](https://discourse.vtk.org/t/generate-vtk-mesh-from-point-and-connectivity/5855 "2021-05-25T00:44:48Z")

</div>

Hello guys, I have two dictionary in python with the same information: first dictionary at each key contains the informations about nodes of my mesh, so the node number and the (x,y,z) coordinate Second dictionary…

---

## [about the ViewProxy](https://discourse.vtk.org/t/about-the-viewproxy/5843)

<div class="topic-metadata">

**Author:** [@zrxiaojie](https://discourse.vtk.org/u/zrxiaojie)\
**Replies:** 4\
**Last updated:** [May 24, 2021, 4:11pm UTC](https://discourse.vtk.org/t/about-the-viewproxy/5843 "2021-05-24T16:11:42Z")

</div>

Hi, I have a question about the ViewProxy. I try to realize the code like the MouseRangeManipulator example through the ViewProxy. and I create a div in the index.html as a container. But I find that although my mouse i…

---

## [SSAA and FXAA not working](https://discourse.vtk.org/t/ssaa-and-fxaa-not-working/411)

<div class="topic-metadata">

**Author:** [@chuan](https://discourse.vtk.org/u/chuan)\
**Replies:** 4\
**Last updated:** [May 24, 2021, 12:14pm UTC](https://discourse.vtk.org/t/ssaa-and-fxaa-not-working/411 "2021-05-24T12:14:23Z")

</div>

Hi experts, I’m using vtk 8.1 and am having a little bit of a trouble getting anti-aliasing working. When using the FXAA approach, the graphic remains the same regardless of the FXAA options I pass to the renderer. v…

---

## [I did change polydata of actor but suddenly show old model when I interact after change](https://discourse.vtk.org/t/i-did-change-polydata-of-actor-but-suddenly-show-old-model-when-i-interact-after-change/5851)

<div class="topic-metadata">

**Author:** [@ChiShouWu](https://discourse.vtk.org/u/ChiShouWu)\
**Replies:** 0\
**Last updated:** [May 24, 2021, 5:49am UTC](https://discourse.vtk.org/t/i-did-change-polydata-of-actor-but-suddenly-show-old-model-when-i-interact-after-change/5851 "2021-05-24T05:49:11Z")

</div>

I did change polydata of actor like this mapper-\>setInputData(newPolydata); actor-\>setMapper(mapper); renderer-\>render(); But when I interact with my actor after change, it show as image below. How to fix it?

---

## [Discussion on vtkSmpTools improvement](https://discourse.vtk.org/t/discussion-on-vtksmptools-improvement/5432)

<div class="topic-metadata">

**Author:** [@Timothee\_Couble](https://discourse.vtk.org/u/Timothee_Couble)\
**Replies:** 16\
**Last updated:** [May 21, 2021, 3:37pm UTC](https://discourse.vtk.org/t/discussion-on-vtksmptools-improvement/5432 "2021-05-21T15:37:14Z")

</div>

Greetings, As part of an internship at Kitware, I’m going to work on improving vtk SMP tools. And we would like to engage the broader VTK community for ideas and feedback. The main goal of this work is to support VTK-m…

---

## [Changing color space of vtkAlgorithmOutput to BGR for vtkImageExport?](https://discourse.vtk.org/t/changing-color-space-of-vtkalgorithmoutput-to-bgr-for-vtkimageexport/5832)

<div class="topic-metadata">

**Author:** [@Nmlgc](https://discourse.vtk.org/u/Nmlgc)\
**Replies:** 3\
**Last updated:** [May 21, 2021, 12:58pm UTC](https://discourse.vtk.org/t/changing-color-space-of-vtkalgorithmoutput-to-bgr-for-vtkimageexport/5832 "2021-05-21T12:58:03Z")

</div>

Hello, I’m trying to export an image from a vtkAlgorithmOutput source to a C array in BGRA32 format. The export itself is working fine as long as vtkImageMapToColors is used to (apparently) ensure 8 bits per color compo…

---

## [Error reading OpenFoam files](https://discourse.vtk.org/t/error-reading-openfoam-files/5804)

<div class="topic-metadata">

**Author:** [@joaomlap](https://discourse.vtk.org/u/joaomlap)\
**Replies:** 5\
**Last updated:** [May 21, 2021, 9:35am UTC](https://discourse.vtk.org/t/error-reading-openfoam-files/5804 "2021-05-21T09:35:10Z")

</div>

Hello I asked this question in the Paraview discourse but didn’t get any answer yet, I am hoping someone here could help. I am having trouble reading OpenFoam files when using a react version of this example: I am not…

---

## [Loading vtk.js dynamically](https://discourse.vtk.org/t/loading-vtk-js-dynamically/5755)

<div class="topic-metadata">

**Author:** [@a-u](https://discourse.vtk.org/u/a-u)\
**Replies:** 9\
**Last updated:** [May 21, 2021, 6:41am UTC](https://discourse.vtk.org/t/loading-vtk-js-dynamically/5755 "2021-05-21T06:41:18Z")

</div>

I’m trying to use vtk.js in a jupyter notebook with mixed success. When it works, it works great: But I’m struggling a lot with dynamically loading vtk.js. Most often it does not work (it does work sometimes - which …

---

## [Maximum edge length for vtkAdaptiveSubdivisionFilter()](https://discourse.vtk.org/t/maximum-edge-length-for-vtkadaptivesubdivisionfilter/5814)

<div class="topic-metadata">

**Author:** [@ttsesm](https://discourse.vtk.org/u/ttsesm)\
**Replies:** 1\
**Last updated:** [May 20, 2021, 12:44pm UTC](https://discourse.vtk.org/t/maximum-edge-length-for-vtkadaptivesubdivisionfilter/5814 "2021-05-20T12:44:34Z")

</div>

Hi, I have two meshes with the following properties: m\_faces: 16640 m\_points: 49920 m\_area: 178.82696989147524 m1\_faces: 8 m1\_points: 24 m1\_area: 1.440205667851934 Now I would like to subdivide m1 so that it has appr…

---

## [Smooth surface boundary](https://discourse.vtk.org/t/smooth-surface-boundary/5826)

<div class="topic-metadata">

**Author:** [@Beheshtian](https://discourse.vtk.org/u/Beheshtian)\
**Replies:** 2\
**Last updated:** [May 20, 2021, 11:26am UTC](https://discourse.vtk.org/t/smooth-surface-boundary/5826 "2021-05-20T11:26:50Z")

</div>

Hi all, I have a surface with a bad boundary. I need to smooth and repair the boundary. I used vtkSmoothPolydata but not useful. smoothFilter = vtk.vtkSmoothPolyDataFilter() smoothFilter.SetInputData(part) smoothFi…

---

## [how can I increase the number of Polydata cells?](https://discourse.vtk.org/t/how-can-i-increase-the-number-of-polydata-cells/5705)

<div class="topic-metadata">

**Author:** [@Beheshtian](https://discourse.vtk.org/u/Beheshtian)\
**Replies:** 3\
**Last updated:** [May 20, 2021, 7:32am UTC](https://discourse.vtk.org/t/how-can-i-increase-the-number-of-polydata-cells/5705 "2021-05-20T07:32:57Z")

</div>

Hi all, I need to increase the number of Polydata points. I already used the vtkAdaptiveSubdivisionFilter: ASF = vtk.vtkAdaptiveSubdivisionFilter() ASF.SetInputData(part) ASF.SetMaximumTriangleArea(0.2) ASF.Update() b…

---

## [wrapping vtk filters outside source](https://discourse.vtk.org/t/wrapping-vtk-filters-outside-source/5800)

<div class="topic-metadata">

**Author:** [@marcwang](https://discourse.vtk.org/u/marcwang)\
**Replies:** 9\
**Last updated:** [May 20, 2021, 2:41am UTC](https://discourse.vtk.org/t/wrapping-vtk-filters-outside-source/5800 "2021-05-20T02:41:25Z")

</div>

Hi. I implemented my own c++ filters but I would like to wrap them the same way vtk does in python. I saw this nabble post. Unfortunately, I think it’s a little out of date. The macro vtk\_wrap\_python3 doesn’t seem to e…

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

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