powered by
Generate a specific 3D representation of a tree crown, given the parameters for the type of tree crown, the desired level of detail or resolution, and whether or not to offset the crown to align it with the trunk at the origin.
get_crown_file( tree = "oval", resolution = "medium", offset_origin = TRUE, solid = FALSE )
Filename of OBJ file (as .txt file)
.txt
Default "rounded". Crown type. Full list of options: "columnar" "pyramidal1" "pyramidal2" "oval" "palm" "rounded" "spreading1" "spreading2" "vase" "weeping"
"rounded"
"columnar"
"pyramidal1"
"pyramidal2"
"oval"
"palm"
"spreading1"
"spreading2"
"vase"
"weeping"
Default "medium". Level of detail of the tree mesh. All options: "low" "medium" "high
"medium"
"low"
"high
Default TRUE. Whether to offset the crown so that the bottom of the tree will be exactly at the origin, aligning it with the trunk.
TRUE
Default FALSE. Whether the crown should be a solid mesh (TRUE), or a collection of flat 2D planes (FALSE).
FALSE
#Get a crown OBJ get_crown_file(tree = "rounded", resolution = "high")
Run the code above in your browser using DataLab