You are here: Start » AVL.NET » AVS.SegmentPath Method
AVS.SegmentPath Method
Splits a path into parts that can be approximated as segments or arcs.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
public static void SegmentPath ( AvlNet.Path inPath, float inSmoothingStdDev, float inMaxDeviation, AvlNet.PathSegmentationMode inSegmentationMode, float? inMaxArcRadius, IList<AvlNet.Path> outStraight, IList<AvlNet.Path> outArciform, IList<AvlNet.Segment2D> outSegments, IList<AvlNet.Arc2D> outArcs )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inPath | AvlNet.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 | AvlNet.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<AvlNet.Path> | Parts classified as straight segments. | |||
outArciform | System.Collections.Generic.IList<AvlNet.Path> | Parts classified as arciform segments. | |||
outSegments | System.Collections.Generic.IList<AvlNet.Segment2D> | Segments corresponding to sections of path from outStraight. | |||
outArcs | System.Collections.Generic.IList<AvlNet.Arc2D> | Arcs corresponding to sections of path from outArciform. |