| PolyhedronStateDmccooeyScraper {Rpolyhedra} | R Documentation |
PolyhedronStateDmccooeyScraper
Description
Scrapes polyhedra from a dmccooey file format
Super class
Rpolyhedra::PolyhedronState -> PolyhedronStateDmccooeyScraper
Public fields
regexp.values.namesregexp for scraping values names
regexp.rnregexp for scraping real numbers
regexp.valuesregexp for scraping values
regexp.vertexregexp for scraping vertices
regexp.facesregexp for scraping faces
polyhedra.dmccooey.linesdmccooey polyhedra definition lines
labels.maplabels map where values are
valueslabels map where values are
verticesspecification
vertices.replaced3D values
facesdefinition
Methods
Public methods
Inherited methods
Method new()
Initialize Dmccooey scraper
Usage
PolyhedronStateDmccooeyScraper$new(file.id, polyhedra.dmccooey.lines)
Arguments
file.ididentifier of the definition file.
polyhedra.dmccooey.linesraw Dmccooey definition file lines
Returns
A new PolyhedronStateDmccooeyScraper object.
Method setupRegexp()
setupRegexp for Dmccooey definition
Usage
PolyhedronStateDmccooeyScraper$setupRegexp()
Returns
This PolyhedronStateDmccooeyScraper object with regexp defined.
Method scrapeValues()
scrape values from Dmccooey definition
Usage
PolyhedronStateDmccooeyScraper$scrapeValues(values.lines)
Arguments
values.linesvalues definitions in Dmccooey source
Returns
This PolyhedronStateDmccooeyScraper object with values defined.
Method scrapeVertices()
scrape polyhedron vertices from definition
Usage
PolyhedronStateDmccooeyScraper$scrapeVertices(vertices.lines)
Arguments
vertices.linesvertices definitions in Dmccooey source
Returns
This PolyhedronStateDmccooeyScraper object with faces defined.
Method scrapeFaces()
scrape polyhedron faces from definition
Usage
PolyhedronStateDmccooeyScraper$scrapeFaces(faces.lines)
Arguments
faces.linesface
Returns
This PolyhedronStateDmccooeyScraper object with faces defined.
Method scrape()
scrape Dmccooey polyhedron definition
Usage
PolyhedronStateDmccooeyScraper$scrape()
Returns
A new PolyhedronStateDefined object.
Method getName()
get Polyhedron name
Usage
PolyhedronStateDmccooeyScraper$getName()
Returns
string with polyhedron name
Method applyTransformationMatrix()
Apply transformation matrix to polyhedron
Usage
PolyhedronStateDmccooeyScraper$applyTransformationMatrix(transformation.matrix)
Arguments
transformation.matrixthe transformation matrix to apply to the polyhedron
Method buildRGL()
Creates a 'rgl' representation of the object
Usage
PolyhedronStateDmccooeyScraper$buildRGL(transformation.matrix)
Arguments
transformation.matrixthe transformation matrix to apply to the polyhedron
Method exportToXML()
serializes object in XML
Usage
PolyhedronStateDmccooeyScraper$exportToXML()
Method clone()
The objects of this class are cloneable with this method.
Usage
PolyhedronStateDmccooeyScraper$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
Author(s)
ken4rab