| 44 | namespace TriangulationHelpers |
| 45 | { |
| 46 | int cycleNext( const std::vector<VertId>& neighbors, int i ) |
| 47 | { |
| 48 | for ( ;;) |
| 49 | { |
| 50 | ++i; |
| 51 | if ( i == neighbors.size() ) |
| 52 | i = 0; |
| 53 | if ( neighbors[i].valid() ) |
| 54 | return i; |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | int cyclePrev( const std::vector<VertId>& neighbors, int i ) |
| 59 | { |
no test coverage detected