|
Lagrange
|
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). | |
Result structure for scene to meshes and materials conversion.
| Scalar | Mesh scalar type. |
| Index | Mesh index type. |
| 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>().
| 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.