算法源码:
version "2023.1"
@Range(min=3, max=100,stepsize=1)
attr height= 32
@Range(min=0, max=360,stepsize=1)
attr rotat_x=0
@Range(min=0, max=360,stepsize=1)
attr rotat_y=0
@Range(min=0, max=360,stepsize=1)
attr rotat_z=0
@Range(min=0, max=3,stepsize=1)
attr heightstep=2
@StartRule
Lot-->
extrude(height)
split(y){heightstep:r(scopeCenter, rotat_x, rotat_y*split.index/split.total, rotat_z) boxstep}*
boxstep-->
set(material.color.r, split.index/split.total)
# set(material.color.r, 0.3)
# set(material.color.g, 0.3)
# set(material.color.b, 0.5)
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容