cgv
Loading...
Searching...
No Matches
cgv::media::mesh::face_info Struct Reference

simple structure to describe a face More...

#include <obj_loader.h>

Public Member Functions

 face_info (unsigned _nr=0, unsigned _vi0=0, int _ti0=-1, int _ni0=-1, unsigned gi=-1, unsigned mi=-1)
 construct face info
 

Public Attributes

unsigned degree
 degree of face
 
unsigned first_vertex_index
 index into vertex index array
 
int first_texcoord_index
 index into texcoord index array or -1 if not specified
 
int first_normal_index
 index into normal index array or -1 if not specified
 
int group_index
 index of group to which the face belongs
 
int material_index
 material index to which the face belongs
 

Detailed Description

simple structure to describe a face

Definition at line 15 of file obj_loader.h.

Constructor & Destructor Documentation

◆ face_info()

cgv::media::mesh::face_info::face_info ( unsigned  _nr = 0,
unsigned  _vi0 = 0,
int  _ti0 = -1,
int  _ni0 = -1,
unsigned  gi = -1,
unsigned  mi = -1 
)

construct face info

Definition at line 26 of file obj_loader.cxx.

Member Data Documentation

◆ degree

unsigned cgv::media::mesh::face_info::degree

degree of face

Definition at line 18 of file obj_loader.h.

◆ first_normal_index

int cgv::media::mesh::face_info::first_normal_index

index into normal index array or -1 if not specified

Definition at line 24 of file obj_loader.h.

◆ first_texcoord_index

int cgv::media::mesh::face_info::first_texcoord_index

index into texcoord index array or -1 if not specified

Definition at line 22 of file obj_loader.h.

◆ first_vertex_index

unsigned cgv::media::mesh::face_info::first_vertex_index

index into vertex index array

Definition at line 20 of file obj_loader.h.

◆ group_index

int cgv::media::mesh::face_info::group_index

index of group to which the face belongs

Definition at line 26 of file obj_loader.h.

◆ material_index

int cgv::media::mesh::face_info::material_index

material index to which the face belongs

Definition at line 28 of file obj_loader.h.


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