geometry API#

colzette module related turtle and visitor to build plant geometry

openalea.colzette.geometry.BrassicaVisitor(g, v, turtle, make_leafshape=None, ustride=9, vstride=2)[source]#

Visitor that can handle an MTG file with multiple Rapeseed plants This function is called by the scene3D() function when creating the 3D scene

Parameters:
  • g – (MTG) - In contains all the geometrical information needed by the visitor

  • v – (int) - the ID of the vertex being generated

  • turtle – turtle used to create the 3D space

  • ustride – (int) - number of triangles in u direction

  • vstride – (int) - number of triangles in v direction

openalea.colzette.geometry.CamelinaVisitor(g, v, turtle, ustride=9, vstride=2)[source]#

Visitor that can handle an MTG file with multiple plants This function is called by the scene3D() function when creating the 3D scene

g is an MTG tree. In contains all the geometrical information needed by the visitor v is the ID of the vertex being generated (int) turtle is the turtle used to create the 3D space

openalea.colzette.geometry.FababeanVisitor(g, v, turtle, ustride=9, vstride=2)[source]#

Visitor that can handle an MTG file with multiple Fababean plants This function is called by the scene3D() function when creating the 3D scene

Parameters:
  • g – (MTG) - In contains all the geometrical information needed by the visitor

  • v – (int) - the ID of the vertex being generated

  • turtle – turtle used to create the 3D space

  • ustride – (int) - number of triangles in u direction

  • vstride – (int) - number of triangles in v direction

openalea.colzette.geometry.LegumeVisitor(g, v, turtle, make_leaflet_shape=None, ustride=9, vstride=2)[source]#

Visitor that can handle an MTG file with multiple Fababean plants This function is called by the scene3D() function when creating the 3D scene

Parameters:
  • g – (MTG) - In contains all the geometrical information needed by the visitor

  • v – (int) - the ID of the vertex being generated

  • turtle – turtle used to create the 3D space

  • ustride – (int) - number of triangles in u direction

  • vstride – (int) - number of triangles in v direction

openalea.colzette.geometry.LentilVisitor(g, v, turtle, ustride=9, vstride=2)[source]#

Visitor that can handle an MTG file with multiple plants This function is called by the scene3D() function when creating the 3D scene

g is an MTG tree. In contains all the geometrical information needed by the visitor v is the ID of the vertex being generated (int) turtle is the turtle used to create the 3D space

openalea.colzette.geometry.RapeseedVisitor(g, v, turtle, ustride=9, vstride=2)[source]#

Visitor that can handle an MTG file with multiple Rapeseed plants This function is called by the scene3D() function when creating the 3D scene

Parameters:
  • g – (MTG) - In contains all the geometrical information needed by the visitor

  • v – (int) - the ID of the vertex being generated

  • turtle – turtle used to create the 3D space

  • ustride – (int) - number of triangles in u direction

  • vstride – (int) - number of triangles in v direction

openalea.colzette.geometry.make_leaflet_shape_fababean(u=9, v=2)[source]#
openalea.colzette.geometry.make_leaflet_shape_lentil(u=9, v=2)[source]#
openalea.colzette.geometry.make_leafshape_camelina(u=9, v=2)[source]#
openalea.colzette.geometry.make_leafshape_rapeseed(u=9, v=2)[source]#
openalea.colzette.geometry.make_leafshape_rapeseed_original(u=9, v=2)[source]#
openalea.colzette.geometry.multi_leaflets(make_leaflet_shape, nb_leaflets=5.0, leaf_surface=1.0, coeff_width=0.7, petiole_leaflet_length1=2.0, petiole_leaflet_length2=2.0, coeff_petiole_d=0.5, stem_d=0.035, ustride=9, vstride=2)[source]#
openalea.colzette.geometry.multi_leaflets_fababean(nb_leaflets=5.0, leaf_surface=1.0, coeff_width=0.7, petiole_leaflet_length1=2.0, petiole_leaflet_length2=2.0, coeff_petiole_d=0.5, stem_d=0.035, ustride=9, vstride=2)[source]#
openalea.colzette.geometry.multi_leaflets_lentil(nb_leaflets=5.0, leaf_surface=1.0, coeff_width=0.7, petiole_leaflet_length=2.0, coeff_petiole_d=0.5, stem_d=0.035, ustride=9, vstride=2)[source]#
openalea.colzette.geometry.phenotype_camelina(g, total_surface=200, dict_params_came={})[source]#
applies phenotypical attributes to an MTG based on parameters.

leaf_max : [float between 0 and 1] Expectation of the bell curve => Position of the biggest leaf along the stem. phyllot: [float, degrees] phyllotaxy angle ins_angle: [float, degrees] insertion angle of the petiole leaf_angle: [float, degrees] angle of the flat of the leaf total_surface: [int, cm2] surface to be shared following the bell proportion coeff_width: [float] Leaf Width / Leaf Length ratio (limb only) coeff_petiole: [float] Petiole Length / Leaf Length stem_d: [float, cm] stem diameter coeff_petiole_d : [float] petiole diameter / stem diameter ration

openalea.colzette.geometry.phenotype_fababean(g, total_surface: float = 300, dict_params_faba={})[source]#
applies phenotypical attributes to an MTG based on parameters.

leaf_max : [float between 0 and 1] Expectation of the bell curve => Position of the biggest leaf along the stem. phyllot: [float, degrees] phyllotaxy angle ins_angle: [float, degrees] insertion angle of the petiole leaf_angle: [float, degrees] angle of the flat of the leaf total_surface: [int, cm2] surface to be shared following the bell proportion coeff_width: [float] Leaf Width / Leaf Length ratio (limb only) coeff_petiole: [float] Petiole Length / Leaf Length stem_d: [float, cm] stem diameter coeff_petiole_d : [float] petiole diameter / stem diameter ration

openalea.colzette.geometry.phenotype_lentil(g, total_surface: float = 300, dict_params_lent={})[source]#
applies phenotypical attributes to an MTG based on parameters.

leaf_max : [float between 0 and 1] Expectation of the bell curve => Position of the biggest leaf along the stem. phyllot: [float, degrees] phyllotaxy angle ins_angle: [float, degrees] insertion angle of the petiole leaf_angle: [float, degrees] angle of the flat of the leaf total_surface: [int, cm2] surface to be shared following the bell proportion coeff_width: [float] Leaf Width / Leaf Length ratio (limb only) coeff_petiole: [float] Petiole Length / Leaf Length stem_d: [float, cm] stem diameter coeff_petiole_d : [float] petiole diameter / stem diameter ration

openalea.colzette.geometry.phenotype_rapeseed(g, total_surface=200, dict_params_rape={})[source]#
applies phenotypical attributes to an MTG based on parameters.

leaf_max : [float between 0 and 1] Expectation of the bell curve => Position of the biggest leaf along the stem. phyllot: [float, degrees] phyllotaxy angle ins_angle: [float, degrees] insertion angle of the petiole leaf_angle: [float, degrees] angle of the flat of the leaf total_surface: [int, cm2] surface to be shared following the bell proportion coeff_width: [float] Leaf Width / Leaf Length ratio (limb only) coeff_petiole: [float] Petiole Length / Leaf Length stem_d: [float, cm] stem diameter coeff_petiole_d : [float] petiole diameter / stem diameter ration

openalea.colzette.geometry.total_height_sigmoid(DJ, dict_params)[source]#
openalea.colzette.geometry.vegetative(DJ: int = 950, dict_params={}, coord=[(0, 0, 0)], species='Fababean')[source]#

Build a field with nrows(coord) plants that have n_nodes internodes

openalea.colzette.geometry.vegetative_fababean(DJ: int = 950, dict_params={}, coord=[(0, 0, 0)], species='Fababean')#

Build a field with nrows(coord) plants that have n_nodes internodes

openalea.colzette.geometry.vegetative_rapeseed(DJ: int = 950, dict_params={}, coord=[(0, 0, 0)], *, species='Rapeseed')#

Build a field with nrows(coord) plants that have n_nodes internodes

Download the source file ../../src/openalea/colzette/geometry.py.