Skip to contents

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)