01_user_documentation:rgg:getting-started
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| 01_user_documentation:rgg:getting-started [2025/01/24 11:58] – ↷ Page moved from rgg:getting-started to 01_user_documentation:rgg:getting-started gaetan | 01_user_documentation:rgg:getting-started [2025/01/24 17:07] (current) – removed gaetan | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ==== Opening a RGG file ==== | ||
| - | |||
| - | At the web page, there exist some example XL files, which you should download in order to have a starting point. Or, if you have installed the Examples-plugin, | ||
| - | |||
| - | <code java> | ||
| - | import de.grogra.rgg.*; | ||
| - | import de.grogra.lsystem.*; | ||
| - | |||
| - | public class Koch extends RGG { | ||
| - | public void derivation() [ | ||
| - | Axiom ==> F(10) RU(120) F(10) RU(120) F(10); | ||
| - | F(x) ==> F(x/3) RU(-60) F(x/3) RU(120) F(x/3) RU(-60) F(x/3); | ||
| - | ] | ||
| - | } | ||
| - | </ | ||
| - | |||
| - | You can open an XL file like the one shown file via the menu item File/Open, this creates a new project containing the XL file. For a good RGG modelling workflow, you should switch to the RGG panel layout in the menu Panels/Set Layout. This brings up the most frequently used panels: RGG toolbar, 3D view, text editor, attribute editor, file exporer, meta object browser, message panel, and XL console, see Figure 1.1, " | ||
| - | |||
| - | **Figure 1.1. Panels in the RGG Layout** | ||
| - | |||
| - | {{: | ||
| - | |||
| - | The meta object browser displays objects which have an influence on the scene, but which are not part of the material scene. The RGG object is an example of such an object, and if you open an XL file containing an RGG class, an instance of this class will be created automatically (if the file can be compiled successfully) and inserted into the list of meta objects. By a double click on the RGG object, its editable attributes (the public fields which are declared in its class and are annotated by '' | ||
| - | |||
| - | ==== Working with a Relational Growth Grammar ==== | ||
| - | |||
| - | |||
| - | After an RGG object has been loaded successfully from an XL file, its public methods are made available in the RGG toolbar. Each method appears twice: In the list prefixed with Apply, a click invokes the method once, in the list prefixed with Run, a click starts the repeated invocation of the method. To stop this loop, click the Stop button in the toolbar. Initially, buttons for the first method are accessible immediately; | ||
| - | |||
| - | Normally, RGG methods cause the application of graph grammar rules to the scene. This is the case for the examples provided at GroIMP' | ||
| - | |||
| - | The XL source code of a relational growth grammar can be edited in GroIMP' | ||
| - | |||
| - | If the filename ends in '' | ||
01_user_documentation/rgg/getting-started.1737716337.txt.gz · Last modified: 2025/01/24 11:58 by gaetan
