You are here: Start » AVL.NET » Function Reference » Region » Region Spatial Transforms » AVL.CropRegionToQuadrangle

AVL.CropRegionToQuadrangle

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void CropRegionToQuadrangle
(
	AvlNet.Region inRegion,
	AvlNet.Path inQuadrangle,
	AvlNet.Size? inOutputSize,
	AvlNet.CoordinateSystem2D? inQuadrangleAlignment,
	AvlNet.Region outRegion,
	NullableRef<AvlNet.Path> outAlignedShape
)

Parameters

Name Type Range Default Description
inRegionAvlNet.RegionInput region.
inQuadrangleAvlNet.PathA convex quadrangle defining a region to be cropped (points must be clockwise).
inOutputSizeAvlNet.Size?Width and height of the output region. Default value: atl::NIL.
inQuadrangleAlignmentAvlNet.CoordinateSystem2D?Adjusts the quadrangle to the position of the inspected object. Default value: atl::NIL.
outRegionAvlNet.RegionOutput region.
outAlignedShapeAvlNet.NullableRef<AvlNet.Path>The input quadrangle after transformation (in the region coordinates). Can be null to skip this parameter calculation.

Errors

List of possible exceptions:

Error type Description
DomainError Path given as an argument to CropRegionToQuadrangle is not closed.
DomainError Path given as an argument to CropRegionToQuadrangle should have exactly 4 points.

Function Overrides

See also