Added features in vtkSelectPolyData

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
Commit: 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:

Issue: https://gitlab.kitware.com/vtk/vtk/-/issues/18616
Commit: 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
Commit: https://gitlab.kitware.com/vtk/vtk/-/merge_requests/9384/diffs?commit_id=faac172bea5e4e7795cf923a6d055098f35b08ad

1 Like

The MR can be found here: https://gitlab.kitware.com/vtk/vtk/-/merge_requests/9384