Lagrange
|
Options used when loading a mesh or a scene. More...
#include <lagrange/io/types.h>
Public Member Functions | |
LoadOptions (LoadOptions &&)=default | |
LoadOptions & | operator= (LoadOptions &&)=default |
LoadOptions (const LoadOptions &)=default | |
LoadOptions & | operator= (const LoadOptions &)=default |
Public Attributes | |
bool | load_object_id = true |
Load object ids as facet attribute. | |
LA_IGNORE_DEPRECATION_WARNING_END bool | triangulate = false |
Triangulate any polygonal facet with > 3 vertices. | |
bool | load_normals = true |
Load vertex normals. | |
bool | load_tangents = true |
Load tangents and bitangents. | |
bool | load_uvs = true |
Load texture coordinates. | |
bool | load_weights = true |
Load skinning weights attributes (joints id and weight). | |
bool | load_materials = true |
Load material ids as facet attribute. | |
bool | load_vertex_colors = true |
Load vertex colors as vertex attribute. | |
bool | load_object_ids = true |
Load object ids as facet attribute. | |
bool | load_images = true |
Load external images. | |
bool | stitch_vertices = false |
Stitch duplicate boundary vertices together when loading file formats such as glTF. | |
fs::path | search_path |
Search path for related files, such as .mtl, .bin, or image textures. More... | |
std::vector< scene::UserDataConverter * > | extension_converters |
Options used when loading a mesh or a scene.
Note that not all options are supported for all backends or filetypes.
fs::path search_path |
Search path for related files, such as .mtl, .bin, or image textures.
By default, searches the same folder as the provided filename.