gdsfactory.path.arc

Contents

gdsfactory.path.arc#

gdsfactory.path.arc(radius: float = 10.0, angle: float = 90, npoints: int | None = None, start_angle: float | None = -90) Path[source]#

Returns a radial arc.

Parameters:
  • radius – minimum radius of curvature.

  • angle – total angle of the curve.

  • npoints – Number of points used per 360 degrees. Defaults to pdk.bend_points_distance.

  • start_angle – initial angle of the curve for drawing, default -90 degrees.

import gdsfactory as gf

p = gf.path.arc(radius=10, angle=45)
p.plot()

(Source code, png, hires.png, pdf)

../_images/gdsfactory-path-arc-1.png