FitSegmentToRegion
Approximates a region with a segment using selected outliers suppression method.
Applications:Finding a locally optimal segment. Good enough when the number of outliers is small.
Syntax
C++
C#
Python
def FitSegmentToRegion(
inRegion: Region,
inMethod: RegionSegmentFittingMethod,
/
)
-> outSegment: Segment2D
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inRegion | Region | Input region | |
![]() |
inMethod | RegionSegmentFittingMethod | ||
![]() |
outSegment | Segment2D |


