-------------------------------------------------------------------------------
| 215 | |
| 216 | // ------------------------------------------------------------------------------- |
| 217 | const 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 | // ------------------------------------------------------------------------------- |
| 240 | aiMesh *MakeSubmesh(const aiMesh *pMesh, const std::vector<unsigned int> &subMeshFaces, unsigned int subFlags) { |