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);
}