//[Test] public static void DO_Subtraction() { var clipperGO = new GameObject().AddComponent <DO_Tri_Tri>(); var orourkeGO = new GameObject().AddComponent <DO_Tri_Tri>(); Subtractors.DO_Subtraction(ClipperSub, clipperGO, -2, 0); Subtractors.DO_Subtraction(ORourkeSub, orourkeGO, 2, 0); var clipperList = clipperGO.GetTransformedPolygonList(); for (int i = 0; i < clipperList.Count; ++i) { clipperList[i] = clipperList[i].Simplify(); if (clipperList[i] == null) { clipperList.RemoveAt(i--); } } var orourkeList = orourkeGO.GetTransformedPolygonList(); for (int i = 0; i < orourkeList.Count; ++i) { orourkeList[i] = orourkeList[i].Simplify(); if (orourkeList[i] == null) { orourkeList.RemoveAt(i--); } } VerifyPolygroups(L(clipperList), L(orourkeList)); DTUtility.CleanUpGameObjects(); }
// Destroys all GameObjects. // This should be called at the end of each test. public static void CleanUp() { DTUtility.CleanUpGameObjects(); }