![]() |
CMSC23740 Common Code Library
Support code for CS23740 programming projects
|
A model from an OBJ file. More...
#include <obj.hpp>
Public Member Functions | |
| Model (std::string filename) | |
| ~Model () | |
| const cs237::AABBf_t & | bounds () const |
| the model's axis-aligned bounding box | |
| int | numMaterials () const |
| the number of materials associated with this model | |
| const OBJ::Material & | material (int i) const |
| get a material | |
| int | numGroups () const |
| the number of groups in this model | |
| const OBJ::Group & | group (int i) const |
| get a group by index | |
| std::vector< OBJ::Group >::const_iterator | beginGroups () const |
| iterator for looping over the groups in the model | |
| std::vector< OBJ::Group >::const_iterator | endGroups () const |
| terminator for looping over the groups in the model | |
A model from an OBJ file.
| OBJ::Model::Model | ( | std::string | filename | ) |
| OBJ::Model::~Model | ( | ) |
|
inline |
iterator for looping over the groups in the model
|
inline |
the model's axis-aligned bounding box
|
inline |
terminator for looping over the groups in the model
|
inline |
get a group by index
|
inline |
get a material
|
inline |
the number of groups in this model
|
inline |
the number of materials associated with this model