Syntax
- [ operations ]
Parameters
- operationsA sequence of shape operations to execute.
Description
The [ operation pushes the current shape onto the top of the shape stack. It must be matched by a succeeding ] operation, which pops the shape on top of the shape stack and deletes the shape.
Related
Examples
Rotation
In this example, the extruded shape is rotated three times and assigned to a new shape (X). The rotations build on each other.
| |
Encapsulating the rotations and "create shape" operations with a push/pop pair makes all X coincide. The rotations are independent of each other.
|
House
Both rules generate the same result. In the second rule, the roof is generated first using push/pop operations.
|
Translation
Cylinder assets are inserted five times. Each scope is translated based on the scope of the initial shape.
|
Condition
Conditional and stochastic statements must not have preceding operations. Use push and pop to encapsulate a case switch.
|