View source: R/serialization-lib.R
polyhedronToXML | R Documentation |
Gets an XML representation out of the polyhedron object
polyhedronToXML(polyhedron.state.defined, is.transformed.vertices = TRUE)
polyhedron.state.defined |
the polyhedron to get a representation from |
is.transformed.vertices |
flag which states if vertices are in original position or transformationMatrix applied |
an XML document, ready to be converted to String with XML::saveXML()
# get the representation of a cube (netlib library)
XML::saveXML(polyhedronToXML(getPolyhedron("netlib", "cube")$state))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.