我想在 Python 中使用 Delaunay Triangulation 来插入 3D 中的点。
我拥有的是
# my array of points
points = [[1,2,3], [2,3,4], ...]
# my array of values
values = [7, 8, ...]
# an object with triangulation
tri = Delaunay(points)
# a set of points at which I want to interpolate
p = [[1.5, 2.5, 3.5], ...]
# this gets simplexes that contain given points
s = tri.find_simplex(p)
# this gets vertices for the simplexes
v = tri.vertices[s]
Run Code Online (Sandbox Code Playgroud)
我只能在这里找到一个建议使用方法进行插值的答案transform,但没有更具体。
我需要知道的是如何使用包含单纯形的顶点来获得线性插值的权重。让我们假设一个一般的 …