小编mib*_*163的帖子

使用 Delaunay 三角剖分 (n-dim) 进行插值

我想在 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,但没有更具体。

我需要知道的是如何使用包含单纯形的顶点来获得线性插值的权重。让我们假设一个一般的 …

python interpolation delaunay scipy

2
推荐指数
1
解决办法
3790
查看次数

标签 统计

delaunay ×1

interpolation ×1

python ×1

scipy ×1