Strawberry geometry function
Geometric rule of production for strawberry MTG Vizualisation
- openalea.strawberry.geometry.bud(g, vid, turtle)[source]
Generates the buds in the turtle
- Parameters
g (MTG) – MTG
vid (int) – vid selected
turtle (Turtle) – Turtle
- openalea.strawberry.geometry.bud2d(g, vid, turtle)[source]
Return a bud shape
- Returns
the bud shape (a sphere)
- Return type
Sphere
- openalea.strawberry.geometry.colors_turtle(turtle)[source]
Set the color pallette to the turtle
- Parameters
turtle (Turtle) – Turtle
- Returns
return the turtle with initiated colors
- Return type
Turtle
- openalea.strawberry.geometry.get_symbols()[source]
Get the possible symbols to read the mtg
- Returns
a dictionnary which associate each geometrical fonction phytomer, inflorescence, TerminalBud, phytomer_primordia, inflo_primordia,stolon to F, HT, bt, ht, s
- Return type
- openalea.strawberry.geometry.get_symbols2d()[source]
Get the possible symbols to read the mtg
- Returns
a dictionnary which associate each geometrical fonction phytomer, inflorescence, TerminalBud, phytomer_primordia, inflo_primordia,stolon to F, HT, bt, ht, s
- Return type
- openalea.strawberry.geometry.inflo_primordia(g, vid, turtle)[source]
- Generates inflorescence primordia
ht: Primordia inflorescence
- openalea.strawberry.geometry.inflo_primordia2d(g, vid, turtle)[source]
- Generates inflorescence primordia
ht: Primordia inflorescence
- openalea.strawberry.geometry.inflorescence(g, vid, turtle)[source]
Generates the inflorescences
HT: inflorescence Box (may change) for each HT in mtg return an object compose of cylender and a blue box. Shape of the box is dependent of the number of total flower and number of open flowers.
- openalea.strawberry.geometry.phytomer(g, vid, turtle)[source]
- Generates a phytomer
F: Petiol + 3 lobes. cylinder + 3 ellipse/surface
- openalea.strawberry.geometry.phytomer2d(g, vid, turtle)[source]
- Generates a phytomer
F: Petiol + 3 lobes. cylinder + 3 ellipse/surface
- openalea.strawberry.geometry.phytomer_primordia(g, vid, turtle)[source]
- Generates the phytomer primordia
f: Petiol + 3 lobes. cylinder + 3 ellipse/surface
- openalea.strawberry.geometry.stolon(g, vid, turtle)[source]
Generates the stolons in the turtle
- Parameters
g (MTG) – MTG
vid (int) – vid selected
turtle (Turtle) – Turtle
- openalea.strawberry.geometry.stolon_curve(scale=1.0)[source]
Generates the stolon as curves
- Parameters
scale (float, optional) – size of the stolon, defaults to 1.
- Returns
return a curve to for symbolise a stolon
- Return type
plf.BezierCurve2D
- openalea.strawberry.geometry.trifoliate(g, vid, turtle)[source]
- Generates the trifoliate in the turtle
F: Petiol + 3 lobes. cylinder + 3 ellipse/surface
- Parameters
g (MTG) – MTG
vid (int) – vid selected
turtle (Turtle) – Turtle
- openalea.strawberry.geometry.trileaflet(length=1.0, width=1.0)[source]
Generates a trileaflet shape