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 | |
|---|---|---|---|---|---|
![]() |
inPolygon | Path | |||
![]() |
inPolygonAlignment | CoordinateSystem2D | None | None | Adjusts the polygon to the position of the inspected object | |
![]() |
inFrameWidth | int | 0 - 65535 | Width of the created region's frame | |
![]() |
inFrameHeight | int | 0 - 65535 | Height of the created region's frame | |
![]() |
outRegion | Region | Output region | ||
![]() |
outAlignedPolygon | Path | None | None | The input polygon transformed to the absolute coordinate system |


