Gets the CurveElem by index.
Returns eOk if successful or an appropriate error code in the other case.