vtkWarpScalar: fix double apply generate enclosure bug
fixes paraview/paraview:#21655
The problem was mainly in the shallow copying of the topology of the input into the output and the subsequent appending to that topology. This fix works by deep copying when the Generateenclosure
property is set.
This MR also introduces:
- a subsequent fix in the associated test
- some refactoring and additional type checking
- a minor algorithm fix (
max
->min
so as to only iterate over the correct number of edges of a polygon)
Edited by Julien Fausty