Gravar-mail: Robust analysis and optimization of a flatten surface technique