3 This directory contains miscellaneous extra examples of the code.
5 box_cut.cc - this creates a large Voronoi cell, and then cuts the cell by a
6 group of points within a small box, to demonstrate space that particles within
7 a block can possibly affect. Different topologies are visible depending on
8 whether a face, edge, or corner of the box is aligned with the cell.
10 cut_region.cc - this program demonstrates the plane_intersects() routine for
11 determining whether a plane has any intersection with a Voronoi cell. The
12 program creates a test Voronoi cell, saves it to "cell.gnu", and then maps out
13 the region of space which can possibly influence it and saves an outline of it
14 to "cell_cut_region.gnu". These can be visualized in gnuplot using:
16 splot 'cell.gnu' with lines, 'cell_cut_region.gnu' with dots
18 superellipsoid.cc - this creates a cell in the shape of a superellipsoid
19 (satisfying the equation x^4+y^4+z^4=1) and outputs the results in gnuplot
20 format to "superellipsoid.gnu".
22 irregular.cc - this code makes use of a wall class as a method of handling a
23 Voronoi tessellation for an irregular group of particles. Each Voronoi cell is
24 initialized to be a dodecahedron surronding the particle, which is then cut.
25 This stops Voronoi cells from extending a long way out to the computational
26 boundaries. The output can be visualized using the POV-Ray header file