Esempio n. 1
0
 public void IsPlanar_NotPlanarPolygon_ReturnsFalse()
 {
     var p = new Polygon3D();
     p.Points.Add(new Point3D(0, 0, 0));
     p.Points.Add(new Point3D(1, 0, 0));
     p.Points.Add(new Point3D(1, 1, 0));
     p.Points.Add(new Point3D(0, 1, 0.3));
     Assert.IsFalse(p.IsPlanar());
 }
Esempio n. 2
0
 public void IsPlanar_PlanarPolygon_ReturnsTrue()
 {
     var p = new Polygon3D();
     p.Points.Add(new Point3D(0, 0, 0));
     p.Points.Add(new Point3D(1, 0, 0));
     p.Points.Add(new Point3D(1, 1, 0.76));
     p.Points.Add(new Point3D(0, 1, 0.76));
     Assert.IsTrue(p.IsPlanar());
 }