#include "voro++.hh"
using namespace voro;
const double Phi=0.5*(1+sqrt(5.0));
const double phi=0.5*(1-sqrt(5.0));
int main() {
voronoicell v;
v.init(-2,2,-2,2,-2,2);
v.plane(1,1,1);
v.plane(1,-1,-1);
v.plane(-1,1,-1);
v.plane(-1,-1,1);
v.draw_gnuplot(0,0,0,"tetrahedron.gnu");
v.init(-1,1,-1,1,-1,1);
v.draw_gnuplot(0,0,0,"cube.gnu");
v.init(-2,2,-2,2,-2,2);
v.plane(1,1,1);
v.plane(-1,1,1);
v.plane(1,-1,1);
v.plane(-1,-1,1);
v.plane(1,1,-1);
v.plane(-1,1,-1);
v.plane(1,-1,-1);
v.plane(-1,-1,-1);
v.draw_gnuplot(0,0,0,"octahedron.gnu");
v.init(-2,2,-2,2,-2,2);
v.plane(0,Phi,1);
v.plane(0,-Phi,1);
v.plane(0,Phi,-1);
v.plane(0,-Phi,-1);
v.plane(1,0,Phi);
v.plane(-1,0,Phi);
v.plane(1,0,-Phi);
v.plane(-1,0,-Phi);
v.plane(Phi,1,0);
v.plane(-Phi,1,0);
v.plane(Phi,-1,0);
v.plane(-Phi,-1,0);
v.draw_gnuplot(0,0,0,"dodecahedron.gnu");
v.init(-2,2,-2,2,-2,2);
v.plane(1,1,1);
v.plane(-1,1,1);
v.plane(1,-1,1);
v.plane(-1,-1,1);
v.plane(1,1,-1);
v.plane(-1,1,-1);
v.plane(1,-1,-1);
v.plane(-1,-1,-1);
v.plane(0,phi,Phi);
v.plane(0,phi,-Phi);
v.plane(0,-phi,Phi);
v.plane(0,-phi,-Phi);
v.plane(Phi,0,phi);
v.plane(Phi,0,-phi);
v.plane(-Phi,0,phi);
v.plane(-Phi,0,-phi);
v.plane(phi,Phi,0);
v.plane(phi,-Phi,0);
v.plane(-phi,Phi,0);
v.plane(-phi,-Phi,0);
v.draw_gnuplot(0,0,0,"icosahedron.gnu");
}