# Latest

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

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

**Page:** 110

---

## [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()…

---

## [convert folder .vti to binary .vti](https://discourse.vtk.org/t/convert-folder-vti-to-binary-vti/9962)

<div class="topic-metadata">

**Author:** [@Alireza](https://discourse.vtk.org/u/Alireza)\
**Replies:** 3\
**Last updated:** [November 28, 2022, 3:32pm UTC](https://discourse.vtk.org/t/convert-folder-vti-to-binary-vti/9962 "2022-11-28T15:32:42Z")

</div>

Previously I was able to use 3D Slicer to load dicom and save it as .vtk, and then use the convert-cli to convert it to .vti and use the HttpLoader to load it. This time, I want to load a DICOM series for volume renderi…

---

## [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 ?

---

## [About the configuration or Reader/Writers that support multiple file formats](https://discourse.vtk.org/t/about-the-configuration-or-reader-writers-that-support-multiple-file-formats/9951)

<div class="topic-metadata">

**Author:** [@mwestphal](https://discourse.vtk.org/u/mwestphal)\
**Replies:** 6\
**Last updated:** [November 28, 2022, 8:48am UTC](https://discourse.vtk.org/t/about-the-configuration-or-reader-writers-that-support-multiple-file-formats/9951 "2022-11-28T08:48:56Z")

</div>

In VTK, they are a few reader/writers that internally supports multiple file formats. eg: vtkGLTFReader supports .gltf and .glb vtkOCCTReader supports .stp and .igs However, the actual reading of these files is usual…

---

## [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…

---

## [PBR Materials in a MultiblockDataset](https://discourse.vtk.org/t/pbr-materials-in-a-multiblockdataset/9816)

<div class="topic-metadata">

**Author:** [@Thiago\_Neves](https://discourse.vtk.org/u/Thiago_Neves)\
**Replies:** 4\
**Last updated:** [November 28, 2022, 8:32am UTC](https://discourse.vtk.org/t/pbr-materials-in-a-multiblockdataset/9816 "2022-11-28T08:32:42Z")

</div>

Is it possible to have a different pbr material for each block in a multiblock dataset? Im trying to have a multiblock with different textures in each block. I was able to change the colors using vtkCompositePolyDataMap…

---

## [How does vtk read files in a database](https://discourse.vtk.org/t/how-does-vtk-read-files-in-a-database/9975)

<div class="topic-metadata">

**Author:** [@miniminic](https://discourse.vtk.org/u/miniminic)\
**Replies:** 0\
**Last updated:** [November 28, 2022, 7:36am UTC](https://discourse.vtk.org/t/how-does-vtk-read-files-in-a-database/9975 "2022-11-28T07:36:32Z")

</div>

For example, if I store a stl file into a database, I know that vtkSTLReader can read local stl files, but I don’t want to localize the stl file in my database, does vtk have a way to read it.Thanks.

---

## [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 …

---

## [how to make the height map for c++ image buffer](https://discourse.vtk.org/t/how-to-make-the-height-map-for-c-image-buffer/9921)

<div class="topic-metadata">

**Author:** [@J\_Kim](https://discourse.vtk.org/u/J_Kim)\
**Replies:** 3\
**Last updated:** [November 24, 2022, 8:10am UTC](https://discourse.vtk.org/t/how-to-make-the-height-map-for-c-image-buffer/9921 "2022-11-24T08:10:10Z")

</div>

Hi all I want to make the height map for c++ image buffer. to This is what I have done upto now. using vtkDelaunay2D int nImageWidth = 500, nImageHeight = 1000; BYTE\* pBuffer = new BYTE\[nImageWidth\*nImageHeight…

---

## [How to catch mouse click events(right mouse button)in a VTK Chart](https://discourse.vtk.org/t/how-to-catch-mouse-click-events-right-mouse-button-in-a-vtk-chart/9876)

<div class="topic-metadata">

**Author:** [@we\_create](https://discourse.vtk.org/u/we_create)\
**Replies:** 2\
**Last updated:** [November 24, 2022, 4:13am UTC](https://discourse.vtk.org/t/how-to-catch-mouse-click-events-right-mouse-button-in-a-vtk-chart/9876 "2022-11-24T04:13:49Z")

</div>

Hi all I just want to add userinteraction(rigth mouse click) to a vtk chart .can anyone please guide me . This is what I have done upto now.But nothing happend. class customMouseInteractorStyle : public vtkInteractorS…

---

## [VTK clipping with Python](https://discourse.vtk.org/t/vtk-clipping-with-python/3352)

<div class="topic-metadata">

**Author:** [@nikolay](https://discourse.vtk.org/u/nikolay)\
**Replies:** 7\
**Last updated:** [November 24, 2022, 1:02am UTC](https://discourse.vtk.org/t/vtk-clipping-with-python/3352 "2022-11-24T01:02:34Z")

</div>

Hi all, I am fairly new to VTK. I am using VTK version 8.1.2, Python 3.7.5 on Windows 10. I am trying to clip a VTK image with Python similar to the screenshot below taken from Slicer: Below is the code that I manag…

---

## [VTK v5.4.2 on Ubuntu (in WSL2)](https://discourse.vtk.org/t/vtk-v5-4-2-on-ubuntu-in-wsl2/9938)

<div class="topic-metadata">

**Author:** [@lbuo](https://discourse.vtk.org/u/lbuo)\
**Replies:** 3\
**Last updated:** [November 23, 2022, 1:38pm UTC](https://discourse.vtk.org/t/vtk-v5-4-2-on-ubuntu-in-wsl2/9938 "2022-11-23T13:38:23Z")

</div>

Hello everybody. I was trying to install VTK v5.4.2 on Ubuntu (in WSL2). Those are my steps (starting from my home directory): git clone -b v5.4.2 https://gitlab.kitware.com/vtk/vtk mkdir VTK-linux cd VTK-linux ccma…

---

## [Change response of render window to interactions](https://discourse.vtk.org/t/change-response-of-render-window-to-interactions/9733)

<div class="topic-metadata">

**Author:** [@Manju](https://discourse.vtk.org/u/Manju)\
**Replies:** 2\
**Last updated:** [November 23, 2022, 8:38am UTC](https://discourse.vtk.org/t/change-response-of-render-window-to-interactions/9733 "2022-11-23T08:38:10Z")

</div>

I am using a Qvtkwidget to display images in an application. Image interactions are enabled via render window interactor. vtkinteractorstyle image is used. Clicking and dragging on the image results in window and level c…

---

## [Can we read scalars based on time dimension from NetCDF file?](https://discourse.vtk.org/t/can-we-read-scalars-based-on-time-dimension-from-netcdf-file/9927)

<div class="topic-metadata">

**Author:** [@sherinnovation](https://discourse.vtk.org/u/sherinnovation)\
**Replies:** 0\
**Last updated:** [November 22, 2022, 12:59pm UTC](https://discourse.vtk.org/t/can-we-read-scalars-based-on-time-dimension-from-netcdf-file/9927 "2022-11-22T12:59:30Z")

</div>

Everything is working when I load my netCDF file in paraview, wherein I am able to use the time combobox to query the scalars from any timepoint of a selected variable, which has the dimensions - (‘time’, ‘latitude’, ‘lo…

---

## [VTK9.2 + Qt5.12 + Windows build (no python) runtime error: qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""](https://discourse.vtk.org/t/vtk9-2-qt5-12-windows-build-no-python-runtime-error-qt-qpa-plugin-could-not-find-the-qt-platform-plugin-windows-in/9425)

<div class="topic-metadata">

**Author:** [@fab672000](https://discourse.vtk.org/u/fab672000)\
**Replies:** 5\
**Last updated:** [November 22, 2022, 7:51pm UTC](https://discourse.vtk.org/t/vtk9-2-qt5-12-windows-build-no-python-runtime-error-qt-qpa-plugin-could-not-find-the-qt-platform-plugin-windows-in/9425 "2022-11-22T19:51:58Z")

</div>

Hi, I built successfully vtk 9.2 rc2 since a while with a default config to whitch I added opengl2 support for rendering imaging and volumes, also have working multiple versions of qt that all build fine and on my path a…

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

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