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