Enum PolygonRelation
Enumerates the types of spatial relationships between two polygons, A and B, based on the positions of their vertices.
Namespace: OpenSvg
Assembly: OpenSvg.dll
Syntax
public enum PolygonRelation
Remarks
Note: Border-touching vertices are treated as "neutral" and do not by themselves determine the relationship. The relationship is assessed based on the positions of the other vertices.
The relationships are symmetric, meaning:
Fields
Name | Description |
---|---|
Cover | All vertices of B are within the interior of A. Any border-touching vertices are not considered. |
Disjoint | No part of A overlaps with B. Any border-touching vertices are not considered. |
Equal | Both polygons have the same vertices and are identical in shape and position. |
Inside | All vertices of A are within the interior of B. Any border-touching vertices are not considered. |
Intersect | At least one vertex of A is inside the interior of B, or vice versa. Any border-touching vertices are not considered. |