gdsfactory.path.smooth#
- gdsfactory.path.smooth(points, radius=4.0, bend=<function euler>, **kwargs)[source]#
Returns a smooth Path from a series of waypoints.
- Parameters:
points (ndarray[tuple[int, ...], dtype[floating[Any]]] | Path) – array-like[N][2] List of waypoints for the path to follow.
radius (float) – radius of curvature, passed to bend.
bend (Callable[[...], Path]) – bend function that returns a path that round corners.
kwargs (Any) – Extra keyword arguments that will be passed to bend.
- Return type:
import gdsfactory as gf p = gf.path.smooth(([0, 0], [0, 10], [10, 10])) p.plot()
(
Source code
,png
,hires.png
,pdf
)