You are here: Start » AVL.NET » AVL.CreatePointGraph Method

AVL.CreatePointGraph Method

Creates a graph of points that lay close to each other.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void CreatePointGraph(
	AvlNet.Point2D[] inPoints,
	int inMaxRank,
	out int[][] outGraph,
	out float[][] outDistances,
	out AvlNet.Segment2D[] diagSegments
)

Parameters

Name Type Range Default Description
inPointsAvlNet.Point2DInput points.
inMaxRankint<1, INF>8Maximum connections going out of one point. Default value: 8.
outGraphintGraph of points (adjacency list).
outDistancesfloatDistances between adjacent points in the graph.
diagSegmentsAvlNet.Segment2DGraph edges, useful for visualization.

See also