Lagrange
Loading...
Searching...
No Matches
MeshesAndMaterialsResult< Scalar, Index > Struct Template Reference

Result structure for scene to meshes and materials conversion. More...

#include <lagrange/scene/scene_convert.h>

Public Attributes

std::vector< SurfaceMesh< Scalar, Index > > meshes
 List of meshes with transforms applied.
 
std::vector< std::vector< ElementId > > material_ids
 List of material IDs used by each mesh (indices into Scene::materials).
 

Detailed Description

template<typename Scalar, typename Index>
struct lagrange::scene::MeshesAndMaterialsResult< Scalar, Index >

Result structure for scene to meshes and materials conversion.

Template Parameters
ScalarMesh scalar type.
IndexMesh index type.

Member Data Documentation

◆ meshes

template<typename Scalar, typename Index>
std::vector<SurfaceMesh<Scalar, Index> > meshes

List of meshes with transforms applied.

Each mesh carries a material_id facet attribute (see material_id) whose values are global indices into the scene's material list (i.e. the same indexing as Scene::materials and material_ids below). Facets with no associated material are marked with invalid<Index>().

◆ material_ids

template<typename Scalar, typename Index>
std::vector<std::vector<ElementId> > material_ids

List of material IDs used by each mesh (indices into Scene::materials).

This is the set of materials referenced by the corresponding mesh instance; use the per-facet material_id attribute on each mesh to recover the exact facet-to-material assignment.


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