Polyhedron State Netlib Scraper
Polyhedron State Netlib Scraper
Scrapes polyhedra from a PHD file format.
Rpolyhedra::PolyhedronState -> PolyhedronStateNetlibScraper
netlib.p3.linesThe path to the PHD files
labels.rowsLabels - row of appearance
labels.mapLabels - Map of content
errorsthe errors found
new()Initializes the object, taking the file.id and PDH file as parameters
PolyhedronStateNetlibScraper.class$new(file.id, netlib.p3.lines)
file.idthe file id
netlib.p3.linesthe lines to add
A new PolyhedronStateNetlibScraper object.
extractRowsFromLabel()Extracts data from the label, taking the label number and the expected label as parameters
PolyhedronStateNetlibScraper.class$extractRowsFromLabel( label.number, expected.label )
label.numberthe label number
expected.labelthe expected label
getLabels()get Labels from current netlib file description
PolyhedronStateNetlibScraper.class$getLabels()
a list containing labels from netlib file description
scrapeNet()scrape Net Model from netlib format
PolyhedronStateNetlibScraper.class$scrapeNet(net.txt, offset = 0)
net.txta vector containing net model in netlib format
offsetin numbering vertices
a list containing a net model
extractCFOutBrackets()Remove brackets for current field content
PolyhedronStateNetlibScraper.class$extractCFOutBrackets(x)
xa string containing brackets
value
scrapeVertices()scrape vertices described in netlib format
PolyhedronStateNetlibScraper.class$scrapeVertices(vertices.txt)
vertices.txtvector containing netlib format vertices
data.frame containing netlib vertices
setupLabelsOrder()setupLabelsOrder
PolyhedronStateNetlibScraper.class$setupLabelsOrder()
vertices.txtvector containing netlib format vertices
data.frame containing netlib vertices
getDataFromLabel()Get data from label specified as parameter
PolyhedronStateNetlibScraper.class$getDataFromLabel(label)
labelthe label to get data from
value
getName()get Polyhedron name
PolyhedronStateNetlibScraper.class$getName()
string with polyhedron name
scrape()scrape Netlib polyhedron definition
PolyhedronStateNetlibScraper.class$scrape()
A new PolyhedronStateDefined object.
applyTransformationMatrix()Apply transformation matrix to polyhedron
PolyhedronStateNetlibScraper.class$applyTransformationMatrix( transformation.matrix )
transformation.matrixthe transformation matrix to apply to the polyhedron
buildRGL()Creates a 'rgl' representation of the object
PolyhedronStateNetlibScraper.class$buildRGL(transformation.matrix)
transformation.matrixthe transformation matrix to apply to the polyhedron
exportToXML()serializes object in XML
PolyhedronStateNetlibScraper.class$exportToXML()
clone()The objects of this class are cloneable with this method.
PolyhedronStateNetlibScraper.class$clone(deep = FALSE)
deepWhether to make a deep clone.