Lagrange
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Modules Pages
ObjReaderResult< Scalar, Index > Struct Template Reference

Output of the obj mesh loader. More...

#include <lagrange/io/internal/load_obj.h>

Public Attributes

bool success = true
 Whether the load operation was successful.
 
SurfaceMesh< Scalar, Index > mesh
 Aggregated mesh containing all elements in the .obj file. More...
 
std::vector< tinyobj::material_t > materials
 Materials associated with the mesh.
 
std::vector< std::string > names
 Names of each object in the aggregate mesh.
 

Detailed Description

template<typename Scalar, typename Index>
struct lagrange::io::internal::ObjReaderResult< Scalar, Index >

Output of the obj mesh loader.

Template Parameters
ScalarMesh scalar type
IndexMesh index type

Member Data Documentation

◆ mesh

SurfaceMesh<Scalar, Index> mesh

Aggregated mesh containing all elements in the .obj file.

To separate the different entities, split the mesh facets based on object ids.


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