Automatic Adaptive Mesh Generation Using Metric Advancing Front Approach