CropRegionToQuadrangle


Creates a region from a quadrangular fragment of another one. The quadrangle must be convex.

Syntax

C++
C#
Python
 
def CropRegionToQuadrangle(
	inRegion: Region,
	inQuadrangle: Path,
	outRegion: Region,
	/,
	*,
	inOutputSize: Size | None = None,
	inQuadrangleAlignment: CoordinateSystem2D | None = None,
	outAlignedShape: Path | None = None
)
-> None

Parameters

Name Type Default Description
Input value inRegion Region Input region
Input value inQuadrangle Path A convex quadrangle defining a region to be cropped (points must be clockwise)
Input value inOutputSize Size | None None Width and height of the output region
Input value inQuadrangleAlignment CoordinateSystem2D | None None Adjusts the quadrangle to the position of the inspected object
Output value outRegion Region Output region
Output value outAlignedShape Path | None None The input quadrangle after transformation (in the region coordinates)