| PolyhedronStateDefined {Rpolyhedra} | R Documentation |
PolyhedronStateDefined
Description
Polyhedron State scraped and defined
Super class
Rpolyhedra::PolyhedronState -> PolyhedronStateDefined
Public fields
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
Methods
Public methods
Inherited methods
Method new()
object initialization routine
Usage
PolyhedronStateDefined$new( source, file.id, name, vertices, solid, net = NULL, symbol = "", dual = NULL, sfaces = NULL, svertices = NULL, hinges = NULL, dih = NULL, normalize.size = TRUE )
Arguments
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
Returns
A new PolyhedronStateDefined object.
Method scrape()
scrape polyhedron. As the state is defined this functions do nothing
Usage
PolyhedronStateDefined$scrape()
Returns
current object
Method getName()
get Polyhedron name
Usage
PolyhedronStateDefined$getName()
Returns
string with polyhedron name
Method getSymbol()
get Polyhedron symbol
Usage
PolyhedronStateDefined$getSymbol()
Returns
string with polyhedron symbol
Method adjustVertices()
adjust polyhedron Vertices
Usage
PolyhedronStateDefined$adjustVertices(normalize.size = TRUE)
Arguments
normalize.sizewhether it has to normalize the size or not
Returns
modified PolyhedronStateDefined object.
Method getVertices()
Get the polyhedron state
Usage
PolyhedronStateDefined$getVertices(solid = FALSE)
Arguments
solidtoggles the production of solid vertices.
Method getNet()
Gets the net property
Usage
PolyhedronStateDefined$getNet()
Method getSolid()
Gets the solid property
Usage
PolyhedronStateDefined$getSolid()
Method inferEdges()
Infer edges
Usage
PolyhedronStateDefined$inferEdges(force.recalculation = FALSE)
Arguments
force.recalculationforces the recalculation of the edges
Method checkEdgesConsistency()
Checks edges consistency
Usage
PolyhedronStateDefined$checkEdgesConsistency()
Method triangulate()
Triangulates the polyhedron
Usage
PolyhedronStateDefined$triangulate(force = FALSE)
Arguments
forceforces the triangulation.
Method getConvHull()
Gets the convex hull
Usage
PolyhedronStateDefined$getConvHull( transformation.matrix = self$transformation.matrix, vertices.id.3d = private$vertices.id.3d )
Arguments
transformation.matrixthe transformation matrix
vertices.id.3dthe vertices ids
Returns
the convex hull
Method calculateMassCenter()
Calculates the center of mass.
Usage
PolyhedronStateDefined$calculateMassCenter( vertices.id.3d = private$vertices.id.3d, applyTransformation = TRUE )
Arguments
vertices.id.3dthe vertices ids
applyTransformationdoes it need to apply transformations?
Method getNormalizedSize()
Gets the normalized size
Usage
PolyhedronStateDefined$getNormalizedSize(size)
Arguments
sizethe object's size
Method getTransformedVertices()
Gets the transformed vertices
Usage
PolyhedronStateDefined$getTransformedVertices( vertices = self$vertices.centered, transformation.matrix = self$transformation.matrix )
Arguments
verticesinput vertices
transformation.matrixthe transformation matrix
Method resetTransformationMatrix()
Resets the transformation matrix
Usage
PolyhedronStateDefined$resetTransformationMatrix()
Method applyTransformationMatrix()
Apply transformation matrix to polyhedron
Usage
PolyhedronStateDefined$applyTransformationMatrix(transformation.matrix)
Arguments
transformation.matrixthe transformation matrix to apply to the polyhedron
Returns
an applied transformation.matrix
Method buildRGL()
Build 'rgl'
Usage
PolyhedronStateDefined$buildRGL(transformation.matrix = NULL)
Arguments
transformation.matrixthe transformation matrix
Method exportToXML()
Exports the object to XML format
Usage
PolyhedronStateDefined$exportToXML()
Method expectEqual()
Determines if a polyhedron is equal to this one.
Usage
PolyhedronStateDefined$expectEqual(polyhedron)
Arguments
polyhedronthe polyhedron to compare to.
Method serialize()
Serialize the object.
Usage
PolyhedronStateDefined$serialize()
Method clone()
The objects of this class are cloneable with this method.
Usage
PolyhedronStateDefined$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
Author(s)
ken4rab