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
Input value inRegion Region Input region
Input value inMinAspectRatio float 0.0 - 0.0 Minimal aspect ratio of found box
Input value inMaxAspectRatio float | None 0.0 - None Maximal aspect ratio of found box (reciprocal of inMinAspectRatio by default)
Input value inMinWidth int 1 - 65535 1 Minimal width of found box
Input value inMaxWidth int | None 1 - 65535 None Maximal width of found box
Input value inMinHeight int 1 - 65535 1 Minimal height of found box
Input value inMaxHeight int | None 1 - 65535 None Maximal height of found box
Output value outBox Box | None Found box with largest area