没有合适的资源?快使用搜索试试~ 我知道了~
CityEngine-基于规则建模和输出模型
4星 · 超过85%的资源 需积分: 32 63 下载量 149 浏览量
2012-07-12
09:09:46
上传
评论 3
收藏 558KB DOC 举报
温馨提示
试读
4页
在城市引擎中,建筑模型是通过CGA Rules规则 进行描述的,一个CGA文件数个规则规则组成,他们定义了建筑按照一定的几何学生成。然后一个CGA被指定给一个图形,这一代的建筑模型将会在指定的图形范围生成。在这次的实例中我将学会使用非常基本的规则语句创建一个单独的CGA文件
资源推荐
资源详情
资源评论
Rule-based Modeling 基 于
规则的建模
In CityEngine, building
models are described through CGA Rules. A CGA rule file consists of several rules that define how the actual building geometry is created. After a CGA rule file is assigned to a
shape, the generation of the building model starting from this shape can begin. In this tutorial we will create a single CGA file with very basic rules.
在城市引擎中,建筑模型是通过 CGA Rules
规则
进行描述的,一个 CGA 文件数个规则规则组成,他们定义了建筑按照一定的几何学生成。然后一个 CGA 被指定给
一个图形,这一代的建筑模型将会在指定的图形范围生成。在这次的实例中我将学会使用非常基本的规则语句创建一个单独的 CGA 文件。
Creating and writing a new rule file 创建和编写一个新的规则文件
A new CGA shape grammar rule file can be created clicking:
New ... → CityEngine → CGA Grammar File
点击 New ... → CityEngine → CGA Grammar File 创建一个新的 CGA 图形规则语法文件
A new CGA file is created in the rules/ directory of your project, and the CGA rule editor is opened.
In the CGA editor, grammar authoring can now be started by defining the building parameters: Therefore, the minimum and maximum building height are defined
as so-called rule attributes. These values can later be changed conveniently for single buildings in the Inspector.
这个新的 CGA 文件创建在你的工程项目中的规则目录里面,CGA 规则编辑器是打开的。
在 CGA 规则编辑器中,可以根据规定的建筑参数开始编写语法程序。因此,建筑高度的最小值和最大值定义为规则属性。这些变量能随后很方便的通过导航器来改
变单个建筑的高度。
attr minheight = 10
attr maxheight = 30
Every shape (lot or street shape) has a specific start rule that triggers a rule from the rule file. For example, lots generated in the CityEngine have the start rule Lot by default.
Select a single lot and look into the Inspector to see the current start rule.
每一个图形(地块或者街道图形)一开始有一个特定的规则文件触发器。例如:在通过预设规则文件产生的城市引擎中,拾取一个地块然后查看导航器中的初始规则。
The start rule defines the first rule
that is triggered form the rule set.
We therefore write the start rule
for our building as follows:
Lot --> extrude ( rand ( minheight ,
maxheight )) Envelope
The lot will be extruded to a
random height between
资源评论
- liudong_sd2013-05-20解释的不错,可以学习下。但是 对规则建模解释的不是很全面
- feng30302062014-05-28资料很少,算是好资源了
andy122333
- 粉丝: 0
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功