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
Input value inRegion Region Input region
Input value inMethod RegionSegmentFittingMethod
Output value outSegment Segment2D