Exemplo n.º 1
0
 public static void RemoveNode(OctCell root, OctNode node)
 {
     VisitTree(root, node.bounds, (cell) => { if (cell.contents != null) cell.contents.Remove(node); });
 }
Exemplo n.º 2
0
 public static void InsertNode(OctCell root, OctNode node, float leafSize)
 {
     BuildTree(root, node.bounds, (cell) => { cell.contents.Add(node); }, leafSize);
 }