语法
- shapeO(frontWidth, rightWidth, backWidth, leftWidth ) { selector operator operations | … }
参数
- frontWidth – 浮点型
前翼的深度。
- rightWidth – 浮点型
右翼的宽度。
- backWidth – 浮点型
后翼的深度。
- leftWidth – 浮点型
左翼的宽度。
- selector – 选择器
- shape – 退缩面。
- remainder – 选择面的其余部分。
- operator – 浮点型
运算符用于定义如何使用退缩面生成后续形状。 这同样适用于具有多个面的形状。 有效运算符如下:
- : – 将每个面放入新形状。
- = – 与选择器对应的所有面将合并成一个新形状。
- operations – 浮点型
要执行的一系列 CGA 操作。
说明
shapeO 操作会根据预定义的空间选择器选择多条边,并使其退缩用户定义的距离。
相关内容
示例
使用 O 形状填充的区块:
attr myFrontDepth = 5
attr myRightWidth = 3
attr myBackDepth = 2
attr myLeftWidth = 11
LotInner -->
Lot
Lot -->
offset(-3, inside)
shapeO(myFrontDepth,myRightWidth,myBackDepth,myLeftWidth)
{ shape : Footprint | remainder : NIL }
Footprint -->
extrude(rand(10,20))
color(1,0,0)
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。