You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Relations » AVL.CreatePointGraph
Creates a graph of points that lie close to each other.
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void CreatePointGraph ( IList<AvlNet.Point2D> inPoints, int inMaxRank, float inMinDistance, IList<List<int>> outGraph, IList<List<float>> outDistances )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() | inPoints | System.Collections.Generic.IList<AvlNet.Point2D> | Input points. | ||
![]() | inMaxRank | int | <1, INF> | 8 | Maximum connections going out of one point. Default value: 8. |
![]() | inMinDistance | float | <0.0f, INF> | 0.0f | Minimum distance between adjacent point in the graph. Default value: 0.0f. |
![]() | outGraph | System.Collections.Generic.IList<System.Collections.Generic.List<int>> | Graph of points (adjacency list). | ||
![]() | outDistances | System.Collections.Generic.IList<System.Collections.Generic.List<float>> | Distances between adjacent points in the graph. |
Errors
List of possible exceptions:
| Error type | Description |
|---|---|
| DomainError | Minimum distance is greater than maximum distance in CreatePointGraph. |
Function Overrides
- CreatePointGraph(IList<Point2D>, Int32, Single, Nullable<Single>, Nullable<Single>, IList<List<Int32>>, IList<List<Single>>)
- CreatePointGraph(IList<Point2D>, Int32, Single, Nullable<Single>, Nullable<Single>, IList<List<Int32>>, IList<List<Single>>, IList<Segment2D>)


