PathEndType

GDS path end type.

PathEndType controls how the start and end of a path are rendered. It is used with Cell.add_path() to select the cap style.

cell.add_path(
    [Point(0, 0), Point(100, 0)],
    width=0.5,
    layer=Layer(1, 0),
    end_type=PathEndType.ROUND,
)

Variants

attributeFLUSHPathEndType

Flush (square) ends at path endpoints. The path terminates exactly at the first and last point with no extension. This is the default.

attributeROUNDPathEndType

Round ends. A semicircle with diameter equal to the path width is drawn at each endpoint.

attributeHALF_WIDTH_EXTENSIONPathEndType

Square ends extending half the path width past the endpoints. Each end is extended by width / 2 along the path direction.

On this page