hasBadOutputIntersection method

bool hasBadOutputIntersection(
  1. LineSegment candidateSeg
)

Implementation

bool hasBadOutputIntersection(LineSegment candidateSeg) {
  List<dynamic> querySegs = outputIndex.query(candidateSeg);
  for (var segment in querySegs) {
    LineSegment querySeg = segment;
    if (hasInvalidIntersection(querySeg, candidateSeg)) {
      return true;
    }
  }
  return false;
}