是否可以在可从Python使用的简单多边形中实现地球伏罗尼曲图的实现?

发布于 2025-01-23 15:57:31 字数 1423 浏览 0 评论 0 原文

如标题所述,我试图在简单的多边形中找到地球沃罗诺图的实现。理想情况下,它可以从Python中使用。有时将其称为最短路径Voronoi图。

它是在非convex边界多边形中包含的点的Voronoi图,其中确定Voronoi细胞的最短路径被限制为在多边形内。请注意,这与简单地用边界多边形剪切标准的Voronoi图并不相同,即在2D多边形内生成细胞。

这是夹在边界多边形上的标准Voronoi图的简单说明:

/I.sstatic.net/xxpgt.png“ alt =“在此处输入图像描述”>

,这是在多边形中生成的Geodesic Voronoi Diarram的简单说明:

​遇到了四篇描述这一点的论文和一些算法来实现它:

我还找到了一个视频,该视频在多边形内移动:

理想情况下,任何实现都可以从python使用,但是任何实现都将不胜感激。

非常感谢。

As the title states, I am trying to find an implementation of the geodesic voronoi diagram in a simple polygon. Ideally it would be usable from Python. It is sometimes referred to as the shortest path voronoi diagram.

It is the voronoi diagram of points contained within a non-convex bounding polygon where the shortest paths determining the voronoi cells are constrained to be within the polygon. Note this is not the same as simply clipping a standard voronoi diagram with a bounding polygon, - the cells are generated within a 2D polygon.

This is a simple illustration of a standard voronoi diagram clipped to a bounding polygon:

enter image description here

And this is a simple illustration of the geodesic voronoi diaram generated within the polygon:

enter image description here

I have come across four papers that describe this and some algorithms to achieve it:

I have also found a video that describes it where the points are also moving within the polygon:

Ideally any implementation would be usable from Python but any implementations at all would be appreciated to start with.

Many thanks.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文