| 13 | { |
| 14 | |
| 15 | Contours2f getTestCont1() |
| 16 | { |
| 17 | Contours2f c; |
| 18 | // simple case |
| 19 | c.push_back( { {2.f,1.f},{2.f,4.f},{3.f,4.f},{3.f,1.f},{2.f,1.f} } ); |
| 20 | |
| 21 | // a bit more complicated... |
| 22 | // should be clockwise |
| 23 | //c.push_back( { {0.f,0.f},{1.f,2.f},{2.5f,2.5f},{3.f,4.f},{5.f,5.f} } ); |
| 24 | //c.push_back( { {5.f,5.f},{4.f,3.f},{2.5f,2.5f},{2.f,1.f},{0.f,0.f} } ); |
| 25 | return c; |
| 26 | } |
| 27 | Contours2f getTestCont2() |
| 28 | { |
| 29 | Contours2f c; |