| PolyhedronStateDefined | R Documentation |
Polyhedron State scraped and defined
Rpolyhedra::PolyhedronState -> PolyhedronStateDefined
file.idpolyhedron filename in original
sourcepolyhedron definition 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 vertices list (netlib)
verticesPolyhedron vertices list (netlib|dmccooey)
vertices.centeredcentered vertices for applying transformation matrices
netpolyhedron 2D net model with vertices defined for a planar representation (netlib)
solidpolyhedron list of edges which generate a solid (netlib|dmccooey)
hingesPolyhedron hinge list (netlib)
dihDih attribute (netlib)
edgespolyhedron edges (netlib|dmccooey)
transformation.matrixtransformation matrix for calculations and visualizing polyhedron
new()object initialization routine
PolyhedronStateDefined$new( source, file.id, name, vertices, solid, net = NULL, symbol = "", dual = NULL, sfaces = NULL, svertices = NULL, hinges = NULL, dih = NULL, normalize.size = TRUE )
sourcethe library to use
file.ididentifier of the definition file.
namethe polyhedron name
verticesthe vertices
solidthe solid object
netthe net
symbolthe symbol
dualwhether it is dual or not
sfacesthe solid faces
sverticesthe solid vertices
hingesthe hinges
dihthe dih
normalize.sizewhether it has to normalize the size or not
A new PolyhedronStateDefined object.
scrape()scrape polyhedron. As the state is defined this functions do nothing
PolyhedronStateDefined$scrape()
current object
saveToJson()saves the state to a JSON file
PolyhedronStateDefined$saveToJson(pretty = FALSE)
prettywhether json output is pretty or not
a json object
getName()get Polyhedron name
PolyhedronStateDefined$getName()
string with polyhedron name
getSymbol()get Polyhedron symbol
PolyhedronStateDefined$getSymbol()
string with polyhedron symbol
adjustVertices()adjust polyhedron Vertices
PolyhedronStateDefined$adjustVertices(normalize.size = TRUE)
normalize.sizewhether it has to normalize the size or not
modified PolyhedronStateDefined object.
getVertices()Get the polyhedron state
PolyhedronStateDefined$getVertices(solid = FALSE)
solidtoggles the production of solid vertices.
getNet()Gets the net property
PolyhedronStateDefined$getNet()
getSolid()Gets the solid property
PolyhedronStateDefined$getSolid()
inferEdges()Infer edges
PolyhedronStateDefined$inferEdges(force.recalculation = FALSE)
force.recalculationforces the recalculation of the edges
checkEdgesConsistency()Checks edges consistency
PolyhedronStateDefined$checkEdgesConsistency()
triangulate()Triangulates the polyhedron
PolyhedronStateDefined$triangulate(force = FALSE)
forceforces the triangulation.
getConvHull()Gets the convex hull
PolyhedronStateDefined$getConvHull( transformation.matrix = self$transformation.matrix, vertices.id.3d = private$vertices.id.3d )
transformation.matrixthe transformation matrix
vertices.id.3dthe vertices ids
the convex hull
calculateMassCenter()Calculates the center of mass.
PolyhedronStateDefined$calculateMassCenter( vertices.id.3d = private$vertices.id.3d, applyTransformation = TRUE )
vertices.id.3dthe vertices ids
applyTransformationdoes it need to apply transformations?
getNormalizedSize()Gets the normalized size
PolyhedronStateDefined$getNormalizedSize(size)
sizethe object's size
getTransformedVertices()Gets the transformed vertices
PolyhedronStateDefined$getTransformedVertices( vertices = self$vertices.centered, transformation.matrix = self$transformation.matrix )
verticesinput vertices
transformation.matrixthe transformation matrix
resetTransformationMatrix()Resets the transformation matrix
PolyhedronStateDefined$resetTransformationMatrix()
applyTransformationMatrix()Apply transformation matrix to polyhedron
PolyhedronStateDefined$applyTransformationMatrix(transformation.matrix)
transformation.matrixthe transformation matrix to apply to the polyhedron
an applied transformation.matrix
buildRGL()Build 'rgl'
PolyhedronStateDefined$buildRGL(transformation.matrix = NULL)
transformation.matrixthe transformation matrix
exportToXML()Exports the object to XML format
PolyhedronStateDefined$exportToXML()
expectEqual()Determines if a polyhedron is equal to this one.
PolyhedronStateDefined$expectEqual(polyhedron)
polyhedronthe polyhedron to compare to.
serialize()Serialize the object.
PolyhedronStateDefined$serialize()
clone()The objects of this class are cloneable with this method.
PolyhedronStateDefined$clone(deep = FALSE)
deepWhether to make a deep clone.
ken4rab
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.