Skip to contents

Imports leaves created by the QSM foliage and needles naive insertion (QSM-FaNNI) algorithm. The leaves are stored as a triangular mesh, compatible with both rTwig and RGL functions.

Usage

import_leaves(filename, simplify = FALSE)

Arguments

filename

a QSM-FaNNI .obj file

simplify

simplify the mesh by removing duplicate vertices. This can reduce memory usage at the cost of import speed. Defaults to FALSE.

Value

Returns an RGL mesh3d object

References

FaNNIrTwig

Examples

if (FALSE) { # \dontrun{

## Import FaNNI leaves from the standard obj format
file <- "path_to_leaves.obj"
qsm <- import_treeqsm(file)

## Import FaNNI leaves from the extended obj format
# ADD THIS FUNCTIONALITY!!!
file <- "path_to_leaves.obj"
qsm <- import_treeqsm(file)
} # }