Reimplemented curve wrapping using the selected curve type.