Del.» function AddPaths(const paths: TPaths; polyType: TPolyType; Closed: Boolean): boolean;
C++ » bool AddPaths(const Paths &ppg, PolyType polyType, bool closed);
C# » public virtual bool AddPaths(Paths ppg, PolyType polyType, bool closed);
Any number of subject and clip paths can be added to a clipping task, either individually via the AddPath() method, or as groups via the AddPaths() method, or even using both methods.
'Subject' paths may be either open (lines) or closed (polygons) or even a mixture of both, but 'clipping' paths must always be closed. Clipper allows polygons to clip both lines and other polygons, but doesn't allow lines to clip either lines or polygons.
With closed paths, orientation should conform with the filling rule that will be passed via Clippper's Execute method.
Path Coordinate range:
Path coordinates must be between ± 0x3FFFFFFFFFFFFFFF (± 4.6e+18), otherwise a range error will be thrown when attempting to add the path to the Clipper object. If coordinates can be kept between ± 0x3FFFFFFF (± 1.0e+9), a modest increase in performance (approx. 15-20%) over the larger range can be achieved by avoiding large integer math. If the preprocessor directive use_int32 is defined (allowing a further increase in performance of 20-30%), then the maximum range is restricted to ± 32,767.
The function will return false if the path is invalid for clipping. A path is invalid for clipping when:
Example, Clipper.Execute, AddPaths, Orientation, Defines, Paths, PolyFillType, PolyType
Copyright ©2010-2014 Angus Johnson - Clipper 6.2.0 - Help file built on 16-October-2014