Struct SegmentPolygonRelationship

Reduced topological relationship of a closed segment to a polygon.

struct SegmentPolygonRelationship;

Each field is an existential fact over the complete closed segment.

No contact counts, ordering, coordinates, contacted-ring identity, clipping geometry, or application-specific policy are retained.

SegmentPolygonRelationship.init contains four false facts. A successful classification of a finite segment against a valid polygon always has at least one of hasExterior, hasBoundary, or hasInterior set.

Fields

NameTypeDescription
hasBoundary boolTrue when at least one segment point lies on the polygon boundary.
hasBoundaryOverlap boolTrue when a positive-length subsegment lies on the polygon boundary.
hasExterior boolTrue when at least one segment point lies in the polygon exterior.
hasInterior boolTrue when at least one segment point lies in the polygon interior.