RobWorkProject  20.10.1-
Public Member Functions | Public Attributes | List of all members
Model3D::Object3DGeneric::MaterialMapData Struct Reference

Mapping from triangles to materials. More...

#include <Model3D.hpp>

Public Member Functions

 MaterialMapData (std::size_t m, std::size_t sidx, std::size_t s)
 Constructor. More...
 

Public Attributes

std::size_t matId
 material that is used for these triangles
 
std::size_t startIdx
 the start index of the triangles
 
std::size_t size
 number of triangles from startIdx that use this material
 

Detailed Description

Mapping from triangles to materials.

Constructor & Destructor Documentation

◆ MaterialMapData()

MaterialMapData ( std::size_t  m,
std::size_t  sidx,
std::size_t  s 
)
inline

Constructor.

Parameters
m[in] material id.
sidx[in] start index of triangles.
s[in] number of triangles that use the material.

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