---
title: "Rpolyhedra"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Rpolyhedra}
%\VignetteEngine{knitr::rmarkdown}
\usepackage[utf8]{inputenc}
---
# Introduction
This package is a curation made based on the poly package found on https://netlib.org/polyhedra/ ([Original Help message](https://raw.githubusercontent.com/ropensci/Rpolyhedra/master/man/html/poly_original_help_message.html)), and the polyhedra database found on http://dmccooey.com/polyhedra/, both of which provide polyhedra databases on its own format. As such, Rpolyhedra provides with the following:
1. A module to scrape the polyhedra for the different sources found with features for incremental correction of issues found and to be found in scraping process.
1. A database of the scraped polyhedra.
1. An R6 polyhedron representation with 'rgl' package visualizing capabilities.
# Usage
For final users, the package provides a common interface for accessing public polyhedra databases, analyze properties, compare and visualize them with RGL.
For advanced users, the package provides a simplified set of R6 objects to scrape and compare polyhedra databases.
```{r setup, include=FALSE}
library(rgl)
library(Rpolyhedra)
library(dplyr)
setupKnitr()
```
## Get available polyhedra
Once the original files had been processed, a simple call to ```getAvailablePolyhedra()``` retrieves a list of the available polyhedra with properties and status in the polyhedra database:
```{r availablePolyhedra}
#show only the first 10 polyhedra.
head(getAvailablePolyhedra(), n = 10)
```
## Retrieve a polyhedron
The access to a particular polyhedron can be done with a call to ```getPolyhedron(<