二维坐标系中不同区域的分析 [英] Analyzation of different areas in 2d coordinate system

查看:81
本文介绍了二维坐标系中不同区域的分析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在2d坐标系中有很多不同的区域(给出了边缘点).它们中的一些相交并在一起,对于某些区域,只应考虑没有交叉的区域-这取决于给定的标准.

有人知道类似的项目或可以进行这种2D分析的库吗?

我一直在寻找更长的时间,但没有找到任何有用的解决方案.

I have a lot of different areas in 2d coordinate system (edge points given). Some of them intersect and belong together and for some areas there has to be considered only the area without intersection - this depends on given criteria.

Does someone knows a similar project or a library allowing this kind of 2d analysis?

I have been searching for this longer time but haven''t found any useful solutions.

推荐答案

是的,我知道.您可以使用类System.Drawing.Region.如果您没有理解我的意思,请注意其设置理论方法/属性ComplementExcludeIntersectsIsEmptyMakeEmptyUnionXor:
http://msdn.microsoft.com/en-us/library/system.drawing. region.aspx [^ ].

您拥有了可能需要进行分析的所有操作,这只会引起您的思考……
请注意:您不必使用任何图形,例如System.Windows.Forms或任何其他限制.您可以将此库使用有或没有任何性质的图形,仅用于纯粹的集合论计算.

—SA
Yes, I do. You can use the class System.Drawing.Region. If you did not get what I mean, pay attention for its set-theory methods/properties Complement, Exclude, Intersects, IsEmpty, MakeEmpty, Union, Xor:
http://msdn.microsoft.com/en-us/library/system.drawing.region.aspx[^].

You have all the operations you may need for your analysis, which will only take some thinking…
Please pay attention: you don''t have to use any graphics, say, with System.Windows.Forms or any other limitation. You can use this library with or without graphics of any nature, just for pure set-theory calculations.

—SA


这篇关于二维坐标系中不同区域的分析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆