In this paper,two popular triangle grid generation methods including advancing front generation method and delaunay method were combined to form a new method of triangulation.The distance functions of nodes were used to control the changes of mesh size and density transition in calculation region.The longest boundary was prior to be handled to generate the size-reduced triangulation mesh,and finally realize the triangulation of the calculation region.Meanwhile,the encryption on source item and boundary was utilized for mesh refinement.