gdsfactory / kfactory

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

offgrid ports #196

Closed joamatab closed 9 months ago

joamatab commented 10 months ago

When defining a width that creates off-grid points the show metadata ports is not consistent

c = straight(cross_section="xs_sc", width=15e-3, length=15e-3)

image

@sebastian-goeldi

sebastian-goeldi commented 10 months ago

Yeah, that's because the metdataports is a lazy implementation on my side ;). Also, I believe ports get forced on grid where possible

sebastian-goeldi commented 9 months ago

Should now be possible with virtual cells. It was possible even before if snapping was disabled. But we cannot support ports with off-grid widths, as that makes it complicated and very error-prone.