Voro++ example programs

Voro++ has a C++ interface that can be used to carry out many types of Voronoi computations. In the “examples” directory of the source distribution, there are numerous examples that demonstrate the features of the code. Each of these is described in detail here.

Basic examples

[Thumbnail]
Constructing a single Voronoi cell
[Thumbnail]
The Platonic solids
[Thumbnail]
The Voronoi tessellation for random points in a cube
[Thumbnail]
Importing particle positions from a file

Walls

[Thumbnail]
A cylindrical particle packing
[Thumbnail]
Voronoi cells in a tetrahedron
[Thumbnail]
A frustum
[Thumbnail]
A custom wall object for a toroidal particle packing

Customized output and additional features

[Thumbnail]
Statistics for a single Voronoi cell
[Thumbnail]
Customized output for different statistics
[Thumbnail]
Concurrent calculations of the normal and radical Voronoi tessellations

C++ code interface

[Thumbnail]
An odd–even coloring of a Voronoi cell
[Thumbnail]
A demonstration of the loop classes
[Thumbnail]
Detecting polygonal faces with a certain number of sides
[Thumbnail]
Finding the Voronoi cell that a given point is within

Extra examples

[Thumbnail]
Finding the region of space that can cut a Voronoi cell
[Thumbnail]
Cutting a cell by a grid of points in a box
[Thumbnail]
Construction of a superellipsoid
[Thumbnail]
Dealing with irregular particle packings

Degenerate vertices and timing

[Thumbnail]
A degenerate cell with cubical symmetry
[Thumbnail]
A complicated degenerate Voronoi cell
[Thumbnail]
A timing study using a perl script