示例#1
0
 public void AddBreakLine(SmoothLine line)
 {
     line.InputLine.Clear();
     line.TriangleList.Clear();
     BreakedSmoothLines.Add(line);
 }
示例#2
0
        public void SetBreakPoints(ISpread<bool> breakPoints)
        {
            if (breakPoints == null) return;

            AllowBreak = breakPoints;

            for (var i = 0; i < ActualSmoothLines.Count; i++)
            {
                if (AllowBreak[i % AllowBreak.SliceCount])
                {
                    if (ActualSmoothLines[i].Flagnew == false)
                    {
                        AddBreakLine(ActualSmoothLines[i]);
                        ActualSmoothLines[i] = new SmoothLine(FrameCounts[i % FrameCounts.SliceCount],
                                                SmoothPointsCount[i % SmoothPointsCount.SliceCount],
                                                Colors[i % Colors.SliceCount],
                                                LineWidth[i % LineWidth.SliceCount],
                                                PointsRange[i % PointsRange.SliceCount]);
                    }
                }
                ActualSmoothLines[i].SetColor(Colors[i % Colors.SliceCount]);
            }
        }