| Polyhedron {Rpolyhedra} | R Documentation |
Polyhedron
Description
Polyhedron container class, which is accessible by the final users upon call
Public fields
file.idPolyhedron file.id
statePolyhedron state
loggerclass logger
Methods
Public methods
Method new()
Create a polyhedronState object
Usage
Polyhedron$new(file.id, state = NULL)
Arguments
file.idthe file id
statepolyhedron state object
Returns
A new Polyhedron object.
Method scrapeNetlib()
scrape Netlib polyhedron definition
Usage
Polyhedron$scrapeNetlib(netlib.p3.lines)
Arguments
netlib.p3.linesvector with netlib definition lines
Returns
A new PolyhedronStateDefined object.
Method scrapeDmccooey()
scrape Dmccooey polyhedron definition
Usage
Polyhedron$scrapeDmccooey(polyhedra.dmccooey.lines)
Arguments
polyhedra.dmccooey.linesvector with Dmccooey definition lines
Returns
A new PolyhedronStateDefined object.
Method deserialize()
deserialize a polyhedron state definition
Usage
Polyhedron$deserialize(serialized.polyhedron)
Arguments
serialized.polyhedrona serialized version of a polyhedron state
Returns
A new PolyhedronStateDefined object.
Method getName()
get Polyhedron name
Usage
Polyhedron$getName()
Returns
string with polyhedron name
Method getState()
Gets polyhedron state
Usage
Polyhedron$getState()
Returns
A new PolyhedronState object.
Method getSolid()
Gets a solid definition
Usage
Polyhedron$getSolid()
Returns
A list of vertex vectors composing polyhedron faces.
Method isChecked()
checks Edges consistency
Usage
Polyhedron$isChecked()
Returns
A boolean value
Method getRGLModel()
Return an 'rgl' model with an optional transformation described by transformation.matrix parameter
Usage
Polyhedron$getRGLModel(transformation.matrix = NULL)
Arguments
transformation.matrixtransformation matrix parameter
Returns
An tmesh3d object
Method exportToXML()
exports an XML definition of current polyhedron
Usage
Polyhedron$exportToXML()
Returns
A character object with the XML definition
Method getErrors()
returns the errors found when processing current polyhedron
Usage
Polyhedron$getErrors()
Returns
a data.frame with polyhedron errors
Method checkProperties()
check properties of current polyhedron
Usage
Polyhedron$checkProperties(expected.vertices, expected.faces)
Arguments
expected.verticesexpected vertices number
expected.facesexpected faces number
Returns
Unmodified polyhedron object
Method clone()
The objects of this class are cloneable with this method.
Usage
Polyhedron$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
Author(s)
ken4rab