An active set strategy to generate quadrilateral grids