CreatePointGraph
Creates a graph of points that lie close to each other.
Syntax
C++
C#
Python
def CreatePointGraph( inPoints: list[Point2D], /, *, inMaxRank: int = 8, inMinDistance: float = 0.0, inMaxDistance: float | None = 10.0, inMaxRelativeDistance: float | None = None ) -> ( outGraph: list[ list[int] ], outDistances: list[ list[float] ], diagSegments: list[Segment2D] )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inPoints | list[Point2D] | Input points | ||
![]() |
inMaxRank | int | 1 - ![]() |
8 | Maximum connections going out of one point |
![]() |
inMinDistance | float | 0.0 - ![]() |
0.0 | Minimum distance between adjacent point in the graph |
![]() |
inMaxDistance | float | None | 0.0 - ![]() |
10.0 | Maximum distance between adjacent point in the graph |
![]() |
inMaxRelativeDistance | float | None | 1.0 - ![]() |
None | Maximum distance in relation to the shortest distance for a point |
![]() |
outGraph | list[ list[int] ] | Graph of points (adjacency list) | ||
![]() |
outDistances | list[ list[float] ] | Distances between adjacent points in the graph | ||
![]() |
diagSegments | list[Segment2D] | Graph edges, useful for visualization |




