polygonal_mesh, a FreeFem++ code which demonstrates how to create a region by specifying polygonal borders and then mesh it by calling buildmesh().
The information on this web page is distributed under the MIT license.