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


