MCPcopy Create free account
hub / github.com/assimp/assimp / FindEmptyUVChannel

Function FindEmptyUVChannel

code/PostProcessing/ComputeUVMappingProcess.cpp:67–75  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------ Find the first empty UV channel in a mesh

Source from the content-addressed store, hash-verified

65// ------------------------------------------------------------------------------------------------
66// Find the first empty UV channel in a mesh
67inline unsigned int FindEmptyUVChannel(aiMesh *mesh) {
68 for (unsigned int m = 0; m < AI_MAX_NUMBER_OF_TEXTURECOORDS; ++m)
69 if (!mesh->mTextureCoords[m]) {
70 return m;
71 }
72
73 ASSIMP_LOG_ERROR("Unable to compute UV coordinates, no free UV slot found");
74 return UINT_MAX;
75}
76
77// ------------------------------------------------------------------------------------------------
78// Try to remove UV seams

Callers 1

ExecuteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected