hasInvalidIntersection method
Implementation
bool hasInvalidIntersection(LineSegment seg0, LineSegment seg1) {
//-- segments must not be equal
if (seg0.equalsTopo(seg1)) return true;
li.computeIntersection(seg0.p0, seg0.p1, seg1.p0, seg1.p1);
return li.isInteriorIntersection();
}