Red Book Example: Triangles.cpp ported to Mac OSX.