plantgl API#

Convert a PlantGL scene to k3d.

3D visualisation widgets in Jupyter.

openalea.widgets.plantgl.MTG(g, property_name, plot=None)[source]#

Return a plot from an MTG object

openalea.widgets.plantgl.PlantGL(pglobject, plot=None, group_by_color=True, property=None, side='front')[source]#

Return a k3d plot from PlantGL shape, geometry and scene objects

openalea.widgets.plantgl.curve2mesh(crv, property=None)[source]#

Return a mesh from a curve

openalea.widgets.plantgl.group_meshes_by_color(scene, side='front')[source]#

Create one mesh by objects sharing the same color.

openalea.widgets.plantgl.mtg2mesh(g, property_name)[source]#

Return a mesh from an MTG object depending on a specific property

openalea.widgets.plantgl.rgb2hex(r, g, b)[source]#

Convert an RGB value to an hex value

openalea.widgets.plantgl.scene2mesh(scene, property=None, side='front')[source]#

Return a mesh from a scene

openalea.widgets.plantgl.tomesh(obj, d=None, side='front')[source]#

Return a mesh from a geometry object or scene

Download the source file ../../src/openalea/widgets/plantgl.py.