4 LSystem3D is a experimental Lindenmayer System generator with 3D capabilities,
5 whose main goal is to generate all kinds of plants or whatever fractal
6 L-system structures the user desires. For now, LSystem3D is highly under
7 development and is considered alpha, that is, lots of things are missing and
8 it will probably not work 100% accurate.
15 Currently tested on Debian GNU/Linux (Sid) only, but should compile fine on
16 other platforms without bigger modifications.
18 A fast computer with HW accelerated 3D would be nice.
34 Left mouse button: Move model in z-plane
35 Middle mouse button: Zoom in/out
36 Right mouse button: Rotate around y-axis
42 Rules: The L-system rules
43 Angle: Turn/pitch/roll angle
44 Depth: Depth of recursion
45 Diameter: Initial diameter of segment
46 Factor: For each recursion level, multiply segment diameter with this value
47 Generate: Generate the L-system
52 F Walk forward, creating a segment
54 A(0.33) Probability factor 0.33 for rule A
62 | Turn around 180 degrees
64 ] Load state from stack
65 { Create a planar surface
66 } Close a planar surface
67 f One vertex in a planar surface, specified CCW
68 ! Decrement segment diameter
69 ' Increment current index to color table
70 , Decrement current index to color table
74 F(0.33)=[+FL]F/[-FL]F!