ProfileSections


Finds subprofiles whose values fall into the specified range.

Applications:It may also be considered profile thresholding.

Syntax

C++
C#
Python
 
def ProfileSections(
	inProfile: Profile,
	inMinSectionWidth: float,
	inMinGapWidth: float,
	/,
	*,
	inRange: Range | None = None,
	inMinValue: float | None = 5.0,
	inMaxValue: float | None = None,
	inMaxSectionWidth: float | None = None,
	inMaxGapWidth: float | None = None,
	inMaxInnerGapWidth: float | None = 0.0
)
-> (
	outSections: list[ProfileSection],
	outBoundingSection: ProfileSection | None
)

Parameters

Name Type Range Default Description
Input value inProfile Profile Input profile
Input value inRange Range | None None
Input value inMinValue float | None 5.0 Lower bound for profile values
Input value inMaxValue float | None None Upper bound for profile values
Input value inMinSectionWidth float 0.0 - Minimal width of the found section
Input value inMaxSectionWidth float | None 0.0 - None Maximal width of the found section
Input value inMinGapWidth float 0.0 - Minimal distance between consecutive sections
Input value inMaxGapWidth float | None 0.0 - None Maximal distance between consecutive sections
Input value inMaxInnerGapWidth float | None 0.0 - 0.0 Maximal possible gap width between two sections to join them into one
Output value outSections list[ProfileSection] Output profile sections
Output value outBoundingSection ProfileSection | None The smallest section that contains all outSections