Unofficially gitified from the original source code of cfMesh: http://www.c-fields.com/solutions/products/meshing