![]() |
![]() |
![]() |
Del.» function OffsetPolyLines(const Polylines: TPolygons; const Delta: Double; JoinType: TJoinType = jtSquare; EndType: TEndType = etSquare; Limit: double = 0.0): TPolygons;
C++ » void OffsetPolyLines(const Polygons &in_polys, Polygons &out_polys, double delta, JoinType jointype = jtSquare, EndType endtype = etSquare, double limit = 0.0);
C# » public static Polygons OffsetPolyLines(Polygons polylines, double delta, JoinType jointype = JoinType.jtSquare, EndType endtype = EndType.etSquare, double limit = 0.0);
This function offsets or grows the supplied polylines both inward and outward by the delta amount so that the resulting 'line' will have a width of twice delta.
The polylines parameter (in_polys & out_polys in C++) represents a collection vertices that define one or more line contours. These contours are open by default, unless the EndType paramter indicates otherwise. (C++ only: The in_polys and out_polys parameters can reference the same object.)
Edge joins may be one of three jointypes - jtMiter, jtSquare or jtRound.
Line ends may be one of four endtypes - etClosed, etButt, etSquare or etRound. (See the image below for examples.)
Just as with the OffsetPolygons function, the meaning and use of the limit parameter depends on joinType:
OffsetPolygons, EndType, JoinType, Polygon
Copyright ©2010-2013 Angus Johnson - Clipper Ver 5.1.6 - Help file built on 24-May-2013