def make_sphere ^)C#
p_gp=gp_head R~fk/T?
loop while p_gp#null bm4Bq>*=U
;获取节点点坐标值:P=(px,py,pz) GSd:Plc%
px=gp_xpos(p_gp) R.vOYzo
py=gp_ypos(p_gp) =E^/gc%X
pz=gp_zpos(p_gp) #^R@EZ
dist=sqrt(px*px+py*py+pz*pz) |f!J-H)
if dist>0 then oJ`=ob4WDo
;节点位置调整 'f.k'2T
maxp=max(px,max(py,pz)) 'GiN^Y9dcc
k=(maxp/rad)*(rad/dist) G6G-qqXy6
gp_xpos(p_gp)=k*px 7Z<GlNv
gp_ypos(p_gp)=k*py jZ:/d!$S
gp_zpos(p_gp)=k*pz !
Vlx
end_if cMnN} '
p_gp=gp_next(p_gp) C=v+e%)x@
end_loop !H{>c@i
end >VQLC&u(
make_sphere uOy/c 8`
输入上述程序后出现“trying to divide by zero"是怎么回事?rad为10.0