The document presents an approach for clustering non-convex polygons into hierarchical groups to optimize motion planning for robots or vehicles. The approach involves representing polygons as nested rectangles at different levels, including frames, containers, families, and groups, with the goal of decreasing calculation time during planning. It was tested on real-world data involving over 1000 polygons clustered into hierarchical groups.