/// <summary> /// Split the substroke at the given index at the given indices /// </summary> /// <param name="substrokeIndex">The index of the substroke</param> /// <param name="pointIndices">The indices to split at</param> public void SplitSubstrokeAt(int substrokeIndex, int[] pointIndices) { // We need to step through backwards so we dont mess up the indices Array.Sort(pointIndices); Array.Reverse(pointIndices); Substroke first = (Substroke)this.substrokes[substrokeIndex]; first.SplitAt(pointIndices); }
/// <summary> /// Split the substroke at the given index at the point index /// </summary> /// <param name="substrokeIndex">Index of the substroke</param> /// <param name="pointIndex">Index of the point to split at (the second half has the point)</param> public void SplitSubstrokeAt(int substrokeIndex, int pointIndex) { Substroke first = (Substroke)this.substrokes[substrokeIndex]; first.SplitAt(pointIndex); }