You are here: Start » AVL.NET » Invoke.SegmentPath
Splits a path into parts that can be approximated as segments or arcs.
| Namespace: | Avl | 
|---|---|
| Assembly: | AvlNet.dll | 
Syntax
C++
C#
public static void SegmentPath ( Avl.Path inPath, float inSmoothingStdDev, float inMaxDeviation, Avl.PathSegmentationMode inSegmentationMode, Optional<float> inMaxArcRadius, List<Avl.Path> outStraight, List<Avl.Path> outArciform, List<Avl.Segment2D> outSegments, List<Avl.Arc2D> outArcs )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]()  | inPath | Avl.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 | Avl.PathSegmentationMode | Whether to use arcs for segmentation. | ||
![]()  | inMaxArcRadius | Atl.Optional<float> | <0.0f, INF> | 10.0f | Maximal radius of an arc fitted to segment. Default value: 10.0f. | 
![]()  | outStraight | System.Collections.Generic.List<Avl.Path> | Parts classified as straight segments. | ||
![]()  | outArciform | System.Collections.Generic.List<Avl.Path> | Parts classified as arciform segments. | ||
![]()  | outSegments | System.Collections.Generic.List<Avl.Segment2D> | Segments corresponding to sections of path from outStraight. | ||
![]()  | outArcs | System.Collections.Generic.List<Avl.Arc2D> | Arcs corresponding to sections of path from outArciform. | 


