/// <summary>
 /// Adds paths to a ClipperOffset object in preparation for offsetting.
 /// </summary>
 /// <param name="paths"> List of paths. </param>
 /// <param name="joinType"> See http://www.angusj.com/delphi/clipper/documentation/Docs/Units/ClipperLib/Types/JoinType.htm </param>
 /// <param name="endType"> See http://www.angusj.com/delphi/clipper/documentation/Docs/Units/ClipperLib/Types/EndType.htm </param>
 public void AddPaths(List <List <Vector2> > paths, JoinType joinType = JoinType.jtMiter, EndType endType = EndType.etClosedPolygon)
 {
     clipperOffset.AddPaths(ClipperUtility.ToIntPaths(paths), joinType, endType);
 }
Exemple #2
0
 /// <summary>
 /// Adds paths to a Clipper object in preparation for clipping.
 /// </summary>
 /// <param name="paths"> List of paths. </param>
 /// <param name="polyType"> Type of the path (Subject or Clip). </param>
 /// <param name="closed"> Controls whether the path is closed. Clipping paths must always be closed. </param>
 /// <returns> False if all paths are invalid for clipping, true otherwise. </returns>
 public bool AddPaths(List <List <Vector2> > paths, PolyType polyType, bool closed = true)
 {
     return(clipper.AddPaths(ClipperUtility.ToIntPaths(paths), polyType, closed));
 }