| 404 | //------------------------------------------------------------------------------ |
| 405 | |
| 406 | PolyPt* InsertPolyPtBetween(PolyPt* p1, PolyPt* p2, const IntPoint pt) |
| 407 | { |
| 408 | PolyPt* result = new PolyPt; |
| 409 | result->pt = pt; |
| 410 | result->isHole = p1->isHole; |
| 411 | if (p2 == p1->next) |
| 412 | { |
| 413 | p1->next = result; |
| 414 | p2->prev = result; |
| 415 | result->next = p2; |
| 416 | result->prev = p1; |
| 417 | } else |
| 418 | { |
| 419 | p2->next = result; |
| 420 | p1->prev = result; |
| 421 | result->next = p1; |
| 422 | result->prev = p2; |
| 423 | } |
| 424 | return result; |
| 425 | } |
| 426 | |
| 427 | //------------------------------------------------------------------------------ |
| 428 | // ClipperBase class methods ... |