# Added features in vtkSelectPolyData

**URL:** <https://discourse.vtk.org/t/added-features-in-vtkselectpolydata/8958>\
**Category:** Development\
**Created:** [July 15, 2022, 2:56pm UTC](https://discourse.vtk.org/t/added-features-in-vtkselectpolydata/8958 "2022-07-15T14:56:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrick-laurin](https://discourse.vtk.org/user_avatar/discourse.vtk.org/patrick-laurin/32/5517_2.png) [@patrick-laurin](https://discourse.vtk.org/u/patrick-laurin)\
**Post date:** [July 15, 2022, 2:56pm UTC](https://discourse.vtk.org/t/added-features-in-vtkselectpolydata/8958/1 "2022-07-15T14:56:35Z")

</div>

Hi,

I’ve made some changes in vtkSelectPolyData regarding multiple points:

1. When generating selection scalars, there was no array name set, giving an output without the array in question.

Issue: [https://gitlab.kitware.com/vtk/vtk/-/issues/18614](https://gitlab.kitware.com/vtk/vtk/-/issues/18614)  
Commit: [https://gitlab.kitware.com/vtk/vtk/-/merge\_requests/9384/diffs?commit\_id=1530b9cf5ee4d921a2fac5dc9229a2a95196c27b](https://gitlab.kitware.com/vtk/vtk/-/merge_requests/9384/diffs?commit_id=1530b9cf5ee4d921a2fac5dc9229a2a95196c27b)

1. Cell data never gets passed to the output. Since this filter is of an “extract” type (not clipping cells), we can take advantage of that. Since non-triangular cells gets internally triangulated, care was taken to make sure the cell data gets passed correctly:

 ![image](https://discourse.vtk.org/uploads/default/original/2X/4/4de4086288177c06dad7d6991c8d6d2e31316983.png)

Issue: [https://gitlab.kitware.com/vtk/vtk/-/issues/18616](https://gitlab.kitware.com/vtk/vtk/-/issues/18616)  
Commit: [https://gitlab.kitware.com/vtk/vtk/-/merge\_requests/9384/diffs?commit\_id=8ead4a19cbf808a933a71f8387f4c4f9341f6a7a](https://gitlab.kitware.com/vtk/vtk/-/merge_requests/9384/diffs?commit_id=8ead4a19cbf808a933a71f8387f4c4f9341f6a7a)

1. Input scalars were discarded. Now, they are being passed. The selection array gets added right after, rather than before.

Issue: [https://gitlab.kitware.com/vtk/vtk/-/issues/18617](https://gitlab.kitware.com/vtk/vtk/-/issues/18617)  
Commit: [https://gitlab.kitware.com/vtk/vtk/-/merge\_requests/9384/diffs?commit\_id=faac172bea5e4e7795cf923a6d055098f35b08ad](https://gitlab.kitware.com/vtk/vtk/-/merge_requests/9384/diffs?commit_id=faac172bea5e4e7795cf923a6d055098f35b08ad)

---

<div class="post-metadata">

**Author:** ![patrick-laurin](https://discourse.vtk.org/user_avatar/discourse.vtk.org/patrick-laurin/32/5517_2.png) [@patrick-laurin](https://discourse.vtk.org/u/patrick-laurin)\
**Post date:** [July 15, 2022, 2:58pm UTC](https://discourse.vtk.org/t/added-features-in-vtkselectpolydata/8958/2 "2022-07-15T14:58:07Z")

</div>

The MR can be found here: [https://gitlab.kitware.com/vtk/vtk/-/merge\_requests/9384](https://gitlab.kitware.com/vtk/vtk/-/merge_requests/9384)
