per-contour vertex counts; lets the queue build the initial edge loops independently of coordinate dimension
| 131 | |
| 132 | // per-contour vertex counts; lets the queue build the initial edge loops independently of coordinate dimension |
| 133 | static std::vector<int> getContourSizes( const Contours2f& contours ) |
| 134 | { |
| 135 | std::vector<int> sizes( contours.size() ); |
| 136 | for ( int i = 0; i < int( contours.size() ); ++i ) |
| 137 | sizes[i] = int( contours[i].size() ); |
| 138 | return sizes; |
| 139 | } |
| 140 | |
| 141 | // map an input vertex (its index within the concatenated hole loops) back to its source mesh VertId; |
| 142 | // mirrors the walk in mergeSamePoints_ |
no test coverage detected