Returns curves of top profile of the sketch.
Returns eOk if successful or an appropriate error code in the other case.