gpt4 book ai didi

Python 3D 点插值

转载 作者:太空宇宙 更新时间:2023-11-03 18:43:13 28 4
gpt4 key购买 nike

我在 Python 中插值 3D 数据点时遇到问题。我有这样的简单数据结构:

class Point( object ):
def __init__( self, x, y, z, data ):
self.x, self.y, self.z = x, y, z
self.data = data

x,y,z 是 3D 笛卡尔空间中的坐标,此时数据为标量值。

我正在尝试此处显示的方法:Interpolation/subsampling of 3D data in python without VTK ,但我无法使其正常工作。

最佳答案

您可以使用 scipy 的插值函数。 unutbu 的第一个答案正是这样做的。或者,您可以在此处了解该功能:http://docs.scipy.org/doc/scipy/reference/interpolate.html

关于Python 3D 点插值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20079611/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com