// Box cutting example code // // Author : Chris H. Rycroft (LBL / UC Berkeley) // Email : chr@alum.mit.edu // Date : August 30th 2011 #include "voro++.hh" using namespace voro; // Parameters controlling the center of the test box const double cx=1.5,cy=1.5,cz=1.5; int main() { double x,y,z; voronoicell v; // Initialize the Voronoi cell to be a cube of side length 16, centered // on the origin v.init(-8,8,-8,8,-8,8); // Cut by a grid of points in a box of width one, centered on // (cx,cy,cz) for(x=cx-0.5;x