public void Test7() { SimpleAABBTree myATree = new SimpleAABBTree(); BoundingBox myBox; int TESTCOUNT = 20; SimpleAABBTreeDynamicInstance myObjectToRemove = null; for (int i = 0; i < TESTCOUNT; i++) { myBox = new BoundingBox(new Vector3(myRandom.Next(-100, 0), myRandom.Next(-100, 0), myRandom.Next(-100, 0)), new Vector3(myRandom.Next(1, 100), myRandom.Next(1, 100), myRandom.Next(1, 100))); var myEntity = new SimpleAABBTreeDynamicInstance(myBox); myEntity.Bounds.Value = myBox; myATree.Insert(myEntity); } StaticAABBTree myStaticObject = myATree.GetAreaAsStaticTree(new BoundingBox(new Vector3(-1000000), new Vector3(100000))); Assert.IsTrue(myStaticObject.CompareTo(myATree) == 0); }
internal void Merge(StaticAABBTree staticAABBTree) { myViewedTree.Add(staticAABBTree); }