mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-20 19:15:45 +00:00
1261e459d3
The clip filter used to copy the input points and point fields as is, regardless of if they were actually part of the output. With this change, we track which input points are actually part of the output and copy only those values. Address: #112
469 B
469 B
Clip now doesn't copy unused points from the input to the output
Previously, clip would just copy all the points and point data from the input to the output, and only append the new points. This would affect the bounds computation of the result. If the caller wanted to remove the unused points, they had to run the CleanGrid filter on the result.
With this change, clip now keeps track of which inputs are actually part of the output and copies only those points.