gdsfactory.routing.route_bundle_all_angle

gdsfactory.routing.route_bundle_all_angle#

gdsfactory.routing.route_bundle_all_angle(component: ComponentSpec, ports1: list[Port], ports2: list[Port], backbone: Coordinates | None = None, separation: list[float] | float = 3.0, straight: ComponentAllAngleFactory = <function straight_all_angle>, bend: ComponentAllAngleFactory = functools.partial(<function bend_euler_all_angle>, radius=5), bend_ports: tuple[str, str] = ('o1', 'o2'), straight_ports: tuple[str, str] = ('o1', 'o2'), cross_section: CrossSectionSpec | None = None) list[OpticalAllAngleRoute][source]#

Route a bundle of ports to another bundle of ports with all angles.

Parameters:
  • component – to add the routing.

  • ports1 – list of start ports to connect.

  • ports2 – list of end ports to connect.

  • backbone – list of points to connect the ports.

  • separation – list of spacings.

  • straight – function to create straights.

  • bend – function to create bends.

  • bend_ports – tuple of ports to connect the bends.

  • straight_ports – tuple of ports to connect the straights.

  • cross_section – cross_section to use. Overrides the cross_section.