addIntersections method

void addIntersections(
  1. LineIntersector li,
  2. int segmentIndex,
  3. int geomIndex
)

Adds EdgeIntersections for one or both intersections found for a segment of an edge to the edge intersection list.

Implementation

void addIntersections(LineIntersector li, int segmentIndex, int geomIndex) {
  for (int i = 0; i < li.getIntersectionNum(); i++) {
    addIntersection(li, segmentIndex, geomIndex, i);
  }
}