S2VertexModel

Defines whether shapes are considered to contain their vertices. Note that these definitions differ from the ones used by S2BooleanOperation.

- In the OPEN model, no shapes contain their vertices (not even points). Therefore Contains(S2Point) returns true if and only if the point is in the interior of some polygon.

- In the SEMI_OPEN model, polygon point containment is defined such that if several polygons tile the region around a vertex, then exactly one of those polygons contains that vertex. Points and polylines still do not contain any vertices.

- In the CLOSED model, all shapes contain their vertices (including points and polylines).

Note that points other than vertices are never contained by polylines. If you want need this behavior, use S2ClosestEdgeQuery::IsDistanceLess() with a suitable distance threshold instead.

Values

ValueMeaning
OPEN
SEMI_OPEN
CLOSED

Meta