expanded_extent#

Layout.expanded_extent(nets, extent, expansion_factor, expansion_unitless, use_round_corner, num_increments)#

Get an expanded polygon for a list of nets.

Parameters:
netslist[Net]

List of nets.

extentExtentType

Geometry extent type for expansion.

expansion_factorfloat

Expansion factor for the polygon union. No expansion occurs if the value for this parameter is less than or equal to 0.

expansion_unitlessbool

When unitless, the distance by which the extent expands is the factor multiplied by the longer dimension (X or Y distance) of the expanded object/net.

use_round_cornerbool

Whether to use round corners or sharp corners. For round corners, this returns a bounding box if its area is within 10% of the rounded expansion’s area.

num_incrementsint

Number of iterations desired to reach the full expansion.

Returns:
PolygonData

Notes

This method returns the expansion of the contour, so any voids within expanded objects are ignored.