raisin::assimp::AsyncModelLoadResult
struct · #include <rayrai/AssimpMeshLoader.hpp>
Assimp import produced by loadModelSceneAsync(), before GL resources exist.
Public attributes
path
std::string pathModel file path.
directory
std::string directoryDirectory used to resolve relative texture paths.
error
std::string errorImport error; scene is null when set.
unsupportedGltfExtensionsNote
std::string unsupportedGltfExtensionsNoteNote appended to every mesh's Material::importReport for unsupported glTF extensions.
gltfBaseColorTextureFallbacks
std::vector<std::string> gltfBaseColorTextureFallbacksPer-material glTF base-color texture paths.
importer
std::shared_ptr<Assimp::Importer> importerOwns scene.
scene
const aiScene *sceneImported scene, or null on failure.
fallback
FallbackMaterial fallbackOBJ .mtl fallback.
stlDiffuseAlphaDefaultsOpaque
bool stlDiffuseAlphaDefaultsOpaqueBinary STL whose header leaves color alpha undefined; diffuse alpha is forced to 1.
sourceFiles
std::vector<ModelSourceFile> sourceFilesThe model and every other file the import read (glTF buffers, an OBJ material library, ...), as they were when read.
texturePrefetch
std::shared_ptr<void> texturePrefetchBackground decodes of the texture files the materials reference, started by the import; finishing the import uploads them, and this drops the rest.
geometry
std::shared_ptr<ImportedGeometry> geometryThe meshes the scene's nodes draw, in the order the model's meshes are built, with what the import measured of their vertices. Internal.