【问题标题】:3-D linear interpolation in SciPy with non-Delaunay triangulation具有非 Delaunay 三角剖分的 SciPy 中的 3-D 线性插值
【发布时间】: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


    【解决方案1】:

    看起来matplotlib.tri.LinearTriInterpolator 可能是一个不错的选择。我会在测试后更新这篇文章。

    编辑:这不是我的问题的解决方案,因为它仅在二维中实现。

    【讨论】:

      猜你喜欢
      • 2020-10-17
      • 2015-01-07
      • 2015-02-21
      • 2020-08-05
      • 2019-09-28
      • 1970-01-01
      • 2019-04-18
      • 2016-05-19
      • 2012-05-25
      相关资源
      最近更新 更多