Download LPFG user`s manual - Algorithmic Botany

Transcript
Table of contents
TABLE OF CONTENTS ....................................................................................................................... 2
1
INTRODUCTION.......................................................................................................................... 4
1.1
HARDWARE REQUIREMENTS .................................................................................................... 4
1.2
SOFTWARE REQUIREMENTS ..................................................................................................... 4
1.3
INSTALLATION ......................................................................................................................... 4
1.4
RUNNING LPFG ........................................................................................................................ 4
1.4.1
1.5
2
Command line options ....................................................................................................... 4
USER INTERFACE ..................................................................................................................... 6
1.5.1
Multiple views .................................................................................................................... 6
1.5.2
View manipulation ............................................................................................................. 6
1.5.3
Menu commands ................................................................................................................ 7
THE L+C MODELING LANGUAGE ......................................................................................... 9
2.1
L-SYSTEM FILE ........................................................................................................................ 9
2.1.1
Mandatory elements........................................................................................................... 9
2.1.2
Include files........................................................................................................................ 9
2.2
L+C LANGUAGE CONSTRUCTS ............................................................................................... 10
2.2.1
Derivation length ............................................................................................................. 10
2.2.2
Module declarations ........................................................................................................ 11
2.2.3
Axiom ............................................................................................................................... 12
2.2.4
ignore and consider ................................................................................................ 12
2.2.5
Control statements ........................................................................................................... 12
2.2.6
Productions...................................................................................................................... 13
2.2.7
Interpretation rules .......................................................................................................... 18
2.2.8
Production blocks ............................................................................................................ 19
2.2.9
L-systems extensions ........................................................................................................ 20
2.3
PREDEFINED FUNCTIONS........................................................................................................ 22
2.3.1
Vector structures.............................................................................................................. 22
2.3.2
Controlling L-system derivation ...................................................................................... 23
2.3.3
Manipulating views.......................................................................................................... 24
2.3.4
External access ................................................................................................................ 25
2.3.5
Curves and functions........................................................................................................ 25
2.3.6
Dynamic surfaces............................................................................................................. 26
2.3.7
Other predefined functions .............................................................................................. 29
2.4
PREDEFINED MODULES .......................................................................................................... 29
2