Learn R Programming

tree3d (version 0.1.2)

write_tree_to_obj: 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")

Value

None

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.

Examples

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

Run the code above in your browser using DataLab