【发布时间】:2020-08-13 22:27:10
【问题描述】:
理论上,线性插值可以使用任何三角剖分(不仅仅是 Delaunay 三角剖分)。
我正在尝试将scipy.interpolate.LinearNDInterpolator 与不属于scipy.spatial.Delaunay 的预计算3D 三角剖分一起使用。但是,这不起作用,因为 SciPy 代码会检查三角剖分的类 (if isinstance(points, qhull.Delaunay)...)。我尝试通过更改 Delaunay 对象的“点”和“单纯形”属性来创建具有正确类的“假”Delaunay 三角剖分,但收到错误 AttributeError: can't set attribute。
有没有办法解决这个问题,或者其他线性插值库?
【问题讨论】:
标签: python class scipy interpolation