public void RTreeClearTest() { _tree.Clear(); Assert.AreEqual(0, _tree.Height); Assert.AreEqual(0, _tree.NumberOfGeometries); }
public void ClearWorks() { var tree = new RTree <Point>(maxEntries: 4); tree.BulkLoad(points); tree.Clear(); Assert.AreEqual(0, tree.Count); Assert.IsEmpty(tree.Root.children); }
public void Clear_Should_Reset_The_Tree() { var tree = new RTree <int>(4); tree.Load(_data); tree.Clear(); var tree2 = new RTree <int>(4); Assert.AreEqual(tree.ToJson(), tree2.ToJson()); }
internal void Clear() { _visGraphVertices.Clear(); PathRouter = new LgPathRouter(); }
public void ClearRailTree() { _railTree.Clear(); }
List <NoteData> lstFindResult = new List <NoteData>(); // 查询结果 public void Clear() { // 需要Dispose所有feature tree.Clear(); lstFindResult.Clear(); }