PackedSpheres

Creates a scene of \(N^3\) analytic spheres and combines them with two kinds of union: a standard union that scans every object, and a BVH-accelerated union (see Bounding volume hierarchies). Demonstrates the algorithmic-complexity benefit of the BVH for closest-object queries as the object count grows.

The source for this example is at Examples/PackedSpheres/main.cpp. See Building for how to compile it with CMake, GNU Make, or a direct compiler invocation.

cd Examples/PackedSpheres
./PackedSpheres.ex