vtk-m/docs/changelog/clip-remove-unused-points.md
Sujin Philip 1261e459d3 Clip: Remove unused points
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
2023-04-11 14:35:25 -04:00

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.