If the sweep curve is not closed, this will store the vertex ids of the first and last instances of the profile curve.
that even if the profile curve is closed, depending on the welding, these could be part of a single boundary (ie, a square revolved 90 degrees around a welded side actually has one open boundary rather than two, since they are joined), but the user likely wants to be given them separately for ease in making end caps.