CreateRectangleRegion


Creates a region corresponding to a given rectangle.

Syntax

C++
Python
 
def CreateRectangleRegion(
	inRectangle: Rectangle2D,
	inFrameWidth: int,
	inFrameHeight: int,
	outRegion: Region,
	/,
	*,
	inRectangleAlignment: CoordinateSystem2D | None = None,
	outAlignedRectangle: Rectangle2D | None = None
)
-> None

Parameters

Name Type Range Default Description
Input value inRectangle Rectangle2D
Input value inRectangleAlignment CoordinateSystem2D | None None Adjusts the rectangle to the position of the inspected object
Input value inFrameWidth int 0 - 65535 Width of the created region's frame (not to be confused with the width of the rectangle!)
Input value inFrameHeight int 0 - 65535 Height of the created region's frame (not to be confused with the height of the rectangle!)
Output value outRegion Region Output region
Output value outAlignedRectangle Rectangle2D | None None The input rectangle transformed to the absolute coordinate system