Or if your model is more complicated, such as plane with interior holes, circular surface, you might use the gmsh library.
Although I have not used the gmsh library, I am sure that if you can control the number of boundary nodes, you can use it to generate a fully quadrilateral mesh