An automatic approach to constrained quadrilateral mesh generation