Skip to article frontmatterSkip to article content

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 = <kfactory.decorators.WrappedVKCellFunc object>, bend: ComponentAllAngleFactory = functools.partial(<kfactory.decorators.WrappedVKCellFunc object>, radius=5), bend_ports: tuple[str, str] = ('o1', 'o2'), straight_ports: tuple[str, str] = ('o1', 'o2'), cross_section: CrossSectionSpec | None = None)list[OpticalAllAngleRoute]

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

Parameters
  • componentto add the routing.

  • ports1list of start ports to connect.

  • ports2list of end ports to connect.

  • backbonelist of points to connect the ports.

  • separationlist of spacings.

  • straightfunction to create straights.

  • bendfunction to create bends.

  • bend_portstuple of ports to connect the bends.

  • straight_portstuple of ports to connect the straights.

  • cross_sectioncross_section to use. Overrides the cross_section.