Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/288.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 将区域转换为图形SPATH_C#_Intersection_Region_Polygons_Graphicspath - Fatal编程技术网

C# 将区域转换为图形SPATH

C# 将区域转换为图形SPATH,c#,intersection,region,polygons,graphicspath,C#,Intersection,Region,Polygons,Graphicspath,我使用区域来查找两条路径(由两个多边形创建)的交点 如何获取区域d的交点?我建议使用适合此任务的多边形交点库 这是一个最优秀的,可以从C中使用的# 我还确信,如果需要的话,还有很多其他的语言是用C#写的。以下是关于该主题的SO问答: 使用检查graphicspath是否相交 if(!d.IsEmpty(this.CreateGraphics()) { RectangleF rectBound=d.GetBound(this.CreateGraphics()); Pointf inters

我使用区域来查找两条路径(由两个多边形创建)的交点


如何获取区域d的交点?

我建议使用适合此任务的多边形交点库

这是一个最优秀的,可以从C中使用的#

我还确信,如果需要的话,还有很多其他的语言是用C#写的。以下是关于该主题的SO问答:


使用检查graphicspath是否相交

if(!d.IsEmpty(this.CreateGraphics())

{

RectangleF rectBound=d.GetBound(this.CreateGraphics());

Pointf intersectionPoint=new Pointf(rectBound.X+rectBound.Width/2,rectBound.Y+rectBound.Height/2);

}
if(!d.IsEmpty(this.CreateGraphics())

{

RectangleF rectBound=d.GetBound(this.CreateGraphics());

Pointf intersectionPoint=new Pointf(rectBound.X+rectBound.Width/2,rectBound.Y+rectBound.Height/2);

}