Gets an XML representation out of the polyhedron object
polyhedronToXML(polyhedron.state.defined, is.transformed.vertices = TRUE)
the polyhedron to get a representation from
flag which states if vertices are in original position or transformationMatrix applied
an XML document, ready to be converted to String with XML::saveXML()
# NOT RUN { #get the representation of a cube (netlib library) library(Rpolyhedra) XML::saveXML(polyhedronToXML(getPolyhedron("netlib", "cube")$state)) # }
Run the code above in your browser using DataLab