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()); }
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()); }