public Segmentation(List <SketchStroke> strokes) { Segments = new List <SketchStroke>(); StrokeSegmentations = new List <List <SketchStroke> >(); for (int i = 0; i < strokes.Count; i++) { List <SketchStroke> currSegments = ShortStraw.FindStrokeSegments(strokes[i]); Segments.AddRange(currSegments); StrokeSegmentations.Add(currSegments); for (int j = 0; j < currSegments.Count; j++) { SegmentStrokeIndices.Add(i); } } }
public static List <SketchPoint> FindCorners(SketchStroke stroke) { return(ShortStraw.FindCorners(stroke)); }