Text this: The construction of optimal drape surfaces with constrained first and second derivatives