public void QuickHullAlgorithm(List <PointF> points)
        {
            QuickHullGraphics.Clear();
            QuickHullGraphics.DrawPoints(points);

            List <PointF> resultHull = QuickHull.ConvexHull(points);

            QuickHullGraphics.FinishLines(resultHull);
        }
Пример #2
0
        private void MergeBtn_Click(object sender, EventArgs e)
        {
            List <PointF> points = RandomPoints(30);

            points = points.OrderBy(point => point.X).ToList();
            QuickHullGraphics.DrawPoints(points);
            points = DivideAndConquer.ConvexHull(points);
            QuickHullGraphics.Clear();
            QuickHullGraphics.FinishLines(points);
            QuickHullGraphics.DrawPoints(points);
        }