gdsfactory / kfactory

gdsfactory with a klayout backend
https://gdsfactory.github.io/kfactory/
MIT License
28 stars 10 forks source link

Add indirect routing of endpoints #301

Closed joamatab closed 2 months ago

joamatab commented 2 months ago

works great, can we merge it?

sebastian-goeldi commented 2 months ago

image

Not for all cases yet ;)

sebastian-goeldi commented 2 months ago

Nvm, just fixed it

image

Give me 10 min, then we can merge it

sebastian-goeldi commented 2 months ago

It works under the assumption that all the ports that will meet are one cell/bounding box. The router routes to the bounding box of all starting ports.

E.g. in the following it will create the bounding box of all the ports and then route to the top most.

image

This might not be desirable in all cases but is a fair assumption I think. Otherwise the router will not know where it is allowed to route. The current assumption is: