snap_primitives#

Layout.snap_primitives(layer, tol='0.05um', check_connectivity=True)#

Snap primitives on the specified layer to touching geometry.

Parameters:
layerstr or Layer

Layer containing the primitives to be snapped.

tolValueLike

Tolerance for snapping primitives.

check_connectivitybool

If True, the connectivity of primitives is checked and enforced to prevent short circuits in geometry connecting to the primitives. If false, primitives are grouped regardless of the connectivity of touching geometry.