Is it possible to enforce edges (constrained delaunay triangulation) in scipy.spatial's Delaunay?

点点圈 提交于 2021-02-19 04:52:05

问题


I am experimenting with scipy.spatial's implementation of Qhull's Delaunay triangulation.

Is it possible to generate the triangulation in a manner that preserves the edges defined by the input vertices? (EDIT: i.e. a constrained Delaunay triangulation.) As can be done with the triangle package for Python.

For example, in the picture below there are several triangles (blue) that disregard the location of the edges (red) that are defined by the vertices. Is there a way to enforce these edges such that they are in all cases part of the triangulation result?

Delaunay Triangulation


回答1:


What you are looking for is called constrained Delaunay triangulation, and unfortunately the scipy.spatial implementation does not support it.

As you pointed out, triangle does have that feature -- why not use it instead?



来源:https://stackoverflow.com/questions/30386691/is-it-possible-to-enforce-edges-constrained-delaunay-triangulation-in-scipy-sp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!