立体交通设施算法概念

立体交通设施算法概念-ArcGIS CityEngine AI
立体交通设施算法概念
此内容为付费阅读,请付费后查看
1000
付费阅读

图片[1]-立体交通设施算法概念-ArcGIS CityEngine AI

 

 

 

/**
 * 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
喜欢就支持一下吧
点赞10 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容