Scrapes polyhedra from a PHD file format.
PolyhedronStateNetlibScraper.class
R6Class
object.
netlib.p3.lines
The path to the PHD files
labels.rows
Labels - row of appearance
labels.map
Labels - Map of content
initialize(file.id, netlib.p3.lines)
Initializes the object, taking the file.id and PDH file as parameters
extract_rows_from_label(label.number, expected.label)
Extracts data from the label, taking the label number and the expected label as parameters
getLabels()
Gets the label from the polyhedron
scrapeNet(net.txt, offset = 0)
Scrape the net model
extractCFOutBrackets()
Gets the CF Out Brackets
scrapeVertices(vertices.txt)
Scrapes the vertices
setupLabelsOrder()
Sets up the order of labels included in PHD file
getDataFromLabel(label)
Gets data from the Label
scrape()
Scrapes the data from the PHD file
buildRGL(size = 1, origin = c(0, 0, 0), normalize.size = TRUE)
Builds the RGL
mmodel