语法

  • shapeL(frontWidth, leftWidth) { selector operator operations |  }

参数

  1. frontWidth – 浮点型
    前翼的深度。
  2. leftWidth – 浮点型
    左翼的宽度。
  3. selector – 选择器
    • shape – 退缩面。
    • remainder – 选择面的其余部分。
  4. operator – 浮点型

    运算符用于定义如何使用退缩面生成后续形状。 这同样适用于具有多个面的形状。 有效运算符如下:

    • : – 将每个面放入新形状。
    • = – 与选择器对应的所有面将合并成一个新形状。
  5. operations – 浮点型
    要执行的一系列 CGA 操作。

说明

shapeL 操作会根据预定义的空间选择器选择多条边,并使其退缩用户定义的距离。

注:

该操作是应用退缩的另一种方式。

shapeL(frontWidth, leftWidth) { selector operator operations | … }

也可以使用 setback 操作和 comp 函数实现:

setback( comp(fe) { front=frontWidth | left=leftWidth } ) { selector operator operations | … }

相关内容

示例

使用 L 形状填充的区块:

GUID-DC15B53B-3B35-457F-B6FB-3299B55A0175-web

attr myFrontDepth = 5
attr myLeftWidth = 11

LotInner -->
   Lot
		
Lot -->
  offset(-3, inside)
  shapeL(myFrontDepth,myLeftWidth) { shape     : Footprint | remainder :       NIL }
	
Footprint -->
   extrude(rand(10,20)) 
   color(1,0,0)