示例#1
0
        void TestIntersection(CGEdge a, CGEdge b)
        {
            var intersection = CGUtils.Get2DSegmentIntersection(a, b);

            if (intersection != null)
            {
                var p = new Intersection(intersection, a, b);
                if (!intersections.Contains(p))
                {
                    intersections.Add(p);
                    pq.AddEx(p);
                }
            }
        }