Check physical separation within and between routed nets
This commit is contained in:
parent
9ee786d138
commit
d02dbb872f
1 changed files with 199 additions and 35 deletions
|
|
@ -40,9 +40,11 @@ def build_routing_stack(problem: RoutingProblem, options: RoutingOptions) -> Rou
|
|||
clearance=problem.clearance,
|
||||
safety_zone_radius=problem.safety_zone_radius,
|
||||
board=box(*problem.bounds),
|
||||
self_clearance=problem.self_clearance,
|
||||
)
|
||||
reserved_ids = {id(polygon) for polygon in problem._reserved_obstacles}
|
||||
for obstacle in problem.static_obstacles:
|
||||
world.add_static_obstacle(obstacle)
|
||||
world.add_static_obstacle(obstacle, reserved=id(obstacle) in reserved_ids)
|
||||
|
||||
danger_map = DangerMap(bounds=problem.bounds)
|
||||
refinement = options.refinement
|
||||
|
|
|
|||
Loading…
Reference in a new issue