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:
- nets
list
[Net
] List of nets.
- extent
ExtentType
Geometry extent type for expansion.
- expansion_factor
float
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_increments
int
Number of iterations desired to reach the full expansion.
- nets
- Returns:
Notes
This method returns the expansion of the contour, so any voids within expanded objects are ignored.