Uses my geometry library for handling points/vectors and meshes.
Build using CMake.
The ugly table of 256 cases was generated by the Scheme program gentable.scm. If any changes are made to it, run gentable.sh (requires Gambit Scheme or Guile).
There is a single function documented in the header file.
See also the example program in mc-test.cc, which generates the objects shown below.