Example #1
0
 public static void RemoveNode(OctCell root, IOctNode node)
 {
     VisitTree(root, node.Bounds, (cell) => { if (cell.Contents != null)
                                              {
                                                  cell.Contents.Remove(node);
                                              }
               });
 }
Example #2
0
 public static void RemoveNode(OctCell root, IOctNode node)
 {
     VisitTree(root, node.Bounds, (cell) => { if (cell.Contents != null) cell.Contents.Remove(node); });
 }
Example #3
0
 public static void InsertNode(OctCell root, IOctNode node, float leafSize)
 {
     BuildTree(root, node.Bounds, (cell) => { cell.Contents.Add(node); }, leafSize);
 }
Example #4
0
 public static void InsertNode(OctCell root, IOctNode node, float leafSize)
 {
     BuildTree(root, node.Bounds, (cell) => { cell.Contents.Add(node); }, leafSize);
 }