CMSC23700 Common Code Library
Support code for CS23700 programming projects
OBJ::Group Struct Reference

A mesh that corresponds to a group in the obj file. More...

#include <obj.hxx>

Public Attributes

std::string name
 name of this group */ More...
 
int material
 index to material for group (-1 for no material) More...
 
uint32_t nVerts
 the number of vertices in this group. More...
 
uint32_t nIndices
 the number of indices (3 * number of triangles) More...
 
cs237::vec3fverts
 array of nVerts texture coordinates (or nullptr) More...
 
cs237::vec3fnorms
 array of nVerts texture coordinates (or nullptr) More...
 
cs237::vec2ftxtCoords
 array of nVerts texture coordinates (or nullptr) More...
 
uint32_t * indices
 

Detailed Description

A mesh that corresponds to a group in the obj file.

Member Data Documentation

uint32_t* OBJ::Group::indices

array of nIndices element indices that can be used

int OBJ::Group::material

index to material for group (-1 for no material)

std::string OBJ::Group::name

name of this group */

uint32_t OBJ::Group::nIndices

the number of indices (3 * number of triangles)

cs237::vec3f* OBJ::Group::norms

array of nVerts texture coordinates (or nullptr)

uint32_t OBJ::Group::nVerts

the number of vertices in this group.

cs237::vec2f* OBJ::Group::txtCoords

array of nVerts texture coordinates (or nullptr)

cs237::vec3f* OBJ::Group::verts

array of nVerts texture coordinates (or nullptr)


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