plantgl API#
Convert a PlantGL scene to k3d.
3D visualisation widgets in Jupyter.
- 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.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.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.