package
JSON of The Encyclopedia of Polyhedra
npm install polyhedraGitHub-flavored package documentation.
Across all versions, last 30 days.
127 in 30 days
Runtime metadata.
Tagged topics.
JSON format data from the Virtual Polyhedra by George W. Hart. It was converted to JSON by Lee Stemkoski. I am merely putting in on npm.
var polyhedra = require('polyhedra')
// polyhedra has the attributes: antiprisms, archimedean, johnson, platonic, prisms
console.log(polyhedra.platonic.cube)
// Prints
{
"name":"Cube",
"category":["Platonic Solid"],
"vertex":[[0,0,1.224745],[1.154701,0,0.4082483],[-0.5773503,1,0.4082483],[-0.5773503,-1,0.4082483],[0.5773503,1,-0.4082483],[0.5773503,-1
The data from the polyhedra is from from the website "Virtual Polyhedra: The Encyclopedia of Polyhedra" by George W. Hart. The original copyright by Hart allows noncommercial use. See copyright.txt.