Preserve route identity through reservation and export

This commit is contained in:
Jan Petykiewicz 2026-11-29 00:12:59 -08:00
commit 286caa273b

View file

@ -45,7 +45,7 @@ class _Shift:
def _identify_layout(problem: RoutingProblem, margin: float) -> _Layout:
columns: dict[tuple[float, float], list[Bounds]] = defaultdict(list)
for obstacle in problem.static_obstacles:
for obstacle in problem._blocking_polygons:
if not obstacle.equals(box(*obstacle.bounds)):
raise ValueError("Bundle routing requires axis-aligned rectangular obstacles")
x0, y0, x1, y1 = obstacle.bounds