Example #1
0
        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);
                }
            }
        }
Example #2
0
 public static List <SketchPoint> FindCorners(SketchStroke stroke)
 {
     return(ShortStraw.FindCorners(stroke));
 }