gdsfactory.routing.route_bundle_all_angle

gdsfactory.routing.route_bundle_all_angle#

gdsfactory.routing.route_bundle_all_angle(component, ports1, ports2, backbone=None, separation=3.0, straight='straight_all_angle', bend='bend_euler_all_angle', bend_ports=('o1', 'o2'), straight_ports=('o1', 'o2'), cross_section=None)[source]#

Route a bundle of ports to another bundle of ports with non manhattan ports.

Parameters:
  • component (ComponentSpec) – to add the routing.

  • ports1 (list[Port]) – list of start ports to connect.

  • ports2 (list[Port]) – list of end ports to connect.

  • backbone (Coordinates | None) – list of points to connect the ports.

  • separation (list[float] | float) – list of spacings.

  • straight (CellAllAngleSpec) – function to create straights.

  • bend (CellAllAngleSpec) – function to create bends.

  • bend_ports (tuple[str, str]) – tuple of ports to connect the bends.

  • straight_ports (tuple[str, str]) – tuple of ports to connect the straights.

  • cross_section (CrossSectionSpec | None) – cross_section to use. Overrides the cross_section.

Return type:

list[OpticalAllAngleRoute]