start keyword

start id --> operations

id identifier Unique identifier for the start rule.

operations A sequence of shape operations to execute.

The start keyword marks a rule as the start rule of the current ruleset, i.e. the cga file.

This rule can be used not only by its id but also conveniently via the generic start, see example below.

Start rules can be used in rule redefinitions of extension rules inside import statements. See the import page for detailed information, syntax 6, and examples.

Start rules cannot be defined in styles other than the Default style.

Related

Example

Reference a start rule

// rule.cga

start Init --> start(20) // same as Init(20)
start Init(height) --> extrude(height)
// main.cga

import rule : "rule.cga"

Lot --> rule.start(10) // same as rule.Init(10)