gdstk.racetrack

gdstk.racetrack(center, straight_length, radius, inner_radius=0, vertical=False, tolerance=0.01, layer=0, datatype=0) gdstk.Polygon

Create a racetrack shape.

Parameters:
  • center (coordinate pair or complex) – Polygon center.

  • straight_length (number) – Length of the straight segment.

  • radius (number) – Radius of the circular arc.

  • inner_radius (number) – If greater than 0, create a racetrack ring.

  • vertical – If True, the racetrack is created vertically.

  • tolerance – Tolerance used for calculating the polygonal approximation for the circular arcs.

  • layer – layer number assigned to this polygon.

  • datatype – data type number assigned to this polygon.

Examples

>>> racetrack1 = gdstk.racetrack((0, 0), 8, 5)
>>> racetrack2 = gdstk.racetrack((18, 0), 8, 5, 3, True)
../_images/racetrack.svg