0
我使用Region找到兩條路徑的交集(由兩個多邊形創建)。將區域轉換爲圖形路徑
GraphicsPath gp1 = new GraphicsPath();
gp1.AddPolygon(P);//P - array of points [first polygon]
Region d = new Region(gp1);
GraphicsPath gp2 = new GraphicsPath();
gp2.AddPolygon(P_);//P_ - array of points [second polygon]
d.Intersect(gp2);//founded intersection
如何獲得區域d的交點?