Ejemplo n.º 1
0
        internal static void TestSimplify2()
        {
            IEnumerable <Vector2> polygon = TestCases.MakeStarryCircularPolygon(150000, 30, 1);

            Presenter.ShowAndHang(polygon);
            polygon = polygon.Simplify();
            Presenter.ShowAndHang(polygon);
        }
Ejemplo n.º 2
0
        public static void TestTriangulate()
        {
            //var testcase = new Polygon(TestCases.EdgeCases["hand"].Item1[0]);
            var testcase = new Polygon(TestCases.MakeStarryCircularPolygon(13, 10, 7));

            //testcase.Transform(Matrix3x3.CreateRotation(Math.PI));
            Presenter.ShowAndHang(testcase);
            var triangles = testcase.TriangulateToCoordinates();

            Presenter.ShowAndHang(triangles);
        }