Optimization of Reverse Engineering Data for Regeneration of Triangular Mesh