A efficient algorithm is presented for the automatic mesh generation of arbitrary planardomains into triangular elements,which is based on the facts,1.arbitray multiply connectedregions can always be divided into triangular elements,2.active nodes in this region tend tozero with the generation of triangular elements. Methods for improving the quality of ele-ments are given in this paper. The structure of this program has a well-knit plot with littleinput data,higher quality and stability.