gdsfactory.path.straight

Contents

gdsfactory.path.straight#

gdsfactory.path.straight(length: float = 10.0, npoints: int = 2, snap_to_grid: bool = False) Path[source]#

Returns a straight path.

For transitions you should increase have at least 100 points

Parameters:
  • length – of straight.

  • npoints – number of points.

  • snap_to_grid – snap to grid.