gdstk.rectangle

gdstk.rectangle(corner1, corner2, layer=0, datatype=0) gdstk.Polygon

Create a rectangle.

Parameters:
  • corner1 (coordinate pair or complex) – First rectangle corner.

  • corner2 (coordinate pair or complex) – Opposing corner.

  • layer – layer number assigned to this polygon.

  • datatype – data type number assigned to this polygon.