public void TectBuildTree_ZoomLevels_2() { List <DataRow> data = new List <DataRow>(); double val = 0; for (int i = 0; i < 100; i++) { val += i > 0 ? 1.0 / i : 0; data.Add(new DataRow() { Argument = val, Value = 1 }); } QuadtreeNode startNode = QuardtreeBuilder.BuildTree(data, 10); var wholeRange = QuardtreeBuilder.GetWholeRange(startNode); int counter = 0; startNode.VisitNodes(wholeRange, 10, node => { counter++; }); Assert.AreEqual(1, counter); counter = 0; startNode.VisitNodes(wholeRange, 1, node => { counter++; }); Assert.AreEqual(100, counter); counter = 0; startNode.VisitNodes(wholeRange, 2, node => { counter++; }); Assert.AreEqual(3, counter); }
public void TectBuildTree_Large() { List <DataRow> data = Generator.Generate2(); QuadtreeNode startNode = QuardtreeBuilder.BuildTree(data); var wholeRange = QuardtreeBuilder.GetWholeRange(startNode); }