Smooth curve around corners