Polyhedron state inside database.
PolyhedronStateDefined.class
R6Class
object.
source
polyhedron definition source
file.id
polyhedron filename in original source (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)
transformation.matrix
transformation matrix for calculations and visualizing polyhedron Private
mass.center
polyhedron mass center
edges.cont
Edges count
edges.check
Edges check degree property
vertices.id.3d
vertices definition for solid 3d object
vertices.centered
centered vertices for applying transformation matrices
vertices.rgl
Polyhedron triangulated vertices list for RGL
solid.triangulated
Polyhedron solid (triangulated) for RGL visualization
initialize(source, file.id, 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, vertices)
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(size, vertices.id.3d =
private$vertices.id.3d)
Normalizes the volume of the object to a tetrahedron bounding box
applyTransformationMatrix(transformation.matrix)
Apply transformation matrix to polyhedron
getTransformedVertices(vertices,
transformation.matrix)
Returns the vertices adjusted with transformation matrix
buildRGL(transformation.matrix)
Builds the RGL
model
exportToXML()
Gets an XML representation out of the polyhedron object
serialize()
Gets a list representation out of the polyhedron object
expect_equal()
Function which test equal values for all fields using serialize function