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
Input value inPoints list[Point2D] Points to connect
Input value inMaxDistance float 0.0 - 10.0 Maximum distance between connected points
Input value inMaxRank int 1 - 4 Maximum number of neighbour candidates considered when joining points
Input value inMaxRelativeDistance float | None 1.0 - 2.0 Maximum distance in relation to the shortest distance for a point
Input value inMaxTurnAngle float 0.0 - 90.0 5.0 Maximum angle between consecutive path segments
Input value inMinPointCount int 2 - 3 Minimum number of points in one path
Output value outPointSegments list[Segment2D] Segments connecting first and last point of each path
Output value outPaths list[Path] Paths of connected points