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

Function create_embedded_textures_folder

code/Pbrt/PbrtExporter.cpp:108–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106} // end of namespace Assimp
107
108static void create_embedded_textures_folder(const aiScene *scene, IOSystem *pIOSystem, const std::string &texturesPath) {
109 if (scene->mNumTextures > 0) {
110 if (!pIOSystem->Exists(texturesPath)) {
111 if (!pIOSystem->CreateDirectory(texturesPath)) {
112 throw DeadlyExportError("Could not create textures/ directory.");
113 }
114 }
115 }
116}
117
118PbrtExporter::PbrtExporter(
119 const aiScene *pScene, IOSystem *pIOSystem,

Callers 1

PbrtExporterMethod · 0.85

Calls 2

ExistsMethod · 0.45
CreateDirectoryMethod · 0.45

Tested by

no test coverage detected