s2.shapeutil.visit_crossing_edge_pairs

Undocumented in source.

Members

Aliases

EdgePairVisitor
alias EdgePairVisitor = bool delegate(in ShapeEdge a, in ShapeEdge b, bool isInterior)

A function that is called with pairs of crossing edges. The function may return false in order to request that the algorithm should be terminated, i.e. no further crossings are needed.

ShapeEdgeVector
alias ShapeEdgeVector = ShapeEdge[]
Undocumented in source.

Classes

IndexCrosser
class IndexCrosser
Undocumented in source.

Functions

findSelfIntersection
bool findSelfIntersection(S2ShapeIndex index, S2Error error)
Undocumented in source. Be warned that the author may not have intended to support it.
visitCrossingEdgePairs
bool visitCrossingEdgePairs(S2ShapeIndex index, CrossingType type, EdgePairVisitor visitor)

Visits all pairs of crossing edges in the given S2ShapeIndex, terminating early if the given EdgePairVisitor function returns false (in which case VisitCrossings returns false as well). "type" indicates whether all crossings should be visited, or only interior crossings.

visitCrossingEdgePairs
bool visitCrossingEdgePairs(S2ShapeIndex a_index, S2ShapeIndex b_index, CrossingType type, EdgePairVisitor visitor)

Like the above, but visits all pairs of crossing edges where one edge comes from each S2ShapeIndex.

Static functions

visitCrossings
bool visitCrossings(S2ShapeIndex index, CrossingType type, bool need_adjacent, EdgePairVisitor visitor)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta