stencil.linear_taper
linear_taper(length, widths)Create a linear taper.
Args
- length (float): Taper length.
- widths (Sequence[float] | float): Taper widths at both ends.
Returns
Polygon: Taper polygon.
Example
>>> taper = pf.stencil.linear_taper(10, (0.5, 2.5))>>> component = pf.Component().add(taper)