Exemplo n.º 1
0
        public void NakedEdges()
        {
            var mesh = new Mesh3(
                new List <Point3> {
                new Point3(0, 0, 0), new Point3(1, 0, 0), new Point3(1, 1, 0), new Point3(0, 1, 0)
            },
                new List <Face3> {
                new Face3(0, 1, 2), new Face3(0, 2, 3)
            });
            var ne = mesh.NakedEdges();

            Assert.AreEqual(ne[0].A, 0);
            Assert.AreEqual(ne[0].B, 1);
            Assert.AreEqual(ne[1].A, 1);
            Assert.AreEqual(ne[1].B, 2);
            Assert.AreEqual(ne[2].A, 2);
            Assert.AreEqual(ne[2].B, 3);
            Assert.AreEqual(ne[3].A, 3);
            Assert.AreEqual(ne[3].B, 0);
        }