Pattern-Based Quadrangulation for N-Sided Patches