Check physical separation within and between routed nets

This commit is contained in:
Jan Petykiewicz 2026-11-28 20:16:29 -08:00
commit d02dbb872f

View file

@ -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