gdsfactory / kfactory

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

routing issues #410

Closed joamatab closed 6 days ago

joamatab commented 6 days ago
import gdsfactory as gf

c = gf.Component()
w = gf.components.straight()
top = c << w
bot = c << w
bot.dmove((40, 0.001))

p0 = top.ports["o2"]
p1 = bot.ports["o1"]

r = gf.routing.route_single(c, p1, p0, cross_section="strip", taper=None)
c.show()

Image

sebastian-goeldi commented 6 days ago

It would help if your example has enough space to route an S ;)

you need 4x bend_radius. Your first port is at (10,0), your second one at (40,0.001), therefore you only have space for 3 x bend, but you need 4x.

If you do that, the router will behave as it should.

image