internal static PoseSequence Create(IntervalIndex intervalIndex, int firstFrame, int numFrames)
 {
     return(new PoseSequence
     {
         intervalIndex = intervalIndex,
         firstFrame = firstFrame,
         numFrames = numFrames
     });
 }
 /// <summary>
 /// Appends an element to the pose sequence.
 /// </summary>
 /// <remarks>
 /// Pose sequences are based on the notion of partial intervals,
 /// i.e. an element of a sequence can refer to an interval
 /// and optionally further reduce by selecting a sub-section
 /// of the interval.
 /// </remarks>
 /// <param name="intervalIndex">The interval index that the selected poses should refer to.</param>
 /// <param name="firstFrame">The first frame (relative to the segment) that the pose sequence should start at.</param>
 /// <param name="numFrames">The number of frames that the pose sequence should contain.</param>
 /// <seealso cref="Binary.Interval"/>
 /// <seealso cref="IntervalIndex"/>
 public void Add(IntervalIndex intervalIndex, int firstFrame, int numFrames)
 {
     sequences.Add(PoseSequence.Create(intervalIndex, firstFrame, numFrames));
 }