| saveOBJ | R Documentation |
The function will take the given trigrid class object and write it's vertex, edge and face information as a .obj file
saveOBJ(x, ...)
## S4 method for signature 'trigrid'
saveOBJ(x, file, scale = TRUE)
## S4 method for signature 'hexagrid'
saveOBJ(x, file, scale = TRUE)
x |
A |
... |
Arguments of class-specific methods. |
file |
A |
scale |
A |
Note that hexagrid class objects are exported in their triangulated form (subfaces). The order of faces for hexagrids is not the natural (UI) order but the internal order of subfaces.
The function has no return value.
gr <- hexagrid(spacing=4)
# example written into temporary directroy
td <- tempdir()
td
# actual writing
saveOBJ(gr, file=file.path(td, "hexagrid.obj"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.