规则示意
attr ErkerFact = 0.8 attr ErkerDepth = 0.8 attr ErkerStop = 2
Lot–> extrude(10) X comp(f) { all : Erker }
Erker–> case(scope.sx > ErkerStop) : s(‘ErkerFact, ‘ErkerFact, 0) center(xy) alignScopeToGeometry(yUp, 0) extrude(ErkerDepth) X comp(f){top : Erker} else: NIL
视频教程请参考
http://edu.cityengine.com.cn/course/cityengine%e5%be%aa%e7%8e%af%e8%a7%84%e5%88%99%e5%86%99%e6%b3%95/