/**
* File: streetone.cga
* Created: 18 Nov 2022 10:26:22 GMT
* Author: Administrator
*/
version "2022.1"
//Street、Sidewalk、Crossing、Junction、Freeway、FreewayEntry、Roundabout、RoundaboutIsland 和 Joint
@StartRule
Street-->
case scope.elevation >=0 : carway
else : color(1,0,0)
carway-->
uproad
downroad
downroad-->
t(0,-7,0)
extrude(world.up.flatTop, 5)
color(1,1,0)
streetbox
streetbox-->
comp(f){//side : sidefacade |
top: color(1,0,0 ) one|
bottom: color(1,0,0 ) one|
right: color(1,0,0 ) one|
left: color(1,0,0 ) two
}
uproad-->
extrude(0.2) color(0,0,1)
Sidewalk-->
copysidewalk
t(0,-7,0)
extrude(scope.sz)
rotateScope(0, 0, 90)
primitiveCylinder(32)
color(0,1,0)
SD
Crossing-->
copyxrossing
t(0,-7,0)
extrude(world.up.flatTop, 5)
crossingbox
color(1,0,1)
crossingbox-->
comp(f){top : color(0,1,0)one |
bottom: color(1,0,1 ) one
}
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容