MSFDouglasPeuckerGeometrySimplifier

Objective-C


@interface MSFDouglasPeuckerGeometrySimplifier : MSFGeometrySimplifier

Swift

class MSFDouglasPeuckerGeometrySimplifier : MSFGeometrySimplifier

An implementation of Ramer-Douglas-Peucker algorithm for simplifying lines and polygons. A fast Radial Distance vertex rejection pass runs first, then Ramer-Douglas-Peucker (worst case quadratic complexity).

  • Constructs a new simplifier, given tolerance.

    Declaration

    Objective-C

    - (id)initWithTolerance:(float)tolerance;

    Swift

    init!(tolerance: Float)

    Parameters

    tolerance

    The maximum error for simplification. The tolerance value gives maximum error in pixels.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;

    Swift

    func dealloc()