write_tree_to_obj: Write Tree to OBJ

View source: R/write_tree_to_obj.R

write_tree_to_objR Documentation

Write Tree to OBJ

Description

Export the tree mesh to an OBJ file for use in other 3D programs

Usage

write_tree_to_obj(tree_mesh, filename, materials = TRUE, fileext = ".obj")

Arguments

tree_mesh

Tree mesh.

filename

Filename for the OBJ file. If the file extension is not included, it will automatically be added.

materials

Default TRUE. Whether to also write the material (MTL) file.

fileext

Default ".obj". File extension to be added if not present.

Value

None

Examples

#Save tree mesh to file
tempfileloc = tempfile()
write_tree_to_obj(tree_mesh(), filename = tempfileloc)

tree3d documentation built on July 9, 2023, 5:18 p.m.