Back to FabImage Library website

You are here: Start » Function Reference » Path » Path Features » PathSelfIntersections

PathSelfIntersections


Header: FIL.h
Namespace: fil
Module: FoundationPro

Checks if a path has any self-intersections and computes all of them.

Syntax

C++
C#
 
void fil::PathSelfIntersections
(
	const fil::Path& inPath,
	ftl::Array<fil::Point2D>& outSelfIntersections,
	ftl::Optional<ftl::Array<int>&> outFirstSegmentIndices = ftl::NIL,
	ftl::Optional<ftl::Array<int>&> outSecondSegmentIndices = ftl::NIL,
	ftl::Optional<bool&> outIsSelfIntersecting = ftl::NIL
)

Parameters

Name Type Default Description
Input value
inPath const Path& Input path
Output value
outSelfIntersections Array<Point2D>&
Output value
outFirstSegmentIndices Optional<Array<int>&> NIL First indices of the segments of the path which generate found intersection points
Output value
outSecondSegmentIndices Optional<Array<int>&> NIL Second indices of the segments of the path which generate found intersection points
Output value
outIsSelfIntersecting Optional<bool&> NIL

Optional Outputs

The computation of following outputs can be switched off by passing value ftl::NIL to these parameters: outFirstSegmentIndices, outSecondSegmentIndices, outIsSelfIntersecting.

Read more about Optional Outputs.