CityEngine CGA语法之单坡式屋顶函数 roofShed
2015-11-23 19:51
357 查看
概要roofShed(angle)roofShed(angle, index)参数angle (float):屋顶的坡度角index (float):边的索引值,调整该值可以改变单坡面墙的位置,默认值为0示例roofShed(angle)index默认为0
attr height =20 Lot--> #拉伸20 extrude(height) #将顶面分解出 comp(f) { side : Facade.|top : roof } attr angle =15 roof-->#屋顶规则 roofShed(angle)roofShed(angle, index)设置index为1
attr height =20 Lot--> #拉伸20 extrude(height) #将顶面分解出 comp(f) { side : Facade.|top : roof } attr angle =15 roof-->#屋顶规则 roofShed(angle,1)设置index为2
attr height =20 Lot--> #拉伸20 extrude(height) #将顶面分解出 comp(f) { side : Facade.|top : roof } attr angle =15 roof-->#屋顶规则 roofShed(angle,2)设置index为3
attr height =20 Lot--> #拉伸20 extrude(height) #将顶面分解出 comp(f) { side : Facade.|top : roof } attr angle =15 roof-->#屋顶规则 roofShed(angle,3)设置index为4
attr height =20 Lot--> #拉伸20 extrude(height) #将顶面分解出 comp(f) { side : Facade.|top : roof } attr angle =15 roof-->#屋顶规则 roofShed(angle,4)
相关文章推荐
- codeforces 581B Luxurious Houses
- 阿里巴巴集团去IOE运动的思考与总结
- 设计模式 - 创建型模式 - 工厂模式
- js将时间戳转换成日期格式
- 【C#】——文件夹中获取指定特点的文件名
- CentOS7 关闭防火墙
- URL的组成
- Android图片高斯模糊的一些方法
- 三种屏幕适配的方式
- 分页控件及其CSS样式
- ByteArrayInputStream 和 ByteArrayOutputStream
- 数据结构之链表_list
- Java JSON(org.json)
- 20本最好的免费的Python书籍
- OpenJudge_P8201 河中跳房子
- [c#][Windows 10 | Windows 10 mobile | Windows Phone] HttpClient 实现form-data POST上传请求
- 分治法求解集合的众数及其重数
- Java NIO系列教程(九) Java NIO与BIO
- Linux kernel多线程的几种实现
- xml的语法