Object Matched Query rect Visited node
Drag to draw a query

R-Tree Spatial Index — 2D Top-Down Map

This 2D companion draws the same real R-tree — minimum-enlargement insertion and quadratic node splitting — as a flat top-down map instead of an orbit-controlled 3D scene. Click the map to insert your own objects, drag to draw a custom query rectangle, or let the auto-query cycle run, and watch which nested bounding boxes get visited versus pruned entirely.