python - 如何插入颜色或三角化表面

标签 python matlab interpolation triangulation mayavi

对于这个问题,我几乎束手无策。请耐心等待我解释我的问题。我有一个带有三角形表面的 3D 模型。然后我需要将一些数据(以颜色的形式)添加到 3D 模型的表面。它应该类似于此图中显示的内容:http://user.cscs.ch/fileadmin/user_upload/customers/users_entry_point/pictures/Visualization/Gallery/Cardiac_Therapy.png .

我的问题是我真的不知道如何在三角化表面上插入数据。我想知道是否有人可能有想法或可能指出我正确的方向。 我应该提到我正在使用 python 和 mayavi,但我也愿意使用 MATLAB。

最佳答案

Matlab's trisurf可能对你有用。你给它 (x,y,z) 坐标和每个顶点的颜色。

关于python - 如何插入颜色或三角化表面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14386195/

相关文章:

C/C++ - 了解音频插值代码

matlab - rand 函数是否曾在 MATLAB/Octave 中产生 0 或 1 的值?

performance - 将大量常量和工作区变量传递给 fsolve 目标函数的最佳方法是什么?

python - 获取 http ://localhost:8000/add/Page not found

python - Numpy 中的字符串比较

c - 从 gfortran 将 mxgetfield 添加到 mexinterface

javascript - 理解三次插值的实现

python - scipy 插值速度 : Is there anything faster than RectBivariateSpline?

python - 凯拉斯错误 :The model cannot be compiled because it has no loss to optimize

python - 运行 heroku local 时出错