Back to top OpenSVG (c) Veridict AB, www.veridict.com
Edit this page

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:

  • If A is Inside B, then B Cover A.
  • If A is Disjoint from B, then B is Disjoint from A.
  • If A Intersect B, then B Intersect A.
  • If A is Equal to B, then B is Equal to A.

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.