Easy3D 3.0.0
Loading...
Searching...
No Matches
ObjMaterialMesh::Part Struct Reference

Tessellated geometry and material properties for one OBJ material group. More...

#include <obj_materials.h>

Public Attributes

std::string name
 Material/group name used when creating the drawable.
 
vec3 diffuse = vec3(1)
 Diffuse color, defaulting to white.
 
std::string texture_file
 Diffuse texture path; empty if no usable map or face UVs are available.
 
std::vector< vec3 > positions
 Tessellated vertex positions.
 
std::vector< vec3 > normals
 
std::vector< vec2 > texcoords
 Tessellated vertex texture coordinates.
 
std::vector< unsigned int > indices
 Triangle indices into the vertex arrays.
 
std::vector< int > source_faces
 Source mesh face ID for each tessellated triangle.
 

Detailed Description

Tessellated geometry and material properties for one OBJ material group.

Member Data Documentation

◆ normals

std::vector<vec3> normals

Tessellated vertex normals.


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