You are here: Start » FIL.NET » FIL.SegmentPath
Splits a path into parts that can be approximated as segments or arcs.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void SegmentPath ( FilNet.Path inPath, float inSmoothingStdDev, float inMaxDeviation, FilNet.PathSegmentationMode inSegmentationMode, float? inMaxArcRadius, IList<FilNet.Path> outStraight, IList<FilNet.Path> outArciform, IList<FilNet.Segment2D> outSegments, IList<FilNet.Arc2D> outArcs )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inPath | FilNet.Path | Path to be segmented. | ||
![]() | inSmoothingStdDev | float | <0.0f, INF> | Standard deviation used for initial gaussian smoothing of the segmented path. | |
![]() | inMaxDeviation | float | <0.0f, INF> | 0.5f | Maximal distance between any point of a classified segment to the abstract shape. Default value: 0.5f. |
![]() | inSegmentationMode | FilNet.PathSegmentationMode | Whether to use arcs for segmentation. | ||
![]() | inMaxArcRadius | float? | <0.0f, INF> | 10.0f | Maximal radius of an arc fitted to segment. Default value: 10.0f. |
![]() | outStraight | System.Collections.Generic.IList<FilNet.Path> | Parts classified as straight segments. | ||
![]() | outArciform | System.Collections.Generic.IList<FilNet.Path> | Parts classified as arciform segments. | ||
![]() | outSegments | System.Collections.Generic.IList<FilNet.Segment2D> | Segments corresponding to sections of path from outStraight. | ||
![]() | outArcs | System.Collections.Generic.IList<FilNet.Arc2D> | Arcs corresponding to sections of path from outArciform. |
Description
The operation segments the inPath into parts of preferably simple shape. Each of the resulting parts is classified as one of the following:
- Straight section - in which case it is returned in outStraight output array
- Arciform section - in which case it is returned in outArciform output array
The operation guarantees that the maximal distance from any of the resulting path section to the corresponding abstract shape (line segment or circular arc) is less than inMaxDeviation.
Examples
![]() |
![]() |
![]() |
The resulting outStraight array (some of the paths in the picture have common ends but in fact each straight part is a separate path). |
The resulting outArciform array. |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty path on input in SegmentPath. |