L-systems II

From GenerativeArt

(Difference between revisions)
Jump to: navigation, search
(New page: __FORCETOC__ == A reminder about "The Algorithmic Beauty of Plants" == Essentially all of the information presented here, including illustrations and diagrams, are derived from the classi...)
Models intended for 3D modeling add turtle graphic control symbols to extend heading operations to 3D space. All other control symbols remain the same.
Models intended for 3D modeling add turtle graphic control symbols to extend heading operations to 3D space. All other control symbols remain the same.
 +
 +
 +
Other, and satisfy the equation H x L = U.
 +
Rotations of the turtle are then expressed by the equation
 +
 +
  [H' L' U']=[H L U] R
 +
 +
where R is a 3 x 3 rotation matrix
 +
Specifically, rotations by angle α about
 +
vectors U, L and H are represented by the matrices:
 +
 +
              | cos α  sin α  0 |
 +
R<sub>U</sub>(&#945;)  =    |-sin &#945;  cos &#945;  0 |
 +
              |  0      0    1 |
 +
 +
 
 +
              | cos &#945; -sin &#945;  0 |
 +
R<sub>L</sub>(&#945;)  =    |  0      0    1 |
 +
              | sin &#945;  0  cos &#945; |
 +
 +
 +
              | 1      0      0 |
 +
R<sub>H</sub>(&#945;)  =    | 0  cos &#945; -sin &#945; |
 +
              | 0  sin &#945;  cos &#945; |
 +
 +
 +
The following symbols control turtle orientation in space
 +
+ Turn left by angle &#948;, using rotation matrix R<sub>U</sub> (&#948;).
 +
- Turn right by angle &#948;, using rotation matrix R<sub>U</sub>(-&#948;).
 +
& Pitch down by angle &#948;, using rotation matrix R<sub>L</sub>(&#948;).
 +
^ Pitch up by angle &#948;, using rotation matrix R<sub>L</sub>(-&#948;).
 +
\ Roll left by angle &#948;, using rotation matrix R<sub>H</sub>(&#948;).
 +
/ Roll right by angle &#948;, using rotation matrix R<sub>H</sub>(-&#948;).
 +
| Turn around, using rotation matrix RU(180°).
 +
 +
 +
 +
{{SingleImage|imageWidthPlusTen=510|imageURL=http://www-viz.tamu.edu/courses/viza658/wiki/lsys2/01.jpg|caption=}}

Revision as of 20:56, 1 November 2009

Personal tools