- [ operations ]
- operationsA sequence of shape operations to execute.
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.
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.
Both rules generate the same result. In the second rule, the roof is generated first using push/pop operations.
Cylinder assets are inserted five times. Each scope is translated based on the scope of the initial shape.
Conditional and stochastic statements must not have preceding operations. Use push and pop to encapsulate a case switch.