The gmsh mesh generator can be compiled as a stand alone application or as a C++ library. Using gmsh as an application is very well documented, however API documentation is not yet provided (as of 2013). There are some examples in gmsh source distribution and comments in the source files, however using the API requires rather careful inspection of the source code. Examples on this page are provided in hope that they will make studying gmsh API and implementation a bit easier