pub struct Materials<'a> { /* private fields */ }
Expand description
Materials.
Implementations§
source§impl<'a> Materials<'a>
impl<'a> Materials<'a>
sourcepub fn material_index(
&self,
tris: &TriangleVertices<'a>,
tri_vi: TriangleVertexIndex
) -> Result<MaterialIndex, Error>
pub fn material_index( &self, tris: &TriangleVertices<'a>, tri_vi: TriangleVertexIndex ) -> Result<MaterialIndex, Error>
Returns material index corresponding to the given triangle vertex index.