DetectPointSegments
Detect points that lie along multiple segments.
Syntax
C++
C#
Python
def DetectPointSegments( inPoints: list[Point2D], /, *, inMaxDistance: float = 10.0, inMaxRank: int = 4, inMaxRelativeDistance: float | None = 2.0, inMaxTurnAngle: float = 5.0, inMinPointCount: int = 3 ) -> ( outPointSegments: list[Segment2D], outPaths: list[Path] )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inPoints | list[Point2D] | Points to connect | ||
![]() |
inMaxDistance | float | 0.0 - ![]() |
10.0 | Maximum distance between connected points |
![]() |
inMaxRank | int | 1 - ![]() |
4 | Maximum number of neighbour candidates considered when joining points |
![]() |
inMaxRelativeDistance | float | None | 1.0 - ![]() |
2.0 | Maximum distance in relation to the shortest distance for a point |
![]() |
inMaxTurnAngle | float | 0.0 - 90.0 | 5.0 | Maximum angle between consecutive path segments |
![]() |
inMinPointCount | int | 2 - ![]() |
3 | Minimum number of points in one path |
![]() |
outPointSegments | list[Segment2D] | Segments connecting first and last point of each path | ||
![]() |
outPaths | list[Path] | Paths of connected points |



