gdsfactory.cross_section.slot#
- gdsfactory.cross_section.slot(width=0.5, layer='WG_ABSTRACT', slot_width=0.04, rail_layer='WG', sections=None, **kwargs)[source]#
Return CrossSection Slot (with an etched region in the center).
- Parameters:
width (float) – main Section width (um) or function parameterized from 0 to 1. the width at t==0 is the width at the beginning of the Path. the width at t==1 is the width at the end.
layer (tuple[int, int] | str | int | LayerEnum) – main section layer.
slot_width (float) – in um.
rail_layer (tuple[int, int] | str | int | LayerEnum) – rail layer.
sections (tuple[Section, ...] | None) – list of Sections(width, offset, layer, ports).
kwargs (Any) – other cross section parameters.
- Return type:
import gdsfactory as gf xs = gf.cross_section.slot(width=0.5, slot_width=0.05, layer='WG') p = gf.path.arc(radius=10, angle=45) c = p.extrude(xs) c.plot()
(
Source code,png,hires.png,pdf)