ofxRules addon for openFrameworks – Neil Mendoza
ofxRules /o əfɛkts rulz/
1. abbreviation
Polite form of openFrameworksFreakinRulesDooood
2. noun
ofxRules – https://github.com/neilmendoza/ofxRules – is an addon for openFrameworks for generatively creating 3D meshes based on sets of rules (normally contained within XML files). Using this approach it is quick to create complex organic looking 3D objects with a small amount of instructions. Addon features include the ability to live code rules files, easy extensibility of the XML parser with custom actions and the ability to create rules programmatically. It’s inspired by Structure Synth and Philip Rideout’s Mesh Generation with Python.
The addon works by traversing a rules file (or the programatic equivalent of this) to create a tree data structure where each branch has a geometric transform. At each step, for each branch, a rule is chosen and executed. Each rule contains a set of actions that can create geometry and update the transform. Each action can also contain the name of a rule set to pick a rule from next.