| 357 | //------------------------------------------------------------------------------ |
| 358 | |
| 359 | PolyPt* PolygonBottom(PolyPt* pp) |
| 360 | { |
| 361 | PolyPt* p = pp->next; |
| 362 | PolyPt* result = pp; |
| 363 | while (p != pp) |
| 364 | { |
| 365 | if (p->pt.Y > result->pt.Y) result = p; |
| 366 | else if (p->pt.Y == result->pt.Y && p->pt.X < result->pt.X) result = p; |
| 367 | p = p->next; |
| 368 | } |
| 369 | return result; |
| 370 | } |
| 371 | //------------------------------------------------------------------------------ |
| 372 | |
| 373 | bool FindSegment(PolyPt* &pp, const IntPoint pt1, const IntPoint pt2) |