确定非凸二维图形碰撞的良好算法

发布于 2024-10-09 10:11:55 字数 58 浏览 0 评论 0原文

您能给我提供一些关于二维非凸图形的良好碰撞检测算法的信息(或推荐一篇文章)吗?

谢谢!

could you please provide me with some information (or suggest an article) on good collision detection algorithm for 2D non convex figures?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

孤独难免 2024-10-16 10:11:55


Try this:

http://www.cs.man.ac.uk/~toby/alan/software/

Note that it isn't free for commercial use.

有关更多详细信息,您可以继续这个类似的问题:

多边形相交的简单算法


确定两个简单多边形是否相交:

如果两个简单多边形具有非空交集,则将发生以下情况之一:

A) 其中一个多边形在另一个多边形的内部有一个角。
B) 其中一个的整个边缘位于另一个的内部(该边缘的角不一定位于内部)。这意味着该边缘的中间将位于内部。
C) 多边形是相同的。
D) 有两条边以一定角度相交。交点不是任何多边形的角。

您需要做的是检查多边形是否相同(具有相同的角),或者其中一个角或其中一条边的中间位于另一个多边形的内部,或者是否有两条边在其他地方相交比在一个角落里。

确定一个点是否位于多边形的内部。


Try this:

http://www.cs.man.ac.uk/~toby/alan/software/

Note that it isn't free for commercial use.

For more details you can continue to this similar question:

A simple algorithm for polygon intersection


To determine if two simple polygons intersect :

If two simple polygons have a non-void intersection then one of the following will happen:

A) One of them has a corner inside the interior of the other one.
B) One of them has a whole edge inside the interior of the other one (the corners of that edge may not necessarily be in the interior). This means the middle of that edge will be inside the interior.
C) The polygons are identical.
D) There are two edges that intersect at an angle. The intersection point not being a corner to any of the polygons.

What you need to do is check if the polygons are identical (have the same corners), or one of the corners or one of the middle of the edges lies inside the interior of the other polygon or if there are two edges that intersect somewhere else than in a corner.

Determining if a point lies on the interior of a polygon.

寂寞美少年 2024-10-16 10:11:55

我总是发现维基百科页面对我的需求非常有用:

Sutherland Hodgman

梁·巴尔斯基

Weiler Atherton

以及 本文介绍 Weiler Atherton 算法。

I always found the wikipedia pages to be quite useful for my needs:

Sutherland Hodgman

Liang Barsky

Weiler Atherton

As well as this paper on the Weiler Atherton algorithm.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文