# Support

**URL:** https://discourse.vtk.org/c/support/6.md?page=62

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

**Page:** 63

---

## [Efficient mesh data writer](https://discourse.vtk.org/t/efficient-mesh-data-writer/10012)

<div class="topic-metadata">

**Author:** [@Zqinghaohh](https://discourse.vtk.org/u/Zqinghaohh)\
**Replies:** 1\
**Last updated:** [November 30, 2022, 10:45pm UTC](https://discourse.vtk.org/t/efficient-mesh-data-writer/10012 "2022-11-30T22:45:01Z")

</div>

Hi, I would like to write heavy mesh data (GBs) with VTK and view it in ParaView. Could I have some recommendations on what data structure I should use in VTK to manipulate the data? I have tried unstructured grid, but …

---

## [(VTK.js) How to add multiple polylines in vtkPolyData](https://discourse.vtk.org/t/vtk-js-how-to-add-multiple-polylines-in-vtkpolydata/9956)

<div class="topic-metadata">

**Author:** [@rodrigobasilio2022](https://discourse.vtk.org/u/rodrigobasilio2022)\
**Replies:** 2\
**Last updated:** [November 30, 2022, 12:07pm UTC](https://discourse.vtk.org/t/vtk-js-how-to-add-multiple-polylines-in-vtkpolydata/9956 "2022-11-30T12:07:13Z")

</div>

I have multiple lines that defines an object and I need to present them in VTK. I figured out how to do that in VTK.js and vtkPolyData, by adding all points of all lines and defining the lines. The problem is that the la…

---

## [Slow rendering when adding points to glyph](https://discourse.vtk.org/t/slow-rendering-when-adding-points-to-glyph/10018)

<div class="topic-metadata">

**Author:** [@kevinA](https://discourse.vtk.org/u/kevinA)\
**Replies:** 0\
**Last updated:** [November 30, 2022, 11:13am UTC](https://discourse.vtk.org/t/slow-rendering-when-adding-points-to-glyph/10018 "2022-11-30T11:13:04Z")

</div>

Hello, We are building an application where we need to trace paths by placing spheres along said path. The spheres are added to a single vtkGlyph3D, i.e. using a single actor. Here is a quick GIF of the process, to sho…

---

## [About casting from vtkImageData\* to vtkDataObject\*](https://discourse.vtk.org/t/about-casting-from-vtkimagedata-to-vtkdataobject/10014)

<div class="topic-metadata">

**Author:** [@Sterben\_01](https://discourse.vtk.org/u/Sterben_01)\
**Replies:** 6\
**Last updated:** [November 30, 2022, 8:43am UTC](https://discourse.vtk.org/t/about-casting-from-vtkimagedata-to-vtkdataobject/10014 "2022-11-30T08:43:02Z")

</div>

Hi. I’m trying to write an simple example of vtk. I want to read nii file and directly write it to another file. My code: vtkSmartPointer \< vtkNIFTIImageReader \> NiftReader = vtkSmartPointer \< vtkNIFTIImageReader \> ::…

---

## [vtkCellLocator::IntersectWithLine is unreliable in 2D](https://discourse.vtk.org/t/vtkcelllocator-intersectwithline-is-unreliable-in-2d/9838)

<div class="topic-metadata">

**Author:** [@andreasbuykx](https://discourse.vtk.org/u/andreasbuykx)\
**Replies:** 4\
**Last updated:** [November 29, 2022, 9:47pm UTC](https://discourse.vtk.org/t/vtkcelllocator-intersectwithline-is-unreliable-in-2d/9838 "2022-11-29T21:47:45Z")

</div>

I want to find the intersection point on a surface of a line, where the line and the surface are both in the Z=0 plane. I would hope/expect that vtkCellLocator::IntersectWithLine always finds a point on the edge of the s…

---

## [Bug in vtkAxisActor2D::SetTitle()?](https://discourse.vtk.org/t/bug-in-vtkaxisactor2d-settitle/9869)

<div class="topic-metadata">

**Author:** [@Tomasso](https://discourse.vtk.org/u/Tomasso)\
**Replies:** 9\
**Last updated:** [November 29, 2022, 5:59pm UTC](https://discourse.vtk.org/t/bug-in-vtkaxisactor2d-settitle/9869 "2022-11-29T17:59:26Z")

</div>

I’m running VTK-9.2 for C++. My code creates a vtkCubeAxesActor2D, and sets data range and title for x, y, and z axes. The ranges are displayed properly, but titles display as ‘X’, ‘Y’, and ‘Z’ (defaults?) instead of ‘L…

---

## [vtkIntersectionPolyDataFilter do not work](https://discourse.vtk.org/t/vtkintersectionpolydatafilter-do-not-work/9861)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 5\
**Last updated:** [November 29, 2022, 5:54pm UTC](https://discourse.vtk.org/t/vtkintersectionpolydatafilter-do-not-work/9861 "2022-11-29T17:54:58Z")

</div>

The code to reproduce my problem is: vtkSmartPointer\<vtkLineSource\> lineSource = vtkSmartPointer\<vtkLineSource\>::New(); lineSource-\>SetPoint1(0, 0, 0); lineSource-\>SetPoint2(10, 0, 0); vtkSmartPointer\<vtkTubeFilter\>…

---

## [Windows third party libraries are static and not dll](https://discourse.vtk.org/t/windows-third-party-libraries-are-static-and-not-dll/10008)

<div class="topic-metadata">

**Author:** [@Gilthalas](https://discourse.vtk.org/u/Gilthalas)\
**Replies:** 0\
**Last updated:** [November 29, 2022, 5:15pm UTC](https://discourse.vtk.org/t/windows-third-party-libraries-are-static-and-not-dll/10008 "2022-11-29T17:15:55Z")

</div>

With 9.2 (it seems, since in 9.1 this did not happen), the third party libraries VTK uses are built as .lib files (static libraries) instead of .dlls. I have BUILD\_SHARED\_LIBS set to true. I need them to build as DLLs s…

---

## [How to convert Gmsh into Explicit Structured (or VTI) with VTK?](https://discourse.vtk.org/t/how-to-convert-gmsh-into-explicit-structured-or-vti-with-vtk/9992)

<div class="topic-metadata">

**Author:** [@edgar](https://discourse.vtk.org/u/edgar)\
**Replies:** 1\
**Last updated:** [November 29, 2022, 4:02pm UTC](https://discourse.vtk.org/t/how-to-convert-gmsh-into-explicit-structured-or-vti-with-vtk/9992 "2022-11-29T16:02:04Z")

</div>

Hello, I am trying to convert a Gmsh (unstructured) mesh into a structured grid (VTI). Below is a part of a question that I asked on the PyVista slack forum (before I was granted access to VTK’s discourse forum). The c…

---

## [How to add a Colormap to a vtkPolyData](https://discourse.vtk.org/t/how-to-add-a-colormap-to-a-vtkpolydata/9979)

<div class="topic-metadata">

**Author:** [@Hamid\_Fsian](https://discourse.vtk.org/u/Hamid_Fsian)\
**Replies:** 8\
**Last updated:** [November 29, 2022, 12:37pm UTC](https://discourse.vtk.org/t/how-to-add-a-colormap-to-a-vtkpolydata/9979 "2022-11-29T12:37:47Z")

</div>

Dear Community, I am trying to color a vtkPolyData by looping through the z-axis, and then see if the width of a slice(i) is \< or \> to a certain value. And then color the slice (over the z-axis) according to this thresh…

---

## [VTK Select Poly data doesn't work](https://discourse.vtk.org/t/vtk-select-poly-data-doesnt-work/9968)

<div class="topic-metadata">

**Author:** [@AndreAhmed](https://discourse.vtk.org/u/AndreAhmed)\
**Replies:** 2\
**Last updated:** [November 29, 2022, 3:39am UTC](https://discourse.vtk.org/t/vtk-select-poly-data-doesnt-work/9968 "2022-11-29T03:39:13Z")

</div>

Hello, I have a curve in 3D and I’m trying to select the polydata that intersect with, the problem is I’m getting very bad output, and meshes are thrown and flying in the 3D space vtkNew selectionPoints; for (int i…

---

## [Cut a mesh using lasso](https://discourse.vtk.org/t/cut-a-mesh-using-lasso/9966)

<div class="topic-metadata">

**Author:** [@AndreAhmed](https://discourse.vtk.org/u/AndreAhmed)\
**Replies:** 11\
**Last updated:** [November 28, 2022, 7:58pm UTC](https://discourse.vtk.org/t/cut-a-mesh-using-lasso/9966 "2022-11-28T19:58:07Z")

</div>

Hello, I’m doing a lasso that I converted on 3D Mesh. and now I cut a polydata with it using the following code vtkTriangleFilter\* triFil = vtkTriangleFilter::New(); triFil-\>SetInputData(curvePoly); triFil-\>Update()…

---

## [vtkCellPicker can not pick vtkScalarBarActor](https://discourse.vtk.org/t/vtkcellpicker-can-not-pick-vtkscalarbaractor/9987)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 0\
**Last updated:** [November 28, 2022, 3:27pm UTC](https://discourse.vtk.org/t/vtkcellpicker-can-not-pick-vtkscalarbaractor/9987 "2022-11-28T15:27:17Z")

</div>

I want to pick the vtkScalarBarActor using vtkCellPicker, but it failed. The code to reproduce my problem is: import vtkmodules.all as vtk actor = vtk.vtkScalarBarActor() actor.SetNumberOfLabels(4) actor.SetDrawFrame…

---

## [Segmentation fault while writing vtkImageData](https://discourse.vtk.org/t/segmentation-fault-while-writing-vtkimagedata/9974)

<div class="topic-metadata">

**Author:** [@nnzzll](https://discourse.vtk.org/u/nnzzll)\
**Replies:** 2\
**Last updated:** [November 28, 2022, 2:26pm UTC](https://discourse.vtk.org/t/segmentation-fault-while-writing-vtkimagedata/9974 "2022-11-28T14:26:37Z")

</div>

I have a function to generate a vtkImageData(): vtkImageData\* generateImage(int size\[3\]) { vtkSmartPointer\<vtkImageData\> img = vtkSmartPointer\<vtkImageData\>::New(); img-\>SetDimensions(size); img-\>AllocateScalars(V…

---

## [projecting points onto 3D polydata](https://discourse.vtk.org/t/projecting-points-onto-3d-polydata/9970)

<div class="topic-metadata">

**Author:** [@AndreAhmed](https://discourse.vtk.org/u/AndreAhmed)\
**Replies:** 1\
**Last updated:** [November 28, 2022, 11:54am UTC](https://discourse.vtk.org/t/projecting-points-onto-3d-polydata/9970 "2022-11-28T11:54:05Z")

</div>

I have a curve of points, and they are in 3D, I would like to project those points onto a 3D Polydata mesh. is there a filter ?

---

## [PBR and cell data for metallic & roughness](https://discourse.vtk.org/t/pbr-and-cell-data-for-metallic-roughness/8867)

<div class="topic-metadata">

**Author:** [@andreasbuykx](https://discourse.vtk.org/u/andreasbuykx)\
**Replies:** 3\
**Last updated:** [November 28, 2022, 8:41am UTC](https://discourse.vtk.org/t/pbr-and-cell-data-for-metallic-roughness/8867 "2022-11-28T08:41:47Z")

</div>

With PBR, is it possible to use cell data to specify metallic and roughness properties, instead of in the vtkProperty of the actor? Our actors typically have a vtkCompositePolyDataMapper2 taking as input vtkMultiBlockDat…

---

## [Naming vtkActors](https://discourse.vtk.org/t/naming-vtkactors/9958)

<div class="topic-metadata">

**Author:** [@BlueKnight7](https://discourse.vtk.org/u/BlueKnight7)\
**Replies:** 4\
**Last updated:** [November 27, 2022, 8:23pm UTC](https://discourse.vtk.org/t/naming-vtkactors/9958 "2022-11-27T20:23:14Z")

</div>

I suspect that this question / concern is addressed somewhere in an example (or reference page) that I haven’t found. I have a number of actors in my program. I would like to be able to set a name or label for them whe…

---

## [Restore scene to initial state](https://discourse.vtk.org/t/restore-scene-to-initial-state/9824)

<div class="topic-metadata">

**Author:** [@SpareSimian](https://discourse.vtk.org/u/SpareSimian)\
**Replies:** 2\
**Last updated:** [November 27, 2022, 4:30pm UTC](https://discourse.vtk.org/t/restore-scene-to-initial-state/9824 "2022-11-27T16:30:49Z")

</div>

ResetCamera appears to point the camera from its current position back at the actors. I’m looking for something that restores the initial scene conditions, including restoring the initial camera location and settings. M…

---

## [How to put a limit to zoom in?](https://discourse.vtk.org/t/how-to-put-a-limit-to-zoom-in/9819)

<div class="topic-metadata">

**Author:** [@MKRangers](https://discourse.vtk.org/u/MKRangers)\
**Replies:** 1\
**Last updated:** [November 26, 2022, 9:46pm UTC](https://discourse.vtk.org/t/how-to-put-a-limit-to-zoom-in/9819 "2022-11-26T21:46:12Z")

</div>

Hi everyone, I have a series of image volumes with different resolutions, and I’m developing a visualization tool with some UI features for the users to navigate different resolutions. I want to set up a limit for vtkIn…

---

## [SetOpacity is not working](https://discourse.vtk.org/t/setopacity-is-not-working/9874)

<div class="topic-metadata">

**Author:** [@Panda12197](https://discourse.vtk.org/u/Panda12197)\
**Replies:** 3\
**Last updated:** [November 26, 2022, 9:41pm UTC](https://discourse.vtk.org/t/setopacity-is-not-working/9874 "2022-11-26T21:41:33Z")

</div>

I am trying to set the opacity of the cube in pclviewer with surface but the cube become invisible when opacity value is less than 1.0. I got the following error when opacity value is \<1.0. ERROR: In /home/VTK-8.2.0/R…

---

## [using vtkIntersectionPolyDataFilter](https://discourse.vtk.org/t/using-vtkintersectionpolydatafilter/9960)

<div class="topic-metadata">

**Author:** [@AndreAhmed](https://discourse.vtk.org/u/AndreAhmed)\
**Replies:** 2\
**Last updated:** [November 26, 2022, 2:41am UTC](https://discourse.vtk.org/t/using-vtkintersectionpolydatafilter/9960 "2022-11-26T02:41:34Z")

</div>

hello, I’m having a polyline and I’m trying to convert it to polydata, and then use vtkIntersectionPolyDataFilter to compute intersection and cutting another mesh. But I see that polydata doesn’t have GetOutPort. vtk…

---

## [ribbon facing the camera](https://discourse.vtk.org/t/ribbon-facing-the-camera/9957)

<div class="topic-metadata">

**Author:** [@bistek](https://discourse.vtk.org/u/bistek)\
**Replies:** 0\
**Last updated:** [November 25, 2022, 3:31pm UTC](https://discourse.vtk.org/t/ribbon-facing-the-camera/9957 "2022-11-25T15:31:58Z")

</div>

Hello, we are trying to obtain ribbons that rotate automatically, so that they are always facing the camera. The reason is they can be used to visualise well/borehole logs in geology. The problem I see is that the outpu…

---

## [vtkCellLocator IntersectWithLine() not working?](https://discourse.vtk.org/t/vtkcelllocator-intersectwithline-not-working/9953)

<div class="topic-metadata">

**Author:** [@llobera](https://discourse.vtk.org/u/llobera)\
**Replies:** 0\
**Last updated:** [November 25, 2022, 12:27pm UTC](https://discourse.vtk.org/t/vtkcelllocator-intersectwithline-not-working/9953 "2022-11-25T12:27:46Z")

</div>

I have the following (part of a notebook) TIN.GetBounds() (529264.5625, 533399.6875, 0.6866056323051453, 268.851806640625, 4385078.0, 4389888.0) cell\_locator = vtkCellLocator() cell\_locator.SetDataSet(TIN) c…

---

## [is there a .bat file that sets up the environment for vtk c++ programming?](https://discourse.vtk.org/t/is-there-a-bat-file-that-sets-up-the-environment-for-vtk-c-programming/9950)

<div class="topic-metadata">

**Author:** [@bunny](https://discourse.vtk.org/u/bunny)\
**Replies:** 1\
**Last updated:** [November 25, 2022, 7:24am UTC](https://discourse.vtk.org/t/is-there-a-bat-file-that-sets-up-the-environment-for-vtk-c-programming/9950 "2022-11-25T07:24:58Z")

</div>

It is very hard to build VTK with cmake, I wander if there is there a .bat file that config all env, path and starts visual studio IDE.

---

## [flip mpr image become abnormal](https://discourse.vtk.org/t/flip-mpr-image-become-abnormal/9931)

<div class="topic-metadata">

**Author:** [@marlon.ma](https://discourse.vtk.org/u/marlon.ma)\
**Replies:** 12\
**Last updated:** [November 25, 2022, 3:13am UTC](https://discourse.vtk.org/t/flip-mpr-image-become-abnormal/9931 "2022-11-25T03:13:21Z")

</div>

My vtk version is 9.2 .When I perform the flipping function of mpr reconstruction, everything is normal before flipping, and after flipping, the image rotated by the camera becomes abnormal,I found that before flipping, …

---

## [How to rotate the actor?](https://discourse.vtk.org/t/how-to-rotate-the-actor/9840)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 1\
**Last updated:** [November 24, 2022, 10:16pm UTC](https://discourse.vtk.org/t/how-to-rotate-the-actor/9840 "2022-11-24T22:16:06Z")

</div>

I have a cylinder, and I want to translate it with (0, 10, 0), and rotate it with 30 degree along x axis. I can implement it as: import vtkmodules.all as vtk cylinder = vtk.vtkCylinderSource() cylinder.SetCenter(0, 1…

---

## [Overlapping cell behavior in 9.1](https://discourse.vtk.org/t/overlapping-cell-behavior-in-9-1/9867)

<div class="topic-metadata">

**Author:** [@raungst](https://discourse.vtk.org/u/raungst)\
**Replies:** 2\
**Last updated:** [November 24, 2022, 10:03pm UTC](https://discourse.vtk.org/t/overlapping-cell-behavior-in-9-1/9867 "2022-11-24T22:03:48Z")

</div>

Hello, I recently updated my python application from 9.0.3 to 9.1 and I’m seeing behavior in 9.1 that I didn’t have in 9.0.3 and I’m not sure how to put it back. I have overlapping cells in different actors that I use t…

---

## [How to change the rotation center point for vtkTransform?](https://discourse.vtk.org/t/how-to-change-the-rotation-center-point-for-vtktransform/9877)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 1\
**Last updated:** [November 24, 2022, 7:24pm UTC](https://discourse.vtk.org/t/how-to-change-the-rotation-center-point-for-vtktransform/9877 "2022-11-24T19:24:29Z")

</div>

For example, I have a cylinder, whose center point is (0, 10, 0). I want this cylinder can rotation 30 degree along x axis with (0, 10, 0) as the rotation center. My code is: import vtkmodules.all as vtk cylinder = vtk…

---

## [Does VTK support point light?](https://discourse.vtk.org/t/does-vtk-support-point-light/9919)

<div class="topic-metadata">

**Author:** [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)\
**Replies:** 1\
**Last updated:** [November 24, 2022, 7:15pm UTC](https://discourse.vtk.org/t/does-vtk-support-point-light/9919 "2022-11-24T19:15:49Z")

</div>

Hello,I can’t find point light support, Does VTK support point light? If yes,How to enable it?

---

## [How to reset vtkProp3D](https://discourse.vtk.org/t/how-to-reset-vtkprop3d/9943)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 2\
**Last updated:** [November 24, 2022, 6:59pm UTC](https://discourse.vtk.org/t/how-to-reset-vtkprop3d/9943 "2022-11-24T18:59:32Z")

</div>

vtkProp3D::RotateX allow to rotate the prop. prop-\>RotateX(10); prop\>RotateX(20); would rotate the prop with 30 degree compared with the original prop. Is there a vtkProp3D::Reset() method which can clear the rotation …

[Previous page](https://discourse.vtk.org/c/support/6.md?page=61)

[Next page](https://discourse.vtk.org/c/support/6.md?page=63)
