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

Function MappingTypeToString

code/PostProcessing/ProcessHelper.cpp:217–237  ·  view source on GitHub ↗

-------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

215
216// -------------------------------------------------------------------------------
217const char *MappingTypeToString(aiTextureMapping in) {
218 switch (in) {
219 case aiTextureMapping_UV:
220 return "UV";
221 case aiTextureMapping_BOX:
222 return "Box";
223 case aiTextureMapping_SPHERE:
224 return "Sphere";
225 case aiTextureMapping_CYLINDER:
226 return "Cylinder";
227 case aiTextureMapping_PLANE:
228 return "Plane";
229 case aiTextureMapping_OTHER:
230 return "Other";
231 default:
232 break;
233 }
234
235 ai_assert(false);
236 return "BUG";
237}
238
239// -------------------------------------------------------------------------------
240aiMesh *MakeSubmesh(const aiMesh *pMesh, const std::vector<unsigned int> &subMeshFaces, unsigned int subFlags) {

Callers 1

ExecuteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected