Global deformable surface optimization using adaptive constraints and penalties