Polyhedron state inside database.
PolyhedronStateDefined.class
R6Class
object.
source
polyhedron definition source
number
polyhedron arbitrary numeration (netlib|dmccooey)
name
polyhedron name (netlib|dmccooey)
symbol
the eqn(1) input for two symbols separated by a tab; the Johnson symbol, and the Schlafli symbol (netlib)
dual
the name of the dual polyhedron optionally followed by a horizontal tab and the number of the dual (netlib)
sfaces
polyhedron solid face list (netlib)
svertices
polyhedron solid vertice list (netlib)
net
polyhedron 2D net model with vertices defined for a planar representation (netlib)
hinges
Polyhedron hinge list (netlib)
solid
polyhedron list of edges which generate a solid (netlib|dmccooey)
dih
Dih attribute (netlib)
vertices
Polyhedron vertices list (netlib|dmccooey)
vertices.rgl
Polyhedron triangulated vertices list for RGL
solid.triangulated
Polyhedron solid (triangulated) for RGL visualization
mass.center
polyhedron mass center
initialize(source, number,name, symbol, dual,
sfaces, svertices, net, solid, hinges, dih, vertices)
Initializes the object, taking defaults.
scrape()
Do nothing as the object is defined
getNet()
Gets the 2d net model
getSolid()
Gets the solid representation
triangulate(force = FALSE)
Generates the triangular faces model for generating tmesh
getBoundingBox(vertices.3d)
Gets the bounding box of the object
calculateMassCenter(size = 1, vertices.3d)
Calculates the object's Mass Center for parameter vertices
getNormalizedSize()
Normalizes the volume of the object to a tetrahedron bounding box
getPositionedVertices(size,origin)
Returns the vertices adjusted to size and origin parameters
buildRGL(size = 1, origin = c(0, 0, 0), normalize.size = TRUE)
Builds the RGL model, taking the object's size, the origin
exportToXML()
Gets an XML representation out of the polyhedron object