Back to Aurora Vision Library website
You are here: Start » Function Reference » Path » Path Features » PathSelfIntersections
PathSelfIntersections
Header: | AVL.h |
---|---|
Namespace: | avl |
Module: | FoundationPro |
Checks if a path has any self-intersections and computes all of them.
Syntax
C++
C#
void avl::PathSelfIntersections ( const avl::Path& inPath, atl::Array<avl::Point2D>& outSelfIntersections, atl::Optional<atl::Array<int>&> outFirstSegmentIndices = atl::NIL, atl::Optional<atl::Array<int>&> outSecondSegmentIndices = atl::NIL, atl::Optional<bool&> outIsSelfIntersecting = atl::NIL )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inPath | const Path& | Input path | ||
outSelfIntersections | Array<Point2D>& | |||
outFirstSegmentIndices | Optional<Array<int>&> | NIL | First indices of the segments of the path which generate found intersection points | |
outSecondSegmentIndices | Optional<Array<int>&> | NIL | Second indices of the segments of the path which generate found intersection points | |
outIsSelfIntersecting | Optional<bool&> | NIL |
Optional Outputs
The computation of following outputs can be switched off by passing value atl::NIL
to these parameters: outFirstSegmentIndices, outSecondSegmentIndices, outIsSelfIntersecting.
Read more about Optional Outputs.