Beispiel #1
0
        public void SetPoints()
        {
            if (Constants.Initalising)
            {
                return;
            }
            PlotForm.SetEnabled(false);
            PlotFunction();

            if (doFillXvalues)
            {
                List <decimal> furcationPoints = new List <decimal>();
                foreach (DiagramSet p in CurrentFunction.furcationPoints)
                {
                    furcationPoints.Add(p.X);
                }
                List <PointD> setpoints = CurrentFunction.furcationPoints[CurrentFunction.furcationPoints.Count - 1].setPoints;
                if (setpoints.Count > 1)
                {
                    for (int i = setpoints.Count - 1; i >= 0; i--)
                    {
                        PointD p = setpoints[i];
                        furcationPoints.Add(p.X);
                    }
                }
                PlotForm.FillXValues(furcationPoints);
            }
            PlotForm.SetEnabled(true);
        }