polyhedronToXML: polyhedronToXML()

Description Usage Arguments Value Examples

View source: R/serialization-lib.R

Description

Gets an XML representation out of the polyhedron object

Usage

1
polyhedronToXML(polyhedron.state.defined, is.transformed.vertices = TRUE)

Arguments

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

Value

an XML document, ready to be converted to String with XML::saveXML()

Examples

1
2
3
#get the representation of a cube (netlib library)
library(Rpolyhedra)
XML::saveXML(polyhedronToXML(getPolyhedron("netlib", "cube")$state))

Rpolyhedra documentation built on Jan. 4, 2019, 5:03 p.m.