You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Fitting » AVL.FitSegmentToRegion
Approximates a region with a segment using selected outliers suppression method.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void FitSegmentToRegion ( AvlNet.Region inRegion, AvlNet.RegionSegmentFittingMethod inMethod, out AvlNet.Segment2D outSegment )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inRegion | AvlNet.Region | Input region. | |||
inMethod | AvlNet.RegionSegmentFittingMethod | ||||
outSegment | AvlNet.Segment2D |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Degenerate convex hull on input in FitSegmentToRegion. |
DomainError | Empty region on input in FitSegmentToRegion. |