Skip to content

raisin::assimp::AsyncModelLoadResult ​

struct · #include <rayrai/AssimpMeshLoader.hpp>

Assimp import produced by loadModelSceneAsync(), before GL resources exist.

Public attributes ​

path ​

cpp
std::string path

Model file path.

directory ​

cpp
std::string directory

Directory used to resolve relative texture paths.

error ​

cpp
std::string error

Import error; scene is null when set.

unsupportedGltfExtensionsNote ​

cpp
std::string unsupportedGltfExtensionsNote

Note appended to every mesh's Material::importReport for unsupported glTF extensions.

gltfBaseColorTextureFallbacks ​

cpp
std::vector<std::string> gltfBaseColorTextureFallbacks

Per-material glTF base-color texture paths.

importer ​

cpp
std::shared_ptr<Assimp::Importer> importer

Owns scene.

scene ​

cpp
const aiScene *scene

Imported scene, or null on failure.

fallback ​

cpp
FallbackMaterial fallback

OBJ .mtl fallback.

stlDiffuseAlphaDefaultsOpaque ​

cpp
bool stlDiffuseAlphaDefaultsOpaque

Binary STL whose header leaves color alpha undefined; diffuse alpha is forced to 1.

sourceFiles ​

cpp
std::vector<ModelSourceFile> sourceFiles

The model and every other file the import read (glTF buffers, an OBJ material library, ...), as they were when read.

texturePrefetch ​

cpp
std::shared_ptr<void> texturePrefetch

Background decodes of the texture files the materials reference, started by the import; finishing the import uploads them, and this drops the rest.

geometry ​

cpp
std::shared_ptr<ImportedGeometry> geometry

The meshes the scene's nodes draw, in the order the model's meshes are built, with what the import measured of their vertices. Internal.

RaiSim — physics for robotics and AI.