CGA Shape Grammar Reference

Operations Shape Attributes Builtin Functions Other Keywords CGA Utilities Misc Information

This page provides an overview of the operations and functions available in CGA. Visit the CGA Modeling Essentials to learn the foundations of the CGA Shape Grammar.

Operations

Geometry Creation

Geometry Subdivision

Geometry Manipulation

Geometry Tagging

Rule Inlining and Boolean 3D

Texturing

Transformations

Scope

Flow Control

Context

Attributes

Shape Attributes

Shape attributes are properties of the current shape. They can always be read like functions, and some of them can be set with the set operation.

Builtin Functions

Functions always return a value and do not alter the current shape, with the exception of probability functions, which change the state of the shape's random number generator.

Math Functions

Probability Functions

Conversion Functions

String Functions

Geometry Functions

Material Functions

File Functions

Asset and Image Functions

Occlusion Functions

Context Functions

Array Functions

Edge Attribute Functions

Miscellaneous Functions

Other Keywords

CGA Utility Functions Library

String Utility Functions

String List Utility Functions

String lists are a series of strings stored inside one string. The elements are separated by a semicolon (;). The data type is string, thus it is not a real array type as used in other scripting languages.

File, Asset and Image Utility Functions

Math Utility Functions

Color Utility Functions

Miscellaneous Information