| 476 | } |
| 477 | |
| 478 | inline void SetOwner(OutRec* outrec, OutRec* new_owner) |
| 479 | { |
| 480 | //precondition1: new_owner is never null |
| 481 | new_owner->owner = GetRealOutRec(new_owner->owner); |
| 482 | OutRec* tmp = new_owner; |
| 483 | while (tmp && tmp != outrec) tmp = tmp->owner; |
| 484 | if (tmp) new_owner->owner = outrec->owner; |
| 485 | outrec->owner = new_owner; |
| 486 | } |
| 487 | |
| 488 | static PointInPolygonResult PointInOpPolygon(const Point64& pt, OutPt* op) |
| 489 | { |
no test coverage detected