Added cos_min_angle and cos_max_angle functions to utility.
Updated the mesh constants. Created a face quality function and uses this to determine bad faces instead of directly using angle.

Also updated the Painter to draw the bad faces.
Created quality function for edges and cleaned up in the mesh constants.
Bug fixes in split tetrahedron functions.
Clean up in fix_complex and resize_complex functions.