TClipperBase.Add

function Add(const Polygon: TArrayOfFixedPoint; PolyType: TPolyType): Boolean; overload;


function Add(const Polygon: TArrayOfArrayOfFixedPoint; PolyType: TPolyType): Boolean; overload;


function Add(const Polygon: TArrayOfFloatPoint; PolyType: TPolyType): Boolean; overload;


function Add(const Polygon: TArrayOfArrayOfFloatPoint; PolyType: TPolyType): Boolean; overload;


Any number of subject and clip polygons can be added to the TClipper object before Executing the clip operation.


Polygon Orientation:
Outer polygons can be either clockwise or counter-clockwise as long as any inner 'hole' polygons have the reverse orientation.


Polygon Coordinate range:
Polygon coordinates must be between ± 4.6e+15, otherwise a range error will be thrown. If coordinates can be kept between ± 1.0e+6, then a modest increase in performance can be achieved (approx. 15-20% over the larger range) by avoiding large integer math.


The function will return false if:

See Also

TPolyType