Lagrange
MeshLoaderParams Struct Reference

Public Attributes

bool triangulate = false
 When loading a mesh with mixed facet sizes, this parameter controls whether the polygonal faces will be triangulated, or left as is and padded with INVALID. More...
 
bool normalize = false
 Normalize each object to a unit box around the origin.
 
bool load_normals = true
 
bool load_uvs = true
 
bool load_materials = true
 
bool as_one_mesh = false
 Combines individual objects into a single mesh. Result contains a vector of size 1.
 

Member Data Documentation

◆ triangulate

bool triangulate = false

When loading a mesh with mixed facet sizes, this parameter controls whether the polygonal faces will be triangulated, or left as is and padded with INVALID.

Note that if the mesh has a compile-time face size, and cannot accommodate the maximum face size of the input mesh, then it will be triangulated as well. If the input mesh has constant face size (e.g. a quad mesh), and the mesh type can accommodate such facet type, then faces will also not be triangulated, regardless of this parameter value.


The documentation for this struct was generated from the following file: