Esempio n. 1
0
        public CombinedPolySegments Combine(PolySegments segments1, PolySegments segments2)
        {
            var i3 = new Intersecter.SegmentIntersecter(eps);

            return(new CombinedPolySegments
            {
                Combined = i3.Calculate(segments1.Segments, segments1.Inverted, segments2.Segments, segments2.Inverted),
                Inverted1 = segments1.Inverted,
                Inverted2 = segments2.Inverted
            });
        }
Esempio n. 2
0
 public Polygon Polygon(PolySegments polySegments)
 {
     return(new Polygon(SegmentChainer.Chain(polySegments.Segments, eps).ToArray(), polySegments.Inverted));
 }