Grinding of a triangular mesh in the problem of biharmonic optimization of complex surfaces