jtoumey / immerse

0 stars 0 forks source link

Add the ability to coarsen the quadtree #2

Open jtoumey opened 6 years ago

jtoumey commented 6 years ago
  1. Traverse to the finest level of the tree (determined when is_leaf == true). Store the memory address of the path (e.g., the memory address of the current node).
  2. Move up one level (may require storage of memory address of parent node).
  3. Use the memory address saved in 1. to deallocate the object associated with the refined node and set the child pointer to NULL.
  4. Repeat in the desired manner (until an appropriate level is attained, etc.).