Polyhedron state inside database.
PolyhedronStateDefined.classR6Class object.
sourcepolyhedron definition source
file.idpolyhedron filename in original source (netlib|dmccooey)
namepolyhedron name (netlib|dmccooey)
symbolthe eqn(1) input for two symbols separated by a tab; the Johnson symbol, and the Schlafli symbol (netlib)
dualthe name of the dual polyhedron optionally followed by a horizontal tab and the number of the dual (netlib)
sfacespolyhedron solid face list (netlib)
sverticespolyhedron solid vertice list (netlib)
netpolyhedron 2D net model with vertices defined for a planar representation (netlib)
hingesPolyhedron hinge list (netlib)
solidpolyhedron list of edges which generate a solid (netlib|dmccooey)
dihDih attribute (netlib)
verticesPolyhedron vertices list (netlib|dmccooey)
transformation.matrixtransformation matrix for calculations and visualizing polyhedron Private
mass.centerpolyhedron mass center
edges.contEdges count
edges.checkEdges check degree property
vertices.id.3dvertices definition for solid 3d object
vertices.centeredcentered vertices for applying transformation matrices
vertices.rglPolyhedron triangulated vertices list for RGL
solid.triangulatedPolyhedron 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