shapeO operation

Syntax

  • shapeO (frontWidth, rightWidth, backWidth, leftWidth){ selector operator operations | selector operator operations }

Parameters

  1. frontWidthfloat
    Depth of front wing.
  2. rightWidthfloat
    Width of right wing.
  3. leftWidthfloat
    Width of left wing.
  4. selectorkeyword
    • shape—the setback polygon
    • remainder—selects the remainder of the polygon.
  5. operatorfloat
    The operator defines how the setback polygons are used to generate successor shapes. This also applies to shapes with more than one faces. Valid operators are:
    • : —each polygon is put into a new shape.
    • =—all polygons corresponding to the selector are combined into one new shape.
  6. operationsfloat
    A sequence of CGA operations to execute.

Description

The shapeO operation selects a number of edges, depending on predefined spatial selectors, and set them back by a user-defined distance.

Related

Examples

O-shapes

A block filled with O-shapes:

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)
Block filled with O-shapes

In this topic