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 | |
|---|---|---|---|---|---|
![]() |
inProfile | Profile | Input profile | ||
![]() |
inRange | Range | None | None | ||
![]() |
inMinValue | float | None | 5.0 | Lower bound for profile values | |
![]() |
inMaxValue | float | None | None | Upper bound for profile values | |
![]() |
inMinSectionWidth | float | 0.0 - ![]() |
Minimal width of the found section | |
![]() |
inMaxSectionWidth | float | None | 0.0 - ![]() |
None | Maximal width of the found section |
![]() |
inMinGapWidth | float | 0.0 - ![]() |
Minimal distance between consecutive sections | |
![]() |
inMaxGapWidth | float | None | 0.0 - ![]() |
None | Maximal distance between consecutive sections |
![]() |
inMaxInnerGapWidth | float | None | 0.0 - ![]() |
0.0 | Maximal possible gap width between two sections to join them into one |
![]() |
outSections | list[ProfileSection] | Output profile sections | ||
![]() |
outBoundingSection | ProfileSection | None | The smallest section that contains all outSections |



