CreatePolygonRegion


Creates a polygonal region corresponding to a given closed path.

Syntax

C++
Python
 
def CreatePolygonRegion(
	inPolygon: Path,
	inFrameWidth: int,
	inFrameHeight: int,
	outRegion: Region,
	/,
	*,
	inPolygonAlignment: CoordinateSystem2D | None = None,
	outAlignedPolygon: Path | None = None
)
-> None

Parameters

Name Type Range Default Description
Input value inPolygon Path
Input value inPolygonAlignment CoordinateSystem2D | None None Adjusts the polygon to the position of the inspected object
Input value inFrameWidth int 0 - 65535 Width of the created region's frame
Input value inFrameHeight int 0 - 65535 Height of the created region's frame
Output value outRegion Region Output region
Output value outAlignedPolygon Path | None None The input polygon transformed to the absolute coordinate system