SegmentArrayIntersections


Computes a common points or segment of any segments from the set.

Syntax

C++
Python
 
def SegmentArrayIntersections(
	inSegments: list[Segment2D],
	/
)
-> (
	outIntersectionPoints: list[Point2D],
	outFirstIntersectionIndices: list[int],
	outSecondIntersectionIndices: list[int],
	outOverlapSegments: list[Segment2D],
	outFirstOverlapIndices: list[int],
	outSecondOverlapIndices: list[int]
)

Parameters

Name Type Default Description
Input value inSegments list[Segment2D] Input segments
Output value outIntersectionPoints list[Point2D] Intersection points
Output value outFirstIntersectionIndices list[int] First indices of the input segments which corresponds to the intersection points
Output value outSecondIntersectionIndices list[int] Second indices of the input segments which corresponds to the intersection points
Output value outOverlapSegments list[Segment2D] Overlap segments
Output value outFirstOverlapIndices list[int] First indices of the input segments which corresponds to the overlap segments
Output value outSecondOverlapIndices list[int] Second indices of the input segments which corresponds to the overlap segments

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.