| 142 | } |
| 143 | |
| 144 | static float vertexScore(const VertexScoreTable* table, int cache_position, unsigned int live_triangles) |
| 145 | { |
| 146 | assert(cache_position >= -1 && cache_position < int(kCacheSizeMax)); |
| 147 | |
| 148 | unsigned int live_triangles_clamped = live_triangles < kValenceMax ? live_triangles : kValenceMax; |
| 149 | |
| 150 | return table->cache[1 + cache_position] + table->live[live_triangles_clamped]; |
| 151 | } |
| 152 | |
| 153 | static unsigned int getNextTriangleDeadEnd(unsigned int& input_cursor, const unsigned char* emitted_flags, size_t face_count) |
| 154 | { |
no outgoing calls
no test coverage detected