Exemple #1
0
        /// <summary>
        /// Performes a Intersection boolean operation between this polygon and a clipping one.
        /// </summary>
        /// <param name="clip"></param>
        /// <returns></returns>
        public List <Polygon> Intersection(Polygon clip)
        {
            var swLine = new SweepLine(this, clip, SweepLineType.Boolean);

            return(swLine.ComputeBooleanOperation(BooleanType.Intersection));
        }
Exemple #2
0
        /// <summary>
        /// Performes a Difference boolean operation between this polygon and a clipping one.
        /// </summary>
        /// <param name="clip"></param>
        /// <returns></returns>
        public List <Polygon> Difference(Polygon clip)
        {
            var swLine = new SweepLine(this, clip, SweepLineType.Boolean);

            return(swLine.ComputeBooleanOperation(BooleanType.Differenece));
        }