Home | Download/Install | Documentation | Packages | Screenshots | News | Forum/Mailing-lists | Contact | GForge

User Documentation

Turtle Symbols

Here is a recap of the predefined symbol used in L-Py with their turtle interpretation:

Name Alias Interpretation
[ SB Push the state in the stack.
] EB Pop last state from turtle stack and make it the its current state.
F Move forward and draw. Params: length , topradius.
f Move forward and without draw. Params: length.
X MouseIns Module inserted just before module selected by user in visualisation.
% Cut Cut the remainder of the current branch in the string.
* Used to specify Null production (produce *) or matching of any module in rules predecessor.
?P GetPos Request position vector information. Params : x,y,z or v (optional, default=Vector3, filled by Turtle).
?H GetHead Request heading vector information. Params : x,y,z or v (optional, default=Vector3, filled by Turtle).
?U GetUp Request up vector information. Params : x,y,z or v (optional, default=Vector3, filled by Turtle).
?L GetLeft Request left vector information. Params : x,y,z or v (optional, default=Vector3, filled by Turtle).
?R GetRight Request right vector information. Params : x,y,z or v (optional, default=Vector3, filled by Turtle).
@Gc StartGC Start a new generalized cylinder.
@Ge EndGC Pop generalized cylinder from the stack and render it.
{ BP Start a new polygon.
} EP Pop a polygon from the stack and render it.
@M MoveTo Set the turtle position. Params : x, y, z (optionals, default = 0).
@R SetHead Set the turtle Heading and Up vector. Params: hx, hy, hz, ux, uy, uz (optionals, default=0,0,1, 1,0,0).
+ Left Turn left around Up vector. Params : angle (optional, in degrees).
- Right Turn right around Up vector. Params : angle (optional, in degrees).
^ Up Pitch up around Left vector. Params : angle (optional, in degrees).
& Down Pitch down around Left vector. Params : angle (optional, in degrees).
/ RollL Roll left around Heading vector. Params : angle (optional, in degrees).
\ RollR Roll right around Heading vector. Params : angle (optional, in degrees).
| TurnAround Turn around 180deg the Up vector.
@v RollToVert Roll to Vertical : Roll the turtle around the H axis so that H and U lie in a common vertical plane with U closest to up
@O Sphere Draw a sphere. Params : radius (optional, should be positive, default = line width).
@o Circle Draw a circle. Params : radius (optional, should be positive, default = line width).
@L Label Draw a text label.
_ IncWidth Increase the current line width or set it if a parameter is given. Params : line width (optional).
! DecWidth Decrease the current line width or set it if a parameter is given. Params : line width (optional).
SetWidth Set current line width. Params : line width.
; IncColor Increase the current material index or set it if a parameter is given. Params : color index (optional, positive int).
, DecColor Decrease the current material index or set it if a parameter is given. Params : color index (optional, positive int).
SetColor Set the current material index. Params : color index (positive int).
@Dd DivScale Divides the current turtle scale by a scale factor, Params : scale factor (optional, default = 1.0).
@Di MultScale Multiplies the current turtle scale by a scale factor, Params : scale factor (optional, default = 1.0).
@D SetScale Set the current turtle scale, Params : scale (optional, default = 1.0).
surface Draw the predefined surface at the turtle's current location and orientation. Params : surface name (by default, 'l' exists), scale factor (optional, default= 1.0, should be positive).
~ Draw the predefined surface at the turtle's current location and orientation. Params : surface name (by default, 'l' exists), scale factor (optional, default= 1.0, should be positive).
@g PglShape Draw a geometry at the turtle's current location and orientation. Params : a geometric model, a scale factor (optional, should be positive).
 
packages/vplants/lpy/doc/symbols.txt · Last modified: 2008/08/14 12:05 by user   Back to top
INRIA   INRA     CIRAD     AGROPOLIS IBC
INRIA GForge RSS feed Valid XHTML 1.0 Valid CSS Driven by DokuWiki