![图片[1]-螺旋式建筑概念方案-CityEngine城市引擎](https://cityvistion.oss-cn-beijing.aliyuncs.com/2024/02/%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20240218180930.jpg)
算法源码:
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
















暂无评论内容