少しVEX

//ポイントを含む線を作成します
int
pt_max = chi(" Point_Max " ); float長さ= chf(" 長さ" ); ベクトルdir = chv(" 方向" ); dir = normalize(dir); ベクトルオフセット = chv(" オフセット" ); float stepVal = length /(float)(pt_max- 1 ); int pts_all []; resize(pts_all、pt_max); forint i = 0 ; i <pt_max; i ++ { ベクトルpos = dir *(stepVal * i)+ オフセット; int curId = addpoint(0 、pos); pts_all [i] = curId; } // addprim(0、 "polyline"、pts_all); forint i = 0 ; i <pt_max- 1 ; i ++ { addprim(0" polyline "、pts_all [i]、pts_all [i + 1 ]); }
//円にしましょう!
float
gradiant =(float)@ ptnum /(float)(@ numpt- 1 ); @Py = sin(勾配* 2 * $ PI); @Pz = cos(勾配* 2 * $ PI);

 

おすすめ

転載: www.cnblogs.com/TadGuo/p/12683311.html