A level set based method for fixing overhangs in 3 D printing