Regularization for prescribed mean curvature and for motion by mean curvature