}
private boolean validPatch(Line2D lineA[], Line2D lineB[]) {
int nA = lineA.length;
int nB = lineB.length;
final LineLineIntersection2D intsc = new LineLineIntersection2D();
for (int iA = 0; iA<nA; ++iA) {
for (int iB = 0; iB<nB; ++iB) {
intsc.setValues(lineA[iA],lineB[iB]);
if (!intsc.isCoincident() && (intsc.isBI() || intsc.isIB())) {
return false;
}
}
}
return true;