Preserve route identity through reservation and export
This commit is contained in:
parent
cea23ef1b4
commit
286caa273b
1 changed files with 226 additions and 99 deletions
|
|
@ -47,7 +47,7 @@ def _shift_positions(
|
|||
available: int,
|
||||
) -> list[int]:
|
||||
positions = {i * available // 8 for i in range(9)}
|
||||
for obstacle in problem.static_obstacles:
|
||||
for obstacle in problem._blocking_polygons:
|
||||
if obstacle.is_empty:
|
||||
continue
|
||||
low, high = sorted(sign * (y - origin) - radius for y in (obstacle.bounds[1], obstacle.bounds[3]))
|
||||
|
|
|
|||
Loading…
Reference in a new issue