obj.create | R Documentation |
The obj.create
function creates an espadon object with
the essential properties it must have.
obj.create(class = c("", "volume", "struct", "mesh"), alias = "")
class |
Character string, representing an espadon class from among "volume", "struct" or "mesh". |
alias |
Character string, |
Returns a espadon class object (see espadon.class for class definitions).
vol.create, struct.create.
# Creation of an espadon mesh of a cube
M <- obj.create (class = "mesh")
M$mesh <- Rvcg::vcgIsotropicRemeshing (Rvcg::vcgBox(),0.5)
M$nb.faces <- ncol (M$mesh$it)
rgl::wire3d (M$mesh)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.