Closed-form quadrangulation of n-sided patches