You are here: Start » AVL.NET » Function Reference » Region » Region Spatial Transforms » AVL.CropRegionToRectangle
Creates a region from a rectangular fragment of another one.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void CropRegionToRectangle ( AvlNet.Region inRegion, AvlNet.Rectangle2D inRectangle, AvlNet.CoordinateSystem2D? inRectangleAlignment, AvlNet.Region outRegion, NullableValue<AvlNet.Rectangle2D> outAlignedRectangle, NullableValue<AvlNet.CoordinateSystem2D> outOutputAlignment )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inRegion | AvlNet.Region | Input region. | |||
inRectangle | AvlNet.Rectangle2D | Rectangle defining a rotated subregion. | |||
inRectangleAlignment | AvlNet.CoordinateSystem2D? | Adjusts the rectangle to the position of the inspected object. Default value: atl::NIL. | |||
outRegion | AvlNet.Region | Output region. | |||
outAlignedRectangle | AvlNet.NullableValue<AvlNet.Rectangle2D> | Input rectangle after transformation (in the region coordinates). Can be null to skip this parameter calculation. | |||
outOutputAlignment | AvlNet.NullableValue<AvlNet.CoordinateSystem2D> | Alignment of the output region. Can be null to skip this parameter calculation. |
Function Overrides
- CropRegionToRectangle(Region, Rectangle2D, Region)
- CropRegionToRectangle(Region, Rectangle2D, Nullable<CoordinateSystem2D>, Region)
- CropRegionToRectangle(Region, Rectangle2D, Nullable<CoordinateSystem2D>, Region, Rectangle2D, CoordinateSystem2D)