// - or (more tricky, see testIntersect2DMeshes11()) that pol1 and pol2 have same orientation but 'this' turns in such
// a way that it attaches to pol2 on an edge in opposite orientation.
// To sort this out, inspect localisation of next edge in pol2 wrt pol1NotSplitted.
- it2.nextLoop();
+ it2.previousLoop();
cur=it2.current();
Node *repr=cur->getPtr()->buildRepresentantOfMySelf();
bool ret=pol1NotSplitted.isInOrOut(repr);
repr->decrRef();
- direction = ret;
+ direction = !ret;
needCleaning = ret; // if true we are in tricky case 2 above, we know that we will produce two consecutive overlapping edges in result
return ret;
}
Node *repr=cur->getPtr()->buildRepresentantOfMySelf();
bool ret=pol1NotSplitted.isInOrOut(repr);
repr->decrRef();
- direction = ret;
+ direction = !ret;
return ret;
}
}