gdsfactory.path.arc

Contents

gdsfactory.path.arc#

gdsfactory.path.arc(radius=10.0, angle=90, npoints=None, start_angle=-90, angular_step=None)[source]#

Returns a radial arc.

Parameters:
  • radius (float | None) – minimum radius of curvature.

  • angle (float) – total angle of the curve.

  • npoints (int | None) – Number of points used per 360 degrees. Defaults to pdk.bend_points_distance.

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

  • angular_step (float | None) – If provided, determines the angular step (in degrees) between points. This overrides npoints calculation.

Return type:

Path

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