/// <summary> /// Adds a path to a ClipperOffset object in preparation for offsetting. /// </summary> /// <param name="path"> Vertices of the path. </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 AddPath(List <Vector2> path, JoinType joinType = JoinType.jtMiter, EndType endType = EndType.etClosedPolygon) { clipperOffset.AddPath(ClipperUtility.ToIntPath(path), joinType, endType); }
/// <summary> /// Adds a path to a Clipper object in preparation for clipping. /// </summary> /// <param name="path"> Vertices of the path. </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 the path is invalid for clipping, true otherwise. </returns> public bool AddPath(List <Vector2> path, PolyType polyType, bool closed = true) { return(clipper.AddPath(ClipperUtility.ToIntPath(path), polyType, closed)); }