expanded_extent#

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

Get the expanded extent of the geometry on the specified nets.

Parameters:
netslist of Net

List of nets containing the geometry.

extentExtentType

Type of extent to be retrieved.

expansion_factorfloat

Expansion factor applied to the extent. 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 bounding box of the extent.

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.