# Latest

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

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

**Page:** 132

---

## [How to set the lighting parameters to achieve the shadow I want](https://discourse.vtk.org/t/how-to-set-the-lighting-parameters-to-achieve-the-shadow-i-want/8572)

<div class="topic-metadata">

**Author:** [@qysmile123](https://discourse.vtk.org/u/qysmile123)\
**Replies:** 0\
**Last updated:** [May 24, 2022, 9:12am UTC](https://discourse.vtk.org/t/how-to-set-the-lighting-parameters-to-achieve-the-shadow-i-want/8572 "2022-05-24T09:12:49Z")

</div>

Hello，I’m currently working on a rendering, but my lighting settings don’t achieve the shadow effect I want. This is an internal image of a tracheal model.I hope to achieve the effect of depth of field through light …

---

## [Is there a help manual or example developed specifically for medical imaging?](https://discourse.vtk.org/t/is-there-a-help-manual-or-example-developed-specifically-for-medical-imaging/8571)

<div class="topic-metadata">

**Author:** [@IronMan](https://discourse.vtk.org/u/IronMan)\
**Replies:** 0\
**Last updated:** [May 24, 2022, 9:10am UTC](https://discourse.vtk.org/t/is-there-a-help-manual-or-example-developed-specifically-for-medical-imaging/8571 "2022-05-24T09:10:13Z")

</div>

I would like to use VTK to develop an application similar to 3Dsclicer, not detailed enough in VTK user Guide, may VTK have other help manual or example for more detailed medical development,

---

## [How to realize the effect of floodlight with vtkLight?](https://discourse.vtk.org/t/how-to-realize-the-effect-of-floodlight-with-vtklight/8567)

<div class="topic-metadata">

**Author:** [@liu](https://discourse.vtk.org/u/liu)\
**Replies:** 0\
**Last updated:** [May 24, 2022, 8:42am UTC](https://discourse.vtk.org/t/how-to-realize-the-effect-of-floodlight-with-vtklight/8567 "2022-05-24T08:42:42Z")

</div>

How to realize the effect of floodlight with vtkLight?

---

## [How to get the SSAO value in vtk-python](https://discourse.vtk.org/t/how-to-get-the-ssao-value-in-vtk-python/8565)

<div class="topic-metadata">

**Author:** [@DD\_G](https://discourse.vtk.org/u/DD_G)\
**Replies:** 0\
**Last updated:** [May 24, 2022, 7:49am UTC](https://discourse.vtk.org/t/how-to-get-the-ssao-value-in-vtk-python/8565 "2022-05-24T07:49:31Z")

</div>

I try to get the value of SSAO of each pixel in the vtk renderwindow, however, I only find the function vtkRenderer.UseSSAOOn() in the vtk class reference. Is there any solution to directly or indirectly get the SSAO va…

---

## [vtkResliceCursorWidget compatibility with QT QVTKWidget](https://discourse.vtk.org/t/vtkreslicecursorwidget-compatibility-with-qt-qvtkwidget/8562)

<div class="topic-metadata">

**Author:** [@Alexandera](https://discourse.vtk.org/u/Alexandera)\
**Replies:** 1\
**Last updated:** [May 24, 2022, 3:18am UTC](https://discourse.vtk.org/t/vtkreslicecursorwidget-compatibility-with-qt-qvtkwidget/8562 "2022-05-24T03:18:40Z")

</div>

Hi, I am working on the medical GUI development with QT and VTK. I have made MPR (MultiPlanar reformation) in VTK alone, but it does not show when I show it in QT (basically I add the renderwindow and renderer to QVTKWi…

---

## [Set Visible in SetTableValue](https://discourse.vtk.org/t/set-visible-in-settablevalue/8563)

<div class="topic-metadata">

**Author:** [@Ren](https://discourse.vtk.org/u/Ren)\
**Replies:** 0\
**Last updated:** [May 24, 2022, 3:17am UTC](https://discourse.vtk.org/t/set-visible-in-settablevalue/8563 "2022-05-24T03:17:10Z")

</div>

Hello， everyone， I met a problem I am using table value to render a actor, pColorTable-\>SetTableValue(0, r, g, b, 1.0); pColorTable-\>SetTableValue(1, r, g, b, 1.0); pColorTable-\>SetTableValue(2, r, g, b, 0.0); pColo…

---

## [mesh to imagedata algorithm](https://discourse.vtk.org/t/mesh-to-imagedata-algorithm/4815)

<div class="topic-metadata">

**Author:** [@wael869](https://discourse.vtk.org/u/wael869)\
**Replies:** 5\
**Last updated:** [May 23, 2022, 2:24am UTC](https://discourse.vtk.org/t/mesh-to-imagedata-algorithm/4815 "2022-05-23T02:24:01Z")

</div>

I am trying to get an imagedata from polydata but I am getting boundary voxels as cubes… applying vtkImageGaussianSmooth filter gives a smooth output but affects accuracy … is there another way?

---

## [Building and publishing Nightly Python Wheel](https://discourse.vtk.org/t/building-and-publishing-nightly-python-wheel/7771)

<div class="topic-metadata">

**Author:** [@amaclean](https://discourse.vtk.org/u/amaclean)\
**Replies:** 12\
**Last updated:** [May 23, 2022, 4:25pm UTC](https://discourse.vtk.org/t/building-and-publishing-nightly-python-wheel/7771 "2022-05-23T16:25:56Z")

</div>

Are there any plans to implement Python 3.10/3.9 nightly wheels based on the latest VTK master?

---

## [Plane cut of a volume](https://discourse.vtk.org/t/plane-cut-of-a-volume/8462)

<div class="topic-metadata">

**Author:** [@Luis\_Carlos\_Carneiro](https://discourse.vtk.org/u/Luis_Carlos_Carneiro)\
**Replies:** 2\
**Last updated:** [May 23, 2022, 1:31am UTC](https://discourse.vtk.org/t/plane-cut-of-a-volume/8462 "2022-05-23T01:31:16Z")

</div>

Dear All, A have a plane (Actor) that cuts a volume. The volume is green and the plane white. The part of the plane inside the volume turns green. How I force the plane to be white every time? Thanks, Luís Gonçalves

---

## [vtkTextWidget not dragable in QT](https://discourse.vtk.org/t/vtktextwidget-not-dragable-in-qt/8540)

<div class="topic-metadata">

**Author:** [@perphy](https://discourse.vtk.org/u/perphy)\
**Replies:** 2\
**Last updated:** [May 22, 2022, 10:55pm UTC](https://discourse.vtk.org/t/vtktextwidget-not-dragable-in-qt/8540 "2022-05-22T22:55:34Z")

</div>

Hi, I am trying to using vtkTextWidget in QT. I tried to combine these two example. https://kitware.github.io/vtk-examples/site/Python/Widgets/TextWidget/ https://kitware.github.io/vtk-examples/site/Python/Widgets/Em…

---

## [vtk: code work only correctly in debug with breakpoint](https://discourse.vtk.org/t/vtk-code-work-only-correctly-in-debug-with-breakpoint/8380)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 6\
**Last updated:** [May 21, 2022, 2:43pm UTC](https://discourse.vtk.org/t/vtk-code-work-only-correctly-in-debug-with-breakpoint/8380 "2022-05-21T14:43:37Z")

</div>

I have a code: do not work correctly in release do not work correctly in debug without breakpoint work correctly in debug with a breakpoint The code is: import vtkmodules.all as vtk render = vtk.vtkRenderer() renWin…

---

## [MIP rendering make line black](https://discourse.vtk.org/t/mip-rendering-make-line-black/8466)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 3\
**Last updated:** [May 20, 2022, 11:50am UTC](https://discourse.vtk.org/t/mip-rendering-make-line-black/8466 "2022-05-20T11:50:09Z")

</div>

In my application, I display a volume image using MIP. In addition, I want to add a red line with the MIP. However, even I set the line color to red, it still shown as black: The code to reproduce the result is: imp…

---

## [Placing points on top of a (changing) vtkImageSlice](https://discourse.vtk.org/t/placing-points-on-top-of-a-changing-vtkimageslice/8333)

<div class="topic-metadata">

**Author:** [@Valentin\_Regueiro](https://discourse.vtk.org/u/Valentin_Regueiro)\
**Replies:** 1\
**Last updated:** [May 19, 2022, 12:47pm UTC](https://discourse.vtk.org/t/placing-points-on-top-of-a-changing-vtkimageslice/8333 "2022-05-19T12:47:27Z")

</div>

Hi there, I am working on segmentating ImageData that’s being displayed as vtkImageSlices. For this I place some points on the image which give me the boundaries for the segmentation. Right now I’m using the vtkContou…

---

## [Camera / Viewport behavior](https://discourse.vtk.org/t/camera-viewport-behavior/8531)

<div class="topic-metadata">

**Author:** [@Olivier](https://discourse.vtk.org/u/Olivier)\
**Replies:** 0\
**Last updated:** [May 19, 2022, 6:25pm UTC](https://discourse.vtk.org/t/camera-viewport-behavior/8531 "2022-05-19T18:25:47Z")

</div>

Hi friends, When displaying a 2D scene with ParallelProjectionOn(), the following behavior occurs : When the WIDTH of the viewport is changed, the scene scale is not changed, objects stay at their current “visual siz…

---

## [FindMEMKIND.cmake support](https://discourse.vtk.org/t/findmemkind-cmake-support/8524)

<div class="topic-metadata">

**Author:** [@jiapei100](https://discourse.vtk.org/u/jiapei100)\
**Replies:** 5\
**Last updated:** [May 19, 2022, 4:09pm UTC](https://discourse.vtk.org/t/findmemkind-cmake-support/8524 "2022-05-19T16:09:04Z")

</div>

Hi, all: I happened to realize it’s NOT quite convenient to build VTK from source WITHOUT memkind. So, I enabled memkind VTK\_USE\_MEMKIND ON. However, default repository of Ubuntu 22.04, or from source…

---

## [JPEG compression for tiff file](https://discourse.vtk.org/t/jpeg-compression-for-tiff-file/8424)

<div class="topic-metadata">

**Author:** [@Leo\_Abalckin](https://discourse.vtk.org/u/Leo_Abalckin)\
**Replies:** 3\
**Last updated:** [May 19, 2022, 1:55pm UTC](https://discourse.vtk.org/t/jpeg-compression-for-tiff-file/8424 "2022-05-19T13:55:50Z")

</div>

My goal is to read tif file with jpeg compression with vtk (I use 9.1). I was not able to do it with vtkTIFFReader so I tried from the studying a possibility to write tif with jpeg compression first to see how it works. …

---

## [vtkDiskSource in JS?](https://discourse.vtk.org/t/vtkdisksource-in-js/8506)

<div class="topic-metadata">

**Author:** [@lonewolf](https://discourse.vtk.org/u/lonewolf)\
**Replies:** 7\
**Last updated:** [May 19, 2022, 1:48pm UTC](https://discourse.vtk.org/t/vtkdisksource-in-js/8506 "2022-05-19T13:48:58Z")

</div>

Hi everyone, I would like to know if there is a vtkDiskSource js resource. I basically want to make a sphere, use a cutter and a plane to cut the sphere, and use that output (a circle) to make a colored disk, being the…

---

## [Not work well restoreContext() on vtkOpenGLRenderWindow](https://discourse.vtk.org/t/not-work-well-restorecontext-on-vtkopenglrenderwindow/8459)

<div class="topic-metadata">

**Author:** [@cmoh](https://discourse.vtk.org/u/cmoh)\
**Replies:** 7\
**Last updated:** [May 19, 2022, 2:19am UTC](https://discourse.vtk.org/t/not-work-well-restorecontext-on-vtkopenglrenderwindow/8459 "2022-05-19T02:19:24Z")

</div>

I already know that when I lose WebGL context, there is context restore eventListener and it handle restore process internally(by call vtkOpenGLRenderWindow.restoreContext()). But I have received some warning message li…

---

## [vtkImagePlaneWidet: control output spacing](https://discourse.vtk.org/t/vtkimageplanewidet-control-output-spacing/8523)

<div class="topic-metadata">

**Author:** [@gregthom992](https://discourse.vtk.org/u/gregthom992)\
**Replies:** 0\
**Last updated:** [May 18, 2022, 5:35pm UTC](https://discourse.vtk.org/t/vtkimageplanewidet-control-output-spacing/8523 "2022-05-18T17:35:15Z")

</div>

Hi all Does anyone know how to control the output spacing when vtkImagePlane Widget ? My scenario is this: I have set up a vtkImagePlaneWidget, I bulld the vtkPlaneSource manually from and feed the Origin and Point1 an…

---

## [C++ Application with remote rendering](https://discourse.vtk.org/t/c-application-with-remote-rendering/8469)

<div class="topic-metadata">

**Author:** [@fvitello](https://discourse.vtk.org/u/fvitello)\
**Replies:** 3\
**Last updated:** [May 18, 2022, 2:26pm UTC](https://discourse.vtk.org/t/c-application-with-remote-rendering/8469 "2022-05-18T14:26:25Z")

</div>

Dear All, I would like to extend my existing desktop application (qt and c++) with the possibility to have a remote rendering functionality. How can I procede ? is there any way to connect the application to a vtk serv…

---

## [How to get the information of the plane to which the viewWidget belongs](https://discourse.vtk.org/t/how-to-get-the-information-of-the-plane-to-which-the-viewwidget-belongs/8520)

<div class="topic-metadata">

**Author:** [@654545342](https://discourse.vtk.org/u/654545342)\
**Replies:** 1\
**Last updated:** [May 18, 2022, 9:12am UTC](https://discourse.vtk.org/t/how-to-get-the-information-of-the-plane-to-which-the-viewwidget-belongs/8520 "2022-05-18T09:12:47Z")

</div>

How can I get the vector of the plane where the viewWidget is located, or how can I get the plane of its operator, looking forward to your answer

---

## [Deleted widget's callback is executed](https://discourse.vtk.org/t/deleted-widgets-callback-is-executed/8391)

<div class="topic-metadata">

**Author:** [@obourgart](https://discourse.vtk.org/u/obourgart)\
**Replies:** 4\
**Last updated:** [May 17, 2022, 7:36pm UTC](https://discourse.vtk.org/t/deleted-widgets-callback-is-executed/8391 "2022-05-17T19:36:45Z")

</div>

I create an instance of vtkImageCroppingWidget by const widget = vtkImageCroppingWidget.newInstance();. I attach a callback to its cropping planes state. After a while I delete this widget by calling widgetManager.re…

---

## [Crash SEGV at vtkCylinderSource::Update()](https://discourse.vtk.org/t/crash-segv-at-vtkcylindersource-update/8517)

<div class="topic-metadata">

**Author:** [@sheran.vaz](https://discourse.vtk.org/u/sheran.vaz)\
**Replies:** 1\
**Last updated:** [May 17, 2022, 6:07pm UTC](https://discourse.vtk.org/t/crash-segv-at-vtkcylindersource-update/8517 "2022-05-17T18:07:22Z")

</div>

Trying to create a VTK polydata using below code snippet vtkSmartPointer spC=vtkSmartPointer::New(); spC-\>SetHeight(rodLen); spC-\>SetCenter(0,0,0); spC-\>SetRadius(rodRadius); spC-\>Update(); \<----- It crashes here T…

---

## [point cloud convert to polydata and how to cut it sucessfully?](https://discourse.vtk.org/t/point-cloud-convert-to-polydata-and-how-to-cut-it-sucessfully/8514)

<div class="topic-metadata">

**Author:** [@CaffeMrDe](https://discourse.vtk.org/u/CaffeMrDe)\
**Replies:** 0\
**Last updated:** [May 17, 2022, 2:43pm UTC](https://discourse.vtk.org/t/point-cloud-convert-to-polydata-and-how-to-cut-it-sucessfully/8514 "2022-05-17T14:43:10Z")

</div>

I can convert pointcloud without Polygons or Triangles to a polydata. And I want to use vtkCutter to get cross section with a plane, But it failed and report errors as follow ERROR: In …\\Filters\\General\\vtkOBBTree.cx…

---

## [vtkImageCroppingRegionsWidget Example Code](https://discourse.vtk.org/t/vtkimagecroppingregionswidget-example-code/8489)

<div class="topic-metadata">

**Author:** [@santho](https://discourse.vtk.org/u/santho)\
**Replies:** 1\
**Last updated:** [May 17, 2022, 9:01am UTC](https://discourse.vtk.org/t/vtkimagecroppingregionswidget-example-code/8489 "2022-05-17T09:01:12Z")

</div>

Hi all Is there any c++ example available for vtkImageCroppingRegionsWidget? Couldnt find anything and if someone can share a working example , that will be helpful. Thnaks & Regards Santho

---

## [VTK 16 bit data issue for 2D xray using QT](https://discourse.vtk.org/t/vtk-16-bit-data-issue-for-2d-xray-using-qt/8433)

<div class="topic-metadata">

**Author:** [@santho](https://discourse.vtk.org/u/santho)\
**Replies:** 23\
**Last updated:** [May 17, 2022, 9:00am UTC](https://discourse.vtk.org/t/vtk-16-bit-data-issue-for-2d-xray-using-qt/8433 "2022-05-17T09:00:14Z")

</div>

HI All we are working on an 2D xray porject on VTK and QT and completely stuck at this point The raw image file from xray detector plate is of 16 bit data. Our work flow is as below we convert raw data file to Qimage …

---

## [vtk-6.3.0 external data not found](https://discourse.vtk.org/t/vtk-6-3-0-external-data-not-found/8497)

<div class="topic-metadata">

**Author:** [@Arghya](https://discourse.vtk.org/u/Arghya)\
**Replies:** 1\
**Last updated:** [May 17, 2022, 1:25am UTC](https://discourse.vtk.org/t/vtk-6-3-0-external-data-not-found/8497 "2022-05-17T01:25:50Z")

</div>

For my project, I need to install vtk-6.3.0 on ubuntu 18.04. I cloned and did a git checkout v6.3.0 and was able to configure and generate cmake output file but when I try to compile using “make”, vtk is unable to downlo…

---

## [mean or average over specific dimension of a vtkImage](https://discourse.vtk.org/t/mean-or-average-over-specific-dimension-of-a-vtkimage/8509)

<div class="topic-metadata">

**Author:** [@gregthom992](https://discourse.vtk.org/u/gregthom992)\
**Replies:** 0\
**Last updated:** [May 17, 2022, 1:25am UTC](https://discourse.vtk.org/t/mean-or-average-over-specific-dimension-of-a-vtkimage/8509 "2022-05-17T01:25:06Z")

</div>

Hi, I was wondering if there is anything ready made in vtk to do this task. say conceptually, I have a 2D vtk Image “matrix” I want to compute the mean/average over only one dimension so that if the input image/matrix…

---

## [Understanding package names](https://discourse.vtk.org/t/understanding-package-names/8508)

<div class="topic-metadata">

**Author:** [@humbletang](https://discourse.vtk.org/u/humbletang)\
**Replies:** 2\
**Last updated:** [May 16, 2022, 8:28pm UTC](https://discourse.vtk.org/t/understanding-package-names/8508 "2022-05-16T20:28:17Z")

</div>

Hi there, I’m trying to learn how to find the package name for a particular class in VTK with c++ and cmake. I feel like I’ve been going through examples and blindly following what the authors suggest should go inside t…

---

## [2D contours from mesh / plane intersection](https://discourse.vtk.org/t/2d-contours-from-mesh-plane-intersection/6742)

<div class="topic-metadata">

**Author:** [@Nicolas\_Rannou](https://discourse.vtk.org/u/Nicolas_Rannou)\
**Replies:** 4\
**Last updated:** [May 16, 2022, 4:28pm UTC](https://discourse.vtk.org/t/2d-contours-from-mesh-plane-intersection/6742 "2022-05-16T16:28:15Z")

</div>

Hi, I’m trying to evaluate if vtk.js is right for my next project and a feature that I couldn’t find is the ability to generate 2D contours from a mesh + plane intersection. And the contours shall look nice and the solu…

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

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