# Latest

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

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

**Page:** 215

---

## [Surface reconstruction using Activiz control](https://discourse.vtk.org/t/surface-reconstruction-using-activiz-control/3279)

<div class="topic-metadata">

**Author:** [@janhavi\_deshpande](https://discourse.vtk.org/u/janhavi_deshpande)\
**Replies:** 0\
**Last updated:** [May 12, 2020, 4:55am UTC](https://discourse.vtk.org/t/surface-reconstruction-using-activiz-control/3279 "2020-05-12T04:55:27Z")

</div>

Hello, I am trying to render 3D surface using set of contours. I found that surface reconstruction is taking lesser time with activiz control than c++. Why does implementation using activiz takes less time? Also I want …

---

## [How to change volume'color ?](https://discourse.vtk.org/t/how-to-change-volumecolor/2061)

<div class="topic-metadata">

**Author:** [@Lee](https://discourse.vtk.org/u/Lee)\
**Replies:** 6\
**Last updated:** [May 11, 2020, 6:43am UTC](https://discourse.vtk.org/t/how-to-change-volumecolor/2061 "2020-05-11T06:43:29Z")

</div>

I use ParaView to import RAW file, Its results are as follows： I want to use VTK to simuate this result, Its results are as follows： and i want to change my result’s color ,how to change volume’color ?

---

## [vtkCollisionDetectionFilter](https://discourse.vtk.org/t/vtkcollisiondetectionfilter/2594)

<div class="topic-metadata">

**Author:** [@Jaafar\_Nasrabadi](https://discourse.vtk.org/u/Jaafar_Nasrabadi)\
**Replies:** 6\
**Last updated:** [May 11, 2020, 3:46am UTC](https://discourse.vtk.org/t/vtkcollisiondetectionfilter/2594 "2020-05-11T03:46:26Z")

</div>

hi i compiled vtk 8.2.0 with cmake and vs 2017 and i tested it. but i can’t see vtkCollisionDetectionFilter. is any special setings needed to compile vtk and use vtkCollisionDetectionFilter? Thanks a lot.

---

## [Select points inside a box by custom interactor style](https://discourse.vtk.org/t/select-points-inside-a-box-by-custom-interactor-style/3249)

<div class="topic-metadata">

**Author:** [@sjtu-xx](https://discourse.vtk.org/u/sjtu-xx)\
**Replies:** 0\
**Last updated:** [May 8, 2020, 3:17pm UTC](https://discourse.vtk.org/t/select-points-inside-a-box-by-custom-interactor-style/3249 "2020-05-08T15:17:16Z")

</div>

I want to select points inside a box by custom interactor style. To do this, I try to decide if a point inside a defined frustum. The frustum.FunctionValue(pointdata) value of points inside frustum should smaller than ze…

---

## [Is there a class to show croocked slice from vtkImageData](https://discourse.vtk.org/t/is-there-a-class-to-show-croocked-slice-from-vtkimagedata/3261)

<div class="topic-metadata">

**Author:** [@kerim](https://discourse.vtk.org/u/kerim)\
**Replies:** 2\
**Last updated:** [May 9, 2020, 9:12pm UTC](https://discourse.vtk.org/t/is-there-a-class-to-show-croocked-slice-from-vtkimagedata/3261 "2020-05-09T21:12:19Z")

</div>

Hi, I have 3D data in file that can be displayed as vtkImageData. But I dont want to upload the whole file to the RAM because it weighs few Gigabytes. So I decided to display vertical slice from this file (see picture).…

---

## [Can't extract boundary from vtkPolyData](https://discourse.vtk.org/t/cant-extract-boundary-from-vtkpolydata/3258)

<div class="topic-metadata">

**Author:** [@kerim](https://discourse.vtk.org/u/kerim)\
**Replies:** 5\
**Last updated:** [May 9, 2020, 2:14pm UTC](https://discourse.vtk.org/t/cant-extract-boundary-from-vtkpolydata/3258 "2020-05-09T14:14:21Z")

</div>

Hi, I’m trying to retrieve boundary points from vtkPolyData but without success. Here is how I try to do that: // here are 9 points (see picture below) vtkSmartPointer\<vtkPoints\> points = vtkSmartPointe…

---

## [Problem with ambient and specular color in vtkLight using vtk 8.2.0 (2)](https://discourse.vtk.org/t/problem-with-ambient-and-specular-color-in-vtklight-using-vtk-8-2-0-2/3204)

<div class="topic-metadata">

**Author:** [@santichialvo](https://discourse.vtk.org/u/santichialvo)\
**Replies:** 8\
**Last updated:** [May 8, 2020, 9:37pm UTC](https://discourse.vtk.org/t/problem-with-ambient-and-specular-color-in-vtklight-using-vtk-8-2-0-2/3204 "2020-05-08T21:37:33Z")

</div>

Hello, I’ve some problems related to the methods vtkLight::setSpecularColor and vtkLight::seAmbientColor. I explained the issue in detail in here. I’m not sure if this is a bug, if someone can explain to me what is happ…

---

## [How can I use the vtkProbeFilter with a point cloud](https://discourse.vtk.org/t/how-can-i-use-the-vtkprobefilter-with-a-point-cloud/3243)

<div class="topic-metadata">

**Author:** [@timofeymukha](https://discourse.vtk.org/u/timofeymukha)\
**Replies:** 2\
**Last updated:** [May 8, 2020, 8:04am UTC](https://discourse.vtk.org/t/how-can-i-use-the-vtkprobefilter-with-a-point-cloud/3243 "2020-05-08T08:04:31Z")

</div>

Dear all, I’m trying to achieve what seems to be an easy task, yet I cannot manage to do it. I have a large polyData, and a large point cloud (a list of points). I want to sample the cell data values of the polyData at …

---

## [Data set via SetPixelData / SetRBACharPixelData not shown](https://discourse.vtk.org/t/data-set-via-setpixeldata-setrbacharpixeldata-not-shown/3247)

<div class="topic-metadata">

**Author:** [@codeling](https://discourse.vtk.org/u/codeling)\
**Replies:** 0\
**Last updated:** [May 7, 2020, 8:09pm UTC](https://discourse.vtk.org/t/data-set-via-setpixeldata-setrbacharpixeldata-not-shown/3247 "2020-05-07T20:09:55Z")

</div>

I’m trying to use a rubber band selection in one of my render windows. However, while the selection itself works fine, something about this render window prevents the rubber band from being drawn; the selection works as…

---

## [Partitioned Unstructured Grid Catalyst](https://discourse.vtk.org/t/partitioned-unstructured-grid-catalyst/3240)

<div class="topic-metadata">

**Author:** [@TakisCFD](https://discourse.vtk.org/u/TakisCFD)\
**Replies:** 0\
**Last updated:** [May 7, 2020, 4:23pm UTC](https://discourse.vtk.org/t/partitioned-unstructured-grid-catalyst/3240 "2020-05-07T16:23:21Z")

</div>

Dear All Following a partitioned unstructured grid across processes where the following are true: Each MPI process holds a number of elements Each MPI process holds a number of nodes no ghost nodes mesh geometry remai…

---

## [question about the last reslice of vtkResliceImageViewer](https://discourse.vtk.org/t/question-about-the-last-reslice-of-vtkresliceimageviewer/3238)

<div class="topic-metadata">

**Author:** [@yuhuimoon](https://discourse.vtk.org/u/yuhuimoon)\
**Replies:** 0\
**Last updated:** [May 7, 2020, 3:43pm UTC](https://discourse.vtk.org/t/question-about-the-last-reslice-of-vtkresliceimageviewer/3238 "2020-05-07T15:43:47Z")

</div>

I’m using vtkResliceImageViewer to show the volume image. I set the viewer to the oblique mode. There are 192 slices in the sagittal direction. When I scroll the viewer to the image by mouse wheel, I can’t get the 192th …

---

## [question about image bounds](https://discourse.vtk.org/t/question-about-image-bounds/3231)

<div class="topic-metadata">

**Author:** [@yuhuimoon](https://discourse.vtk.org/u/yuhuimoon)\
**Replies:** 2\
**Last updated:** [May 7, 2020, 3:51pm UTC](https://discourse.vtk.org/t/question-about-image-bounds/3231 "2020-05-07T15:51:53Z")

</div>

I have a volume image with the size of 192 x 256 x 256. The spacing of the image is 1. I use GetBounds(). The result is 0, 191, 0, 255, 0, 255. In my understanding, the result should be 0, 192, 0, 256, 0, 256. Is that ri…

---

## [Building Python 3 support when building from source](https://discourse.vtk.org/t/building-python-3-support-when-building-from-source/3236)

<div class="topic-metadata">

**Author:** [@mshaikh786](https://discourse.vtk.org/u/mshaikh786)\
**Replies:** 2\
**Last updated:** [May 7, 2020, 3:35pm UTC](https://discourse.vtk.org/t/building-python-3-support-when-building-from-source/3236 "2020-05-07T15:35:29Z")

</div>

Hi, I am building VTK 9.0.0 stable release. How do I direct CMake to build Python3 binding? By default it is building python2.7 bindings.

---

## [Building VTK 9.0 fails when using mpi support](https://discourse.vtk.org/t/building-vtk-9-0-fails-when-using-mpi-support/3227)

<div class="topic-metadata">

**Author:** [@badshah400](https://discourse.vtk.org/u/badshah400)\
**Replies:** 7\
**Last updated:** [May 7, 2020, 1:32am UTC](https://discourse.vtk.org/t/building-vtk-9-0-fails-when-using-mpi-support/3227 "2020-05-07T01:32:10Z")

</div>

When building VTK 9.0 with mpi support, the build fails at linking to generate vtkFiltersParallelGeometryJava with the following errors. Building works without any issue when not compiling with mpi support, which leads m…

---

## [Query fraction of rendered pixels](https://discourse.vtk.org/t/query-fraction-of-rendered-pixels/3228)

<div class="topic-metadata">

**Author:** [@woodscn](https://discourse.vtk.org/u/woodscn)\
**Replies:** 0\
**Last updated:** [May 6, 2020, 6:51pm UTC](https://discourse.vtk.org/t/query-fraction-of-rendered-pixels/3228 "2020-05-06T18:51:26Z")

</div>

I’m fairly new to VTK, so I apologize if this is already answered somewhere. I’m rendering a large point cloud, and I quickly saturate the screen as the data size increases. I’d like to algorithmically describe this sat…

---

## [\[VTK 9.0.0rc3\] Python can't set multisamples](https://discourse.vtk.org/t/vtk-9-0-0rc3-python-cant-set-multisamples/3223)

<div class="topic-metadata">

**Author:** [@jasonb5](https://discourse.vtk.org/u/jasonb5)\
**Replies:** 0\
**Last updated:** [May 6, 2020, 2:32am UTC](https://discourse.vtk.org/t/vtk-9-0-0rc3-python-cant-set-multisamples/3223 "2020-05-06T02:32:20Z")

</div>

Calling SetMultiSamples has no affect using VTK 9.0.0rc3. In both examples I would expect the output to show a difference in images but only the 8.2.0 environment produces these results. I’m unsure if i’m using this corr…

---

## [vtkClipVolume using an implicit function (vtkCylinder) - errors on output grid](https://discourse.vtk.org/t/vtkclipvolume-using-an-implicit-function-vtkcylinder-errors-on-output-grid/3198)

<div class="topic-metadata">

**Author:** [@vitorvas](https://discourse.vtk.org/u/vitorvas)\
**Replies:** 2\
**Last updated:** [May 6, 2020, 2:43pm UTC](https://discourse.vtk.org/t/vtkclipvolume-using-an-implicit-function-vtkcylinder-errors-on-output-grid/3198 "2020-05-06T14:43:30Z")

</div>

Hello! I’m clipping a vtkUnstructuredGrid with a vtkCylinder. I got both parts (making use of GenerateClippedOutputOn()). However, one of my resultant grid has artifacts. I wasn’t able to be sure what are the problem, …

---

## [Appending data field to a vtk file (Python VTK)](https://discourse.vtk.org/t/appending-data-field-to-a-vtk-file-python-vtk/3220)

<div class="topic-metadata">

**Author:** [@Shahid](https://discourse.vtk.org/u/Shahid)\
**Replies:** 5\
**Last updated:** [May 6, 2020, 10:02am UTC](https://discourse.vtk.org/t/appending-data-field-to-a-vtk-file-python-vtk/3220 "2020-05-06T10:02:54Z")

</div>

Hi I have an array which I wish to add as another data field to an existing vtk file - but im struggling to get it to work. I’m using python, specificaly the build of python and vtk that comes with paraview 5.6.This is …

---

## [MPR with vtk-dicom](https://discourse.vtk.org/t/mpr-with-vtk-dicom/3224)

<div class="topic-metadata">

**Author:** [@Yongun\_Lee](https://discourse.vtk.org/u/Yongun_Lee)\
**Replies:** 0\
**Last updated:** [May 6, 2020, 4:46am UTC](https://discourse.vtk.org/t/mpr-with-vtk-dicom/3224 "2020-05-06T04:46:23Z")

</div>

Hi. I used d.gobbi’s vtk-dicom and the MPR is showing abnormally. (Annotated Cube faces the Anterior, but the volume faces the person’s right face.) I loaded one series from vtkDICOMReader and applied the coordinate sy…

---

## [How to make a DicomImage fill a window](https://discourse.vtk.org/t/how-to-make-a-dicomimage-fill-a-window/3218)

<div class="topic-metadata">

**Author:** [@Amnesie](https://discourse.vtk.org/u/Amnesie)\
**Replies:** 2\
**Last updated:** [May 6, 2020, 2:05am UTC](https://discourse.vtk.org/t/how-to-make-a-dicomimage-fill-a-window/3218 "2020-05-06T02:05:35Z")

</div>

Here is my code , vtkSmartPointer imageViewer =vtkSmartPointer::New(); imageViewer-\>SetInputConnection(imageflip-\>GetOutputPort()); imageViewer-\>Render(); imageViewer-\>GetRenderWindow()-\>SetWindowName(“ROI”); imag…

---

## [Deleting points from vtkPolyData](https://discourse.vtk.org/t/deleting-points-from-vtkpolydata/3222)

<div class="topic-metadata">

**Author:** [@MMoussa](https://discourse.vtk.org/u/MMoussa)\
**Replies:** 0\
**Last updated:** [May 6, 2020, 12:25am UTC](https://discourse.vtk.org/t/deleting-points-from-vtkpolydata/3222 "2020-05-06T00:25:30Z")

</div>

Brand new to VTK I am using the C# wrapper (Activiz) to build an interactive application. I’m trying to figure out how to delete points from vtkPolyData (more generally, how to efficiently use this data structure in an …

---

## [How to compute surface- and volume-based center of masses for 3D geometries](https://discourse.vtk.org/t/how-to-compute-surface-and-volume-based-center-of-masses-for-3d-geometries/3215)

<div class="topic-metadata">

**Author:** [@normanius](https://discourse.vtk.org/u/normanius)\
**Replies:** 3\
**Last updated:** [May 5, 2020, 11:05pm UTC](https://discourse.vtk.org/t/how-to-compute-surface-and-volume-based-center-of-masses-for-3d-geometries/3215 "2020-05-05T23:05:04Z")

</div>

Hello For (closed) 3D surface geometries with triangular mesh, I can think of three different types to compute the “center of mass”: point-based: center=sum(points)/len(points) surface-based: center=sum(tri\_areas\*tri…

---

## [Vtk threshold not passing cell and point data](https://discourse.vtk.org/t/vtk-threshold-not-passing-cell-and-point-data/3188)

<div class="topic-metadata">

**Author:** [@a-jp1](https://discourse.vtk.org/u/a-jp1)\
**Replies:** 1\
**Last updated:** [May 5, 2020, 9:40pm UTC](https://discourse.vtk.org/t/vtk-threshold-not-passing-cell-and-point-data/3188 "2020-05-05T21:40:01Z")

</div>

Hi, I’m sure I’ve done this before in c++ with vtk. Have a vtkunstructuredgrid that I threshold on a cell based int array. There is other cell and point data on the mesh but it’s not being passed. If I do the same opt…

---

## [Adding center of mass properties to vtkMassProperties](https://discourse.vtk.org/t/adding-center-of-mass-properties-to-vtkmassproperties/653)

<div class="topic-metadata">

**Author:** [@rdbrn](https://discourse.vtk.org/u/rdbrn)\
**Replies:** 1\
**Last updated:** [May 5, 2020, 2:28pm UTC](https://discourse.vtk.org/t/adding-center-of-mass-properties-to-vtkmassproperties/653 "2020-05-05T14:28:27Z")

</div>

I propose to add VolumeCenterX, VolumeCenterY and VolumeCenterZ to vtkMassProperties. These properties are easy to calculate as follows: for each triangle: create a tetrahedron for the three vertices of this triangle …

---

## [Marking algorithm output as unchanged](https://discourse.vtk.org/t/marking-algorithm-output-as-unchanged/3210)

<div class="topic-metadata">

**Author:** [@BetaRavener](https://discourse.vtk.org/u/BetaRavener)\
**Replies:** 0\
**Last updated:** [May 5, 2020, 9:59am UTC](https://discourse.vtk.org/t/marking-algorithm-output-as-unchanged/3210 "2020-05-05T09:59:28Z")

</div>

Hi. I have a situation in which I have a two filters and a time-aware source. Source (A) is connected to first filter (B), which filters the data based on some criteria. Output of B is connected to computationally heavy …

---

## [How to implement a vtkImageData with boolean data?](https://discourse.vtk.org/t/how-to-implement-a-vtkimagedata-with-boolean-data/3209)

<div class="topic-metadata">

**Author:** [@MichelleKline](https://discourse.vtk.org/u/MichelleKline)\
**Replies:** 2\
**Last updated:** [May 5, 2020, 12:00am UTC](https://discourse.vtk.org/t/how-to-implement-a-vtkimagedata-with-boolean-data/3209 "2020-05-05T00:00:17Z")

</div>

Hello, Is it possible to create a vtkImageData with boolean data? For example: myImage = vtkSmartPointer\<vtkImageData\>::New(); myImage-\>AllocateScalars(VTK\_FLOAT, 1); // is boolean possible? Thank you, Michelle

---

## [VolumeRendering Window Width and Window Level using VTK](https://discourse.vtk.org/t/volumerendering-window-width-and-window-level-using-vtk/3200)

<div class="topic-metadata">

**Author:** [@watson](https://discourse.vtk.org/u/watson)\
**Replies:** 1\
**Last updated:** [May 4, 2020, 11:40pm UTC](https://discourse.vtk.org/t/volumerendering-window-width-and-window-level-using-vtk/3200 "2020-05-04T23:40:18Z")

</div>

I need to change the Window Width and Window Level of the volume rendered image with mouse using vtk . I referred this link https://vtk.org/pipermail/vtkusers/2015-September/092338.html .But it has no precise answer. H…

---

## [Does Slicer Allow Us to Export a Single Slice?](https://discourse.vtk.org/t/does-slicer-allow-us-to-export-a-single-slice/3158)

<div class="topic-metadata">

**Author:** [@MichelleKline](https://discourse.vtk.org/u/MichelleKline)\
**Replies:** 3\
**Last updated:** [May 4, 2020, 11:08pm UTC](https://discourse.vtk.org/t/does-slicer-allow-us-to-export-a-single-slice/3158 "2020-05-04T23:08:37Z")

</div>

Hello, Is there a way in Slicer to export the currently displayed (and likely reformatted) slice of a volume to an output file? For example, I have loaded a double-oblique DICOM, and I am viewing the volume in an axial…

---

## [Problem with ambient and specular color in vtkLight using vtk 8.2.0](https://discourse.vtk.org/t/problem-with-ambient-and-specular-color-in-vtklight-using-vtk-8-2-0/2566)

<div class="topic-metadata">

**Author:** [@santichialvo](https://discourse.vtk.org/u/santichialvo)\
**Replies:** 6\
**Last updated:** [May 4, 2020, 3:09pm UTC](https://discourse.vtk.org/t/problem-with-ambient-and-specular-color-in-vtklight-using-vtk-8-2-0/2566 "2020-05-04T15:09:11Z")

</div>

Hi all, I recently migrated from VTK 6.3 to 8.2. I use two lights on the scene, and I have a small UI option to change the value of the components of the light. For this purpose, I use SetXXXColor() method. It’s strange…

---

## [Manipulate data from a vtkXMLUnstructuredGridReader](https://discourse.vtk.org/t/manipulate-data-from-a-vtkxmlunstructuredgridreader/3179)

<div class="topic-metadata">

**Author:** [@armel.demontgros](https://discourse.vtk.org/u/armel.demontgros)\
**Replies:** 6\
**Last updated:** [May 3, 2020, 9:36pm UTC](https://discourse.vtk.org/t/manipulate-data-from-a-vtkxmlunstructuredgridreader/3179 "2020-05-03T21:36:28Z")

</div>

Hi, I am wondering what is the best way to manipulate the data coming from a vtkXMLUnstructuredGridReader. std::string filename = “C:\\VTK\\exm.vtu”; vtkNew reader; reader-\>SetFileName(filename.c\_str()); reader-\>Updat…

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

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