openalea / plantgl

An open-source graphic toolkit for the creation, simulation and analysis of 3D virtual plants.
Other
59 stars 23 forks source link

[Question] Which algorithm is used to generate trunk/stem geometry from the L system skeleton? #56

Closed Makogan closed 1 year ago

Makogan commented 1 year ago

I am very curious as to how PlantGL manages to create trees and other plants. How L-systems generate topological skeletons is very straightforward, but going from a topological skeleton to a full mesh doesn't seem too obvious.

fredboudon commented 1 year ago

We used sweep surfaces (names GeneralizedCylinder in plantgl) to create the mesh from the skeleton and using a section profile. The PglTurtle object in particular is able to create such object.

Makogan commented 1 year ago

Thank you for the answer.