Add new polyline decimation strategies#
The vtkDecimatePolylineFilter has been refactored to use a strategy pattern.
It used a default strategy based on eulerian distances.
This change brings 2 new available strategies :
vtkDecimatePolylineAngleStrategywhich uses the angle between 3 consecutive points to perform the decimation.vtkDecimatePolylineCustomFieldStrategywhich uses a specifiedPointDataarray to gather the values used for the decimation.
It is also possible to make custom strategies by inheriting the vtkDecimatePolylineStrategy class.
The new default strategy for the vtkDecimatePolylineFilter is the vtkDecimatePolylineDistanceStrategy which implements the old eulerian distance computation.