gdsfactory.path.transition#
- gdsfactory.path.transition(cross_section1: CrossSectionSpec, cross_section2: CrossSectionSpec, width_type: Literal['sine', 'linear', 'parabolic'] | Callable[[float], float] = 'sine', offset_type: Literal['sine', 'linear', 'parabolic'] | Callable[[float], float] = 'sine') Transition [source]#
Returns a smoothly-transitioning between two CrossSections.
Only cross-sectional elements that have the name (as in X.add(…, name = ‘wg’) ) parameter specified in both input CrosSections will be created. Port names will be cloned from the input CrossSections in reverse.
- Parameters:
cross_section1 – First CrossSection.
cross_section2 – Second CrossSection.
width_type – ‘sine’, ‘parabolic’, ‘linear’ or Callable. type of width transition used if any widths are different between the two input CrossSections.
offset_type – ‘sine’, ‘parabolic’, ‘linear’ or Callable. type of width transition used if any widths are different between the two input CrossSections.