public void Surface_TrianglesEqual_FalseForOppositeWindings1() { // ARRANGE Vector3[] t1 = new Vector3[] { new Vector3(0, 0, 0), new Vector3(1, 0, 0), new Vector3(0, 1, 0), }; Vector3[] t2 = new Vector3[] { new Vector3(0, 0, 0), new Vector3(0, 1, 0), new Vector3(1, 0, 0), }; // ACT bool areEqual = ListSurface.AreTrianglesEqual(t1, t2); // ASSERT Assert.IsFalse(areEqual); }
public void Surface_TrianglesEqual_TrueForSameTriangles() { // ARRANGE Vector3[] t1 = new Vector3[] { new Vector3(0, 0, 0), new Vector3(1, 0, 0), new Vector3(0, 1, 0), }; Vector3[] t2 = new Vector3[] { new Vector3(0, 0, 0), new Vector3(1, 0, 0), new Vector3(0, 1, 0), }; // ACT bool areEqual = ListSurface.AreTrianglesEqual(t1, t2); // ASSERT Assert.IsTrue(areEqual); }