Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

routing with bboxes ignores bboxes which aren't in the start/end area #386

Open
joamatab opened this issue Jun 9, 2024 · 2 comments
Open
Labels

Comments

@joamatab
Copy link
Collaborator

joamatab commented Jun 9, 2024

import gdsfactory as gf

c = gf.Component()
columns = 2
ptop = c << gf.components.pad_array(columns=columns, port_orientation=270)
pbot = c << gf.components.pad_array(port_orientation=270, columns=columns)
ptop.dmovex(300)
ptop.dmovey(300)

obstacle = c << gf.c.rectangle(size=(300, 100), layer="M3")
obstacle.dymin = pbot.dymax - 10
obstacle.dxmin = pbot.dxmax - 10


routes = gf.routing.route_bundle_electrical(
    c,
    pbot.ports,
    ptop.ports,
    start_straight_length=100,
    separation=20,
    bboxes=[
        obstacle.bbox(),
        pbot.bbox(),
        ptop.bbox(),
    ],  # will be able avoid obstacles soon
    sort_ports=True,
)

c.show()

Image

@sebastian-goeldi
Copy link
Collaborator

Partially fixed by #388

At least for starting/end bboxes. It is howerver not implemented for general obstacles like this one (yet) or waypoints.

@sebastian-goeldi
Copy link
Collaborator

Also in this special example, there is no way to avoid that obstacle unless I am missing something. You can't just avoid it with 20um separation and still have space to route

@sebastian-goeldi sebastian-goeldi changed the title routing with bboxes seems to ignore the bboxes routing with bboxes ignores bboxes which aren Sep 26, 2024
@sebastian-goeldi sebastian-goeldi changed the title routing with bboxes ignores bboxes which aren routing with bboxes ignores bboxes which aren't in the start/end area Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants