Back to Aurora Vision Library website
You are here: Start » Function Reference » Path » Polygon Relations » TestPolygonsIntersect
| Header: | AVL.h |
|---|---|
| Namespace: | avl |
| Module: | FoundationLite |
Tests whether two polygons share any common point.
Syntax
C++
C#
Python
void avl::TestPolygonsIntersect ( const avl::Path& inPolygon1, const avl::Path& inPolygon2, bool& outDoIntersect )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inPolygon1 | const Path& | First polygon | |
![]() |
inPolygon2 | const Path& | Second polygon | |
![]() |
outDoIntersect | bool& | True if the polygons share any common point, false otherwise |
Errors
List of possible exceptions:
| Error type | Description |
|---|---|
| DomainError | Degenerate polygon on input (fewer than 3 vertices) in TestPolygonsIntersect. |
| DomainError | Open path on input in TestPolygonsIntersect. |


