# Latest

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

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

**Page:** 162

---

## [(vtkmodules.vtkImagingCore.vtkImageReslice)0x7f580e63ec20](https://discourse.vtk.org/t/vtkmodules-vtkimagingcore-vtkimagereslice-0x7f580e63ec20/6710)

<div class="topic-metadata">

**Author:** [@aleena98](https://discourse.vtk.org/u/aleena98)\
**Replies:** 3\
**Last updated:** [September 28, 2021, 1:39pm UTC](https://discourse.vtk.org/t/vtkmodules-vtkimagingcore-vtkimagereslice-0x7f580e63ec20/6710 "2021-09-28T13:39:54Z")

</div>

I am trying to understand a code to generate MIPs for nifti format images could you please help me with: \*\*(vtkmodules.vtkImagingCore.vtkImageReslice)0x7f580e63ec20 \*\* what exactly is this line

---

## [VTK\_DIR beginner, hello](https://discourse.vtk.org/t/vtk-dir-beginner-hello/6548)

<div class="topic-metadata">

**Author:** [@Tod\_Mar](https://discourse.vtk.org/u/Tod_Mar)\
**Replies:** 12\
**Last updated:** [September 8, 2021, 8:55am UTC](https://discourse.vtk.org/t/vtk-dir-beginner-hello/6548 "2021-09-08T08:55:25Z")

</div>

Hi, How do I specify a permanent VTK\_DIR in the makefile or for CMAKE so that I don’t have to keep typing it into CMAKE everytime I try a new example?

---

## [How to merge vtk files?](https://discourse.vtk.org/t/how-to-merge-vtk-files/6678)

<div class="topic-metadata">

**Author:** [@rasunag27](https://discourse.vtk.org/u/rasunag27)\
**Replies:** 7\
**Last updated:** [September 28, 2021, 3:30am UTC](https://discourse.vtk.org/t/how-to-merge-vtk-files/6678 "2021-09-28T03:30:10Z")

</div>

Dear all, I have two vtk files obtained after the simulation that needs to be merged for visualization. I saw a post related to this where vtkAppendPolyData() function is used. I tried in this way, but gave me an error…

---

## [React app load .vti file renders a blank space](https://discourse.vtk.org/t/react-app-load-vti-file-renders-a-blank-space/6707)

<div class="topic-metadata">

**Author:** [@anonymous\_iguana](https://discourse.vtk.org/u/anonymous_iguana)\
**Replies:** 3\
**Last updated:** [September 27, 2021, 10:41pm UTC](https://discourse.vtk.org/t/react-app-load-vti-file-renders-a-blank-space/6707 "2021-09-27T22:41:27Z")

</div>

Hi there, I’m new to vtk.js and attempting to recreate the Volume Viewer demo inside a simple React app with one of the .vti files included in the demo. I’ve included the same .vti file inside the codebase for the React…

---

## [How can i apply vtkImageGaussianSmooth function in VTK.js?](https://discourse.vtk.org/t/how-can-i-apply-vtkimagegaussiansmooth-function-in-vtk-js/6703)

<div class="topic-metadata">

**Author:** [@Yuvi-416](https://discourse.vtk.org/u/Yuvi-416)\
**Replies:** 1\
**Last updated:** [September 27, 2021, 3:01pm UTC](https://discourse.vtk.org/t/how-can-i-apply-vtkimagegaussiansmooth-function-in-vtk-js/6703 "2021-09-27T15:01:11Z")

</div>

Hello Everyone, Is there a way to apply the vtkImageGaussianSmooth function in VTK.js? I searched for the example of an image Gaussian function in VTK.js but I couldn’t find it. I was trying to smooth the data before …

---

## [Using vtkCutter on vtkPolyhedron cells with large number of vertices ( \> 512)](https://discourse.vtk.org/t/using-vtkcutter-on-vtkpolyhedron-cells-with-large-number-of-vertices-512/5785)

<div class="topic-metadata">

**Author:** [@scbiradar](https://discourse.vtk.org/u/scbiradar)\
**Replies:** 4\
**Last updated:** [September 27, 2021, 1:08pm UTC](https://discourse.vtk.org/t/using-vtkcutter-on-vtkpolyhedron-cells-with-large-number-of-vertices-512/5785 "2021-09-27T13:08:53Z")

</div>

I have a CFD dataset consisting of hex and polyhedral cells. When I try to apply vtkCutter using a plane on the dataset, VTK crashes for some polyhedral cells. I then found that it was crashing when I tried to cut throu…

---

## [The picture suddenly becomes big or small](https://discourse.vtk.org/t/the-picture-suddenly-becomes-big-or-small/6685)

<div class="topic-metadata">

**Author:** [@yesyesyes](https://discourse.vtk.org/u/yesyesyes)\
**Replies:** 1\
**Last updated:** [September 27, 2021, 12:47pm UTC](https://discourse.vtk.org/t/the-picture-suddenly-becomes-big-or-small/6685 "2021-09-27T12:47:41Z")

</div>

My question is: How do I get a fixed size image? I use a sensor to control the Angle and make VTK image continuously. But the picture gets bigger and smaller. The problem is the same for both 512×512×24-format 3d data a…

---

## [Runtime Crashing (Google Colab)](https://discourse.vtk.org/t/runtime-crashing-google-colab/6699)

<div class="topic-metadata">

**Author:** [@aleena98](https://discourse.vtk.org/u/aleena98)\
**Replies:** 0\
**Last updated:** [September 26, 2021, 12:58am UTC](https://discourse.vtk.org/t/runtime-crashing-google-colab/6699 "2021-09-26T00:58:23Z")

</div>

I am trying to run the following code to slice nifti images but the run time keeps crashing: image\_path = “/content/drive/MyDrive/10001.zip (Unzipped Files)/10001/orig/TOF.nii.gz” reader = vtk.vtkNIFTIImageReader() re…

---

## [from vtk.util.misc import vtkGetDataRoot](https://discourse.vtk.org/t/from-vtk-util-misc-import-vtkgetdataroot/6698)

<div class="topic-metadata">

**Author:** [@aleena98](https://discourse.vtk.org/u/aleena98)\
**Replies:** 1\
**Last updated:** [September 25, 2021, 10:55pm UTC](https://discourse.vtk.org/t/from-vtk-util-misc-import-vtkgetdataroot/6698 "2021-09-25T22:55:38Z")

</div>

from vtk.util.misc import vtkGetDataRoot what does this line do?

---

## [How do I copy one vtkRenderer to another vtkRenderer?](https://discourse.vtk.org/t/how-do-i-copy-one-vtkrenderer-to-another-vtkrenderer/6697)

<div class="topic-metadata">

**Author:** [@yesyesyes](https://discourse.vtk.org/u/yesyesyes)\
**Replies:** 0\
**Last updated:** [September 25, 2021, 3:40pm UTC](https://discourse.vtk.org/t/how-do-i-copy-one-vtkrenderer-to-another-vtkrenderer/6697 "2021-09-25T15:40:02Z")

</div>

Hello, I want to copy one vtkRenderer to another vtkRenderer. This is my previous code: vtkSmartPointer\<vtkRenderer\> renderer2 = vtkSmartPointer\<vtkRenderer\>::New(); renderer2-\>AddActor(imgActor); render…

---

## [VTK review process documentation](https://discourse.vtk.org/t/vtk-review-process-documentation/6629)

<div class="topic-metadata">

**Author:** [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)\
**Replies:** 27\
**Last updated:** [September 25, 2021, 6:51am UTC](https://discourse.vtk.org/t/vtk-review-process-documentation/6629 "2021-09-25T06:51:28Z")

</div>

Hi all, I’ve pushed an MR which covers some of the things which should be considered for VTK contributions. I know that Python guidelines are missing, but I don’t do much VTK Python development, so suggestions for what…

---

## [Mozilla vtkjs rendering stopped working](https://discourse.vtk.org/t/mozilla-vtkjs-rendering-stopped-working/6688)

<div class="topic-metadata">

**Author:** [@SArbabi](https://discourse.vtk.org/u/SArbabi)\
**Replies:** 2\
**Last updated:** [September 24, 2021, 3:18pm UTC](https://discourse.vtk.org/t/mozilla-vtkjs-rendering-stopped-working/6688 "2021-09-24T15:18:46Z")

</div>

On a web app that I created before with vtk.js and was working quite reliably, just recently I’m getting this issue in firefox which makes it not load the object in the scene and keeps the scene black: Use of drawWindow…

---

## [configuration of VTKWeb remote server with wss](https://discourse.vtk.org/t/configuration-of-vtkweb-remote-server-with-wss/6693)

<div class="topic-metadata">

**Author:** [@EMalikova](https://discourse.vtk.org/u/EMalikova)\
**Replies:** 3\
**Last updated:** [September 24, 2021, 3:00pm UTC](https://discourse.vtk.org/t/configuration-of-vtkweb-remote-server-with-wss/6693 "2021-09-24T15:00:52Z")

</div>

Dear All, I have an issue with secure WebSocket configuration on wss (vtk web in multiuser set up with apache as proxy). For the client running on https the WebSocket connection fails with the message below: index.js:5…

---

## [Reducing loading time](https://discourse.vtk.org/t/reducing-loading-time/6606)

<div class="topic-metadata">

**Author:** [@Tees](https://discourse.vtk.org/u/Tees)\
**Replies:** 11\
**Last updated:** [September 24, 2021, 11:41am UTC](https://discourse.vtk.org/t/reducing-loading-time/6606 "2021-09-24T11:41:24Z")

</div>

I want to work with time-series files in .vti format. The different time steps are in different files. For testing purposes I have the data halfcylinder01.00.vti, halfcylinder05.00.vti and halfcylinder10.00.vti. In a pr…

---

## [Extract opacity value at 3d point (in a form of world coordinate) on vtkImageData?](https://discourse.vtk.org/t/extract-opacity-value-at-3d-point-in-a-form-of-world-coordinate-on-vtkimagedata/6687)

<div class="topic-metadata">

**Author:** [@YuezhenQin](https://discourse.vtk.org/u/YuezhenQin)\
**Replies:** 0\
**Last updated:** [September 24, 2021, 8:50am UTC](https://discourse.vtk.org/t/extract-opacity-value-at-3d-point-in-a-form-of-world-coordinate-on-vtkimagedata/6687 "2021-09-24T08:50:35Z")

</div>

Given that ijk\[3\] is the world coordinate of a point and xyz\[3\] is transformed by (connector-\>GetOutput()-\>TransformPhysicalPointToContinuousIndex(ijk\[0\], ijk\[1\], ijk\[2\], xyz); I have tried the following ways: volume-\>…

---

## [transforming normals polydata](https://discourse.vtk.org/t/transforming-normals-polydata/6682)

<div class="topic-metadata">

**Author:** [@nomis6432](https://discourse.vtk.org/u/nomis6432)\
**Replies:** 9\
**Last updated:** [September 24, 2021, 7:56am UTC](https://discourse.vtk.org/t/transforming-normals-polydata/6682 "2021-09-24T07:56:17Z")

</div>

I’m trying to transform the points and normals of a polydata but part of the normals are negated after transformation. I transform the normals by multiplying them with the transposed and inverted transformation matrix c…

---

## [setUserMatrix explanation](https://discourse.vtk.org/t/setusermatrix-explanation/6642)

<div class="topic-metadata">

**Author:** [@shanebenlolo](https://discourse.vtk.org/u/shanebenlolo)\
**Replies:** 1\
**Last updated:** [September 23, 2021, 4:42pm UTC](https://discourse.vtk.org/t/setusermatrix-explanation/6642 "2021-09-23T16:42:00Z")

</div>

Hello, I am trying to use the setUserMatrix method found here Prop3D | vtk.js I would appreciate some clarification on what this parameter is actually doing when you change its mat4 values. Just something simple, like w…

---

## [Convert Image data to PolyData](https://discourse.vtk.org/t/convert-image-data-to-polydata/6614)

<div class="topic-metadata">

**Author:** [@MAdelElbayumi](https://discourse.vtk.org/u/MAdelElbayumi)\
**Replies:** 1\
**Last updated:** [September 23, 2021, 4:36pm UTC](https://discourse.vtk.org/t/convert-image-data-to-polydata/6614 "2021-09-23T16:36:08Z")

</div>

Hello, I have this volume which I added labels on it in the regions I want, I want to extract only the painted regions and convert them to polydata in order to make them surface and then computing their volume, I found a…

---

## [Can the API returned from the onCreated prop be used to manipulate a second volume generated at a time after the initial volume?](https://discourse.vtk.org/t/can-the-api-returned-from-the-oncreated-prop-be-used-to-manipulate-a-second-volume-generated-at-a-time-after-the-initial-volume/6603)

<div class="topic-metadata">

**Author:** [@shanebenlolo](https://discourse.vtk.org/u/shanebenlolo)\
**Replies:** 1\
**Last updated:** [September 23, 2021, 4:34pm UTC](https://discourse.vtk.org/t/can-the-api-returned-from-the-oncreated-prop-be-used-to-manipulate-a-second-volume-generated-at-a-time-after-the-initial-volume/6603 "2021-09-23T16:34:51Z")

</div>

Hello, I am working on the OHIF viewer to extend the functionality provided by the VTK extension. The current feature I am working on now is adding fusion. At this point, I have successfully brought in a second volume f…

---

## [Polygonal edge data ?](https://discourse.vtk.org/t/polygonal-edge-data/6675)

<div class="topic-metadata">

**Author:** [@Nicholas\_Yue](https://discourse.vtk.org/u/Nicholas_Yue)\
**Replies:** 1\
**Last updated:** [September 23, 2021, 9:55am UTC](https://discourse.vtk.org/t/polygonal-edge-data/6675 "2021-09-23T09:55:29Z")

</div>

Hi, There is vtkPointData for storing data associated with points, is there a corresponding way to store data associated with the edges of polygon/connectivity ? Cheers

---

## [vtkTube : Quadrilaterals instead of Triangles ?](https://discourse.vtk.org/t/vtktube-quadrilaterals-instead-of-triangles/6674)

<div class="topic-metadata">

**Author:** [@Nicholas\_Yue](https://discourse.vtk.org/u/Nicholas_Yue)\
**Replies:** 1\
**Last updated:** [September 23, 2021, 9:45am UTC](https://discourse.vtk.org/t/vtktube-quadrilaterals-instead-of-triangles/6674 "2021-09-23T09:45:42Z")

</div>

Hi, Currently, using vtkTube generates triangle mesh/strip Is there a way to influnce vtkTube to generate quads ? Cheers

---

## [vtkLagrangianParticleTracker python commands](https://discourse.vtk.org/t/vtklagrangianparticletracker-python-commands/6477)

<div class="topic-metadata">

**Author:** [@kal](https://discourse.vtk.org/u/kal)\
**Replies:** 13\
**Last updated:** [September 22, 2021, 10:39pm UTC](https://discourse.vtk.org/t/vtklagrangianparticletracker-python-commands/6477 "2021-09-22T22:39:45Z")

</div>

I am trying to understand and implement how the vtkLagrangianParticleTracker (LPT) works. I tried to modify the kitchen example. Basically, replaced the vtkStreamTracer arguments with the LPT arguments. My issue is how t…

---

## [vtkImageSlice: XYZ slicing and image position](https://discourse.vtk.org/t/vtkimageslice-xyz-slicing-and-image-position/6673)

<div class="topic-metadata">

**Author:** [@Adrien\_Boucaud](https://discourse.vtk.org/u/Adrien_Boucaud)\
**Replies:** 1\
**Last updated:** [September 22, 2021, 6:32pm UTC](https://discourse.vtk.org/t/vtkimageslice-xyz-slicing-and-image-position/6673 "2021-09-22T18:32:22Z")

</div>

Hello, We have been using the ImageSlice and ImageMapper with XYZ slicing mode for a while, and it works great except for one detail that seems unintended: When rendering an image with XYZ slicing, the rendered image p…

---

## [Learning the difference between SetScalars vs SetVectors](https://discourse.vtk.org/t/learning-the-difference-between-setscalars-vs-setvectors/6669)

<div class="topic-metadata">

**Author:** [@Nicholas\_Yue](https://discourse.vtk.org/u/Nicholas_Yue)\
**Replies:** 2\
**Last updated:** [September 22, 2021, 3:42pm UTC](https://discourse.vtk.org/t/learning-the-difference-between-setscalars-vs-setvectors/6669 "2021-09-22T15:42:42Z")

</div>

I am trying to add point data like density (scalar) and velocity (vector) to point data I am trying to understand when to use which because the following example kind of threw me off. A color to me is like a vector o…

---

## [Setting multiple scalars in point data](https://discourse.vtk.org/t/setting-multiple-scalars-in-point-data/6670)

<div class="topic-metadata">

**Author:** [@Nicholas\_Yue](https://discourse.vtk.org/u/Nicholas_Yue)\
**Replies:** 2\
**Last updated:** [September 22, 2021, 3:40pm UTC](https://discourse.vtk.org/t/setting-multiple-scalars-in-point-data/6670 "2021-09-22T15:40:29Z")

</div>

I wrote the following and trying to understand why only the density scalar is visible in the VTP file written out. What is the correct way to add multiple point data ? void example\_02() { std::string filename ("vtp\_po…

---

## [Wireframe not visible behind transparent surfaces](https://discourse.vtk.org/t/wireframe-not-visible-behind-transparent-surfaces/6671)

<div class="topic-metadata">

**Author:** [@j-fu](https://discourse.vtk.org/u/j-fu)\
**Replies:** 2\
**Last updated:** [September 22, 2021, 3:18pm UTC](https://discourse.vtk.org/t/wireframe-not-visible-behind-transparent-surfaces/6671 "2021-09-22T15:18:25Z")

</div>

Hi, I am trying to incorporate vtk.js into Julia Pluto notebooks, see https://github.com/j-fu/PlutoVista.jl. I want to plot cuts of 3d meshes (and later on function isosurfaces), and in addition, a transparent outline …

---

## [Changing scalars to render via setActiveScalars](https://discourse.vtk.org/t/changing-scalars-to-render-via-setactivescalars/6640)

<div class="topic-metadata">

**Author:** [@fraser29](https://discourse.vtk.org/u/fraser29)\
**Replies:** 1\
**Last updated:** [September 22, 2021, 8:36am UTC](https://discourse.vtk.org/t/changing-scalars-to-render-via-setactivescalars/6640 "2021-09-22T08:36:13Z")

</div>

Hello, I am attempting to change the scalars that are rendered in a vtk.js app but although the setActiveScalars command appears to work (by querying data.getPointData().getScalars().getRange()) my rendered data does no…

---

## [reader update](https://discourse.vtk.org/t/reader-update/6668)

<div class="topic-metadata">

**Author:** [@WZYSIUI](https://discourse.vtk.org/u/WZYSIUI)\
**Replies:** 0\
**Last updated:** [September 22, 2021, 1:40am UTC](https://discourse.vtk.org/t/reader-update/6668 "2021-09-22T01:40:50Z")

</div>

I use the vtkImageimport interface to use the same pointer to pass in data for body drawing, the first time the pointer address grayscale range is 0 to 128, color map is 0 to 255, the second time to modify the pointer in…

---

## [Rendering on Windows, black screen on Ubuntu.](https://discourse.vtk.org/t/rendering-on-windows-black-screen-on-ubuntu/6272)

<div class="topic-metadata">

**Author:** [@ziga\_Bizjak](https://discourse.vtk.org/u/ziga_Bizjak)\
**Replies:** 1\
**Last updated:** [September 21, 2021, 1:23pm UTC](https://discourse.vtk.org/t/rendering-on-windows-black-screen-on-ubuntu/6272 "2021-09-21T13:23:06Z")

</div>

Hi, I’m new to VTK so i apologize if this question is already answered somewhere (however i didn’t find answer online that would work for my case.) I hope this is the right forum for such a question because here we are …

---

## [Creation of a \`vtkLookupTable\` and corresponding \`vtkScalarBarActor\`](https://discourse.vtk.org/t/creation-of-a-vtklookuptable-and-corresponding-vtkscalarbaractor/6652)

<div class="topic-metadata">

**Author:** [@Kevin\_Sweeney](https://discourse.vtk.org/u/Kevin_Sweeney)\
**Replies:** 3\
**Last updated:** [September 21, 2021, 1:11pm UTC](https://discourse.vtk.org/t/creation-of-a-vtklookuptable-and-corresponding-vtkscalarbaractor/6652 "2021-09-21T13:11:47Z")

</div>

I am trying to create a Look-up table (LUT) in VTK.js similar to how I did it using Python previously. Screenshot below shows the output in Python. However I am having issues, whether that be due to the functionalit…

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

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