snap_primitives#

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

Snap primitives on the specified layer to touching geometry.

Parameters:
layerstr or list of str or Layer or list of Layer

Layers 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 snapped regardless of the connectivity of touching geometry.