View source: R/write_tree_to_obj.R
write_tree_to_obj | R Documentation |
Export the tree mesh to an OBJ file for use in other 3D programs
write_tree_to_obj(tree_mesh, filename, materials = TRUE, fileext = ".obj")
tree_mesh |
Tree mesh. |
filename |
Filename for the OBJ file. If the file extension is not included, it will automatically be added. |
materials |
Default |
fileext |
Default |
None
#Save tree mesh to file
tempfileloc = tempfile()
write_tree_to_obj(tree_mesh(), filename = tempfileloc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.