RegionInscribedBox
Computes the largest box contained in a region.
Syntax
C++
C#
Python
def RegionInscribedBox( inRegion: Region, /, *, inMinAspectRatio: float = 0.0, inMaxAspectRatio: float | None = None, inMinWidth: int = 1, inMaxWidth: int | None = None, inMinHeight: int = 1, inMaxHeight: int | None = None ) -> outBox: Box | None
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inRegion | Region | Input region | ||
![]() |
inMinAspectRatio | float | 0.0 - ![]() |
0.0 | Minimal aspect ratio of found box |
![]() |
inMaxAspectRatio | float | None | 0.0 - ![]() |
None | Maximal aspect ratio of found box (reciprocal of inMinAspectRatio by default) |
![]() |
inMinWidth | int | 1 - 65535 | 1 | Minimal width of found box |
![]() |
inMaxWidth | int | None | 1 - 65535 | None | Maximal width of found box |
![]() |
inMinHeight | int | 1 - 65535 | 1 | Minimal height of found box |
![]() |
inMaxHeight | int | None | 1 - 65535 | None | Maximal height of found box |
![]() |
outBox | Box | None | Found box with largest area |



