PolyhedronState | R Documentation |
This abstract class provide the basis from which every polyhedron state class derivate.
source
polyhedron definition source
file.id
polyhedron file id
errors
Errors string
logger
class logger
new()
Create a polyhedronState object
PolyhedronState$new(source, file.id)
source
the source file
file.id
the file id
A new PolyhedronState object. '@description Adds an error to the error string and log it as info
addError()
PolyhedronState$addError(current.error)
current.error
the error to add
scrape()
Scrapes the polyhedra folder files
PolyhedronState$scrape()
getName()
Get Polyhedron name
PolyhedronState$getName()
string with polyhedron name
getSolid()
Returns the object corresponding to the solid
PolyhedronState$getSolid()
checkEdgesConsistency()
Checks edge consistency
PolyhedronState$checkEdgesConsistency()
applyTransformationMatrix()
Apply transformation matrix to polyhedron
PolyhedronState$applyTransformationMatrix(transformation.matrix)
transformation.matrix
the transformation matrix to apply to the polyhedron
buildRGL()
Creates a 'rgl' representation of the object
PolyhedronState$buildRGL(transformation.matrix)
transformation.matrix
the transformation matrix to apply to the polyhedron
exportToXML()
Gets an XML representation out of the polyhedron object
PolyhedronState$exportToXML()
clone()
The objects of this class are cloneable with this method.
PolyhedronState$clone(deep = FALSE)
deep
Whether to make a deep clone.
ken4rab
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.