gdsfactory.path.transition#
- gdsfactory.path.transition(cross_section1, cross_section2, width_type='sine', offset_type='sine')[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 (CrossSectionSpec) – First CrossSection.
cross_section2 (CrossSectionSpec) – Second CrossSection.
width_type (Literal['sine', 'linear', 'parabolic'] | ~collections.abc.Callable[[float, float, float], float]) – ‘sine’, ‘parabolic’, ‘linear’ or Callable. type of width transition used if any widths are different between the two input CrossSections.
offset_type (Literal['sine', 'linear', 'parabolic'] | ~collections.abc.Callable[[float, float, float], float]) – ‘sine’, ‘parabolic’, ‘linear’ or Callable. type of width transition used if any widths are different between the two input CrossSections.
- Return type: