CMSC23700 Common Code Library
Support code for CS23700 programming projects
Loading...
Searching...
No Matches
OBJ::Model Class Reference

A model from an OBJ file. More...

#include <obj.hpp>

Public Member Functions

 Model (std::string filename)
 
 ~Model ()
 
const cs237::AABBf_tbounds () const
 the model's axis-aligned bounding box
 
int numMaterials () const
 the number of materials associated with this model
 
const OBJ::Materialmaterial (int i) const
 get a material
 
int numGroups () const
 the number of groups in this model
 
const OBJ::Groupgroup (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
 

Detailed Description

A model from an OBJ file.

Constructor & Destructor Documentation

◆ Model()

OBJ::Model::Model ( std::string  filename)

create a Model by loading it from the specified OBJ file

Parameters
filenamethe path of the OBJ file to be loaded

◆ ~Model()

OBJ::Model::~Model ( )

Member Function Documentation

◆ beginGroups()

std::vector< OBJ::Group >::const_iterator OBJ::Model::beginGroups ( ) const
inline

iterator for looping over the groups in the model

◆ bounds()

const cs237::AABBf_t & OBJ::Model::bounds ( ) const
inline

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

get a group by index

◆ material()

const OBJ::Material & OBJ::Model::material ( int  i) const
inline

get a 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: