Scrapes polyhedra from a PHD file format.
ken4rab
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$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$extractRowsFromLabel(label.number, expected.label)label.numberthe label number
expected.labelthe expected label
getLabels()get Labels from current netlib file description
PolyhedronStateNetlibScraper$getLabels()a list containing labels from netlib file description
scrapeNet()scrape Net Model from netlib format
PolyhedronStateNetlibScraper$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$extractCFOutBrackets(x)xa string containing brackets
value
scrapeVertices()scrape vertices described in netlib format
PolyhedronStateNetlibScraper$scrapeVertices(vertices.txt)vertices.txtvector containing netlib format vertices
data.frame containing netlib vertices
setupLabelsOrder()setupLabelsOrder
PolyhedronStateNetlibScraper$setupLabelsOrder()vertices.txtvector containing netlib format vertices
data.frame containing netlib vertices
getDataFromLabel()Get data from label specified as parameter
PolyhedronStateNetlibScraper$getDataFromLabel(label)labelthe label to get data from
value
getName()get Polyhedron name
PolyhedronStateNetlibScraper$getName()string with polyhedron name
scrape()scrape Netlib polyhedron definition
PolyhedronStateNetlibScraper$scrape()A new PolyhedronStateDefined object.
applyTransformationMatrix()Apply transformation matrix to polyhedron
PolyhedronStateNetlibScraper$applyTransformationMatrix(transformation.matrix)transformation.matrixthe transformation matrix to apply to the polyhedron
buildRGL()Creates a 'rgl' representation of the object
PolyhedronStateNetlibScraper$buildRGL(transformation.matrix)transformation.matrixthe transformation matrix to apply to the polyhedron
exportToXML()serializes object in XML
PolyhedronStateNetlibScraper$exportToXML()
clone()The objects of this class are cloneable with this method.
PolyhedronStateNetlibScraper$clone(deep = FALSE)deepWhether to make a deep clone.