You are here: Start » AVL.NET » AVL.DetectPointSegments(AvlNet.Point2D[], float, int, float?, float, int, AvlNet.Segment2D[], AvlNet.Path[])
AVL.DetectPointSegments(AvlNet.Point2D[], float, int, float?, float, int, AvlNet.Segment2D[], AvlNet.Path[])
Detect points that lie along multiple segments.
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
public static void DetectPointSegments( AvlNet.Point2D[] inPoints, float inMaxDistance, int inMaxRank, float? inMaxRelativeDistance, float inMaxTurnAngle, int inMinPointCount, out AvlNet.Segment2D[] outPointSegments, out AvlNet.Path[] outPaths )
Parameters
- inPoints
- Type: AvlNet.Point2D
Points to connect - inMaxDistance
- Type: System.Single
Maximum distance between connected points - inMaxRank
- Type: System.Int32
Maximum number of segments coming from one point - inMaxRelativeDistance
- Type: System.Nullable<System.Single>
Maximum distance in relation to the shortest distance for a point, or null. - inMaxTurnAngle
- Type: System.Single
Maximum angle between consecutive path segments - inMinPointCount
- Type: System.Int32
Minimum number of points in one path - outPointSegments
- Type: AvlNet.Segment2D
Segments connecting first and last point of each path - outPaths
- Type: AvlNet.Path
Paths of connected points
Errors
| Error type | Description |
|---|---|
| RuntimeError | Assertion failed. |
