computeIntersections method

void computeIntersections(
  1. List edges,
  2. SegmentIntersector si,
  3. bool testAllSegments
)
override

Computes all self-intersections between edges in a set of edges, allowing client to choose whether self-intersections are computed.

@param edges a list of edges to test for intersections @param si the SegmentIntersector to use @param testAllSegments true if self-intersections are to be tested as well

Implementation

void computeIntersections(
    List edges, SegmentIntersector si, bool testAllSegments) {
  if (testAllSegments)
    addEdgesWithSet(edges, null);
  else
    addEdges(edges);
  computeIntersections1(si);
}