In the paper, a new method called Boundary Search Method (BSM) for generate regular grids was studied, and the key techniques of BSM were investigated, they are: 1) when searching boundary grids of the solid model described by STL file, to avoid losing grids, a method named Triangle Contraction Searching Method (TCSM) was put forward to get points coordinate to calculate grids No. 2)to get more accurate boundary mesh, a vector method was given to judge and eliminate invalid grids. 3) After identifying all boundary grids, for getting inner grids of the shape, an algorithm called Outer Seed Grid Method (OSGM) was put forward. Finally, two examples were given to show the validity of our principle.