new
def parm
rad=10
rad_size=5
end
parm
plo blo gro
gen zon pyramid p0 rad 0 0 p1 rad 0 rad p2 rad rad 0 p3 0 0 0 p4 rad rad rad size rad_size rad_size rad_size group 1
gen zon pyramid p0 0 rad 0 p1 rad rad 0 p2 0 rad rad p3 0 0 0 p4 rad rad rad size rad_size rad_size rad_size group 2
gen zon pyramid p0 0 0 rad p1 0 rad rad p2 rad 0 rad p3 0 0 0 p4 rad rad rad size rad_size rad_size rad_size group 3
def mark_sphere
p_gp=gp_head
loop while p_gp#null
px=gp_xpos(p_gp)
py=gp_ypos(p_gp)
pz=gp_zpos(p_gp)
dist=sqrt(px*px+py*py+pz*pz)
if dist>0 then
maxp=max(px,max(py,pz))
k=(maxp/rad)*(rad/dist)
gp_xpos(p_gp)=k*px
gp_ypos(p_gp)=k*py
gp_zpos(p_gp)=k*pz
end_if
p_gp=gp_next(p_gp)
end_loop
end
mark_sphere
gen zon ref
gen zon ref dip 90
gen zon ref dip 90 dd 90
plo surf
plo set back wh
pl bl gr
本文来源:https://www.wddqw.com/doc/4484e4a1cfc789eb162dc815.html
正在阅读:
球体——FLAC3d软件建模的命令流01-01
国防教育手抄报加强国防教育文字稿01-01
劳动社会学-名词解释(练习册)01-01
一点点改变总比没有改变好英语作文01-01
积少成多成语的释义及造句01-01
编写童话故事300字作文(精选10篇)01-01
不成抛掷,梦里终相觅《点绛唇·屏却相思》意思-赏析01-01
HOMEKIT是什么意思?01-01
线路参数测量方案01-01