| 12 | { |
| 13 | |
| 14 | static UVCoord getUV( VertId v, const ThreeVertIds& tri, const ThreeUVCoords& uvs ) |
| 15 | { |
| 16 | for ( int i = 0; i < 3; ++i ) |
| 17 | { |
| 18 | if ( tri[i] != v ) |
| 19 | continue; |
| 20 | return uvs[i]; |
| 21 | } |
| 22 | assert( false ); // no such vertex in the triangle |
| 23 | return {}; |
| 24 | } |
| 25 | |
| 26 | std::optional<UVCoord> findVertexUV( const MeshTopology& topology, VertId v, const TriCornerUVCoords& triCornerUvCoords ) |
| 27 | { |
no outgoing calls
no test coverage detected