||
脚本:
n = 6 w = 0.85 u = array([[0,0], [0,0], [w,w], [w,w]]) v = array([[0,w], [0,w], [0,w], [0,w]]) z = array([[w,w], [0,0], [0,0], [w,w]]) s = array([nan, nan]) x = np.vstack([u, s, v]) y = np.vstack([v, s, u]) z = np.vstack([z, s, w-z]) m = n - 1 axes3d(axis=False, clip_plane=False, aspect='equal') for i in range(m, -1, -1): for j in range(m, -1, -1): for k in range(0, m+1): r = k / float(m) g = 1 - j / float(m) b = 1 - i / float(m) surf(i+x, j+y, k+z, facecolor=[r,g,b], edgecolor='k')
1/2 | 闂佽鍓氬Σ鎺楊敇閿燂拷:53 | 婵☆偓绲鹃悧鐘诲Υ閿燂拷 | 婵炴垶鎸搁敃锝囩博鐎涙ǜ浜滈柨鐕傛嫹 | 婵炴垶鎸搁鍕博鐎涙ǜ浜滈柨鐕傛嫹 | 闂佸搫鐗滈崑濠囧Υ閿燂拷 | 闁荤姴鎼悿鍥归敓锟� |
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2025-1-20 15:35
Powered by ScienceNet.cn
Copyright © 2007-2025 中国科学报社