A model from an OBJ file.
More...
#include <obj.hpp>
A model from an OBJ file.
◆ Model()
OBJ::Model::Model |
( |
std::string |
filename | ) |
|
create a Model by loading it from the specified OBJ file
- Parameters
-
filename | the path of the OBJ file to be loaded |
◆ ~Model()
◆ beginGroups()
std::vector< OBJ::Group >::const_iterator OBJ::Model::beginGroups |
( |
| ) |
const |
|
inline |
iterator for looping over the groups in the model
◆ bounds()
the model's axis-aligned bounding box
◆ endGroups()
std::vector< OBJ::Group >::const_iterator OBJ::Model::endGroups |
( |
| ) |
const |
|
inline |
terminator for looping over the groups in the model
◆ group()
const OBJ::Group & OBJ::Model::group |
( |
int |
i | ) |
const |
|
inline |
◆ material()
◆ numGroups()
int OBJ::Model::numGroups |
( |
| ) |
const |
|
inline |
the number of groups in this model
◆ numMaterials()
int OBJ::Model::numMaterials |
( |
| ) |
const |
|
inline |
the number of materials associated with this model
The documentation for this class was generated from the following file:
- /Users/jhr/Classes/23700/f2023/solutions/cs237-library/include/obj.hpp