Esempio n. 1
0
        public void MakePolygon()
        {
            var points =
                new List <Vector3>
            {
                new Vector3(13.0, 4.0),
                new Vector3(13.0, 4.0),
                new Vector3(13.0, 4.0),
                new Vector3(6.0, 11.0),
                new Vector3(6.0, 7.0),
                new Vector3(2.0, 7.0),
                new Vector3(2.0, 4.0),
                new Vector3(9.0, 0.0),
                new Vector3(9.0, 4.0),
                new Vector3(13.0, 7.0),
                new Vector3(9.0, 7.0),
                new Vector3(9.0, 11.0),
                new Vector3(6.0, 4.0),
                new Vector3(6.0, 0.0),
            };
            var polygon = Shaper.MakePolygon(points);

            Assert.Equal(7, polygon.Vertices.Count);
        }