This abstract class provide the basis from which every polyhedron state class derivate.
Public fields
source
polyhedron definition source
file.id
polyhedron file id
errors
Errors string
logger
class logger
Methods
Method new()
Create a polyhedronState object
Arguments
source
the source file
file.id
the file id
Returns
A new PolyhedronState object.
'@description
Adds an error to the error string and log it as info
Method addError()
Usage
PolyhedronState$addError(current.error)
Arguments
current.error
the error to add
Method scrape()
Scrapes the polyhedra folder files
Method getName()
Get Polyhedron name
Usage
PolyhedronState$getName()
Returns
string with polyhedron name
Method getSolid()
Returns the object corresponding to the solid
Usage
PolyhedronState$getSolid()
Method checkEdgesConsistency()
Checks edge consistency
Usage
PolyhedronState$checkEdgesConsistency()
Apply transformation matrix to polyhedron
Usage
PolyhedronState$applyTransformationMatrix(transformation.matrix)
Arguments
transformation.matrix
the transformation matrix to apply to the polyhedron
Method buildRGL()
Creates a 'rgl' representation of the object
Usage
PolyhedronState$buildRGL(transformation.matrix)
Arguments
transformation.matrix
the transformation matrix to apply to the polyhedron
Method exportToXML()
Gets an XML representation out of the polyhedron object
Usage
PolyhedronState$exportToXML()
Method clone()
The objects of this class are cloneable with this method.
Usage
PolyhedronState$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.