RegionBoundingRectangle
Computes the smallest rectangle containing a region.
Syntax
C++
C#
Python
def RegionBoundingRectangle( inRegion: Region, /, *, inBoundingRectangleFeature: BoundingRectangleFeature = BoundingRectangleFeature.MinimalArea, inReferenceAngle: float = 0.0, inRectangleOrientation: RectangleOrientation = RectangleOrientation.Horizontal, outCenter: Point2D | None = None ) -> ( outBoundingRectangle: Rectangle2D, outLongSide: float, outShortSide: float )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inRegion | Region | Input region | |
![]() |
inBoundingRectangleFeature | BoundingRectangleFeature | BoundingRectangleFeature.MinimalArea | Determines what kind of bounding rectangle will be computed |
![]() |
inReferenceAngle | float | 0.0 | The middle angle of the valid range of the output rectangle's angle |
![]() |
inRectangleOrientation | RectangleOrientation | RectangleOrientation.Horizontal | Orientation of the output rectangle |
![]() |
outBoundingRectangle | Rectangle2D | The smallest bounding rectangle of the input region | |
![]() |
outCenter | Point2D | None | None | Center of the bounding rectangle |
![]() |
outLongSide | float | Length of the bounding rectangle long side | |
![]() |
outShortSide | float | Length of the bounding rectangle short side |


