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:
- nets
list
ofNet
List of nets containing the geometry.
- extent
ExtentType
Type of extent to be retrieved.
- expansion_factor
float
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_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.