# QSM FaNNI: Generating leaf covers

QSM-FaNNI stands for Quantitative Structure Models - Foliage and Needles Naïve Insertion, and it is an algorithm and a Matlab implementation for generating leaf covers for structural tree models. Leaf shape, size, orientation and leaf area distribution on the tree structure is highly customizable. The resulting leaves are non-intersecting clones of the selected leaf basis geometry that are associated with a parenting geometric primitives of the structure model. The source-code of the Matlab implementation is freely available of the research group's GitHub repository.

The video showcases the results of the algorithm on three reconstructed oak tree models, as well as, some of the customization possibilities, namely the leaf area density distribution (LADD) and leaf basis geometry shapes. The first example LADD is featured on the corresponding research article.