The Dirtchamber
A mixed reality testing environment for real-time global illumination algorithms
|
Basic interface of a mesh. More...
#include <mesh.h>
Public Member Functions | |
virtual size_t | num_vertices ()=0 |
Returns the number of vertices of a mesh. | |
virtual size_t | num_faces ()=0 |
Returns the number of faces of a mesh. | |
Public Member Functions inherited from dune::aabb< V > | |
V | center () const |
Returns the center of the bounding-box. | |
V | bb_max () const |
Returns the maximum (upper/right/back) of the bounding-box. | |
V | bb_min () const |
Returns the minimum (lower/left/front) of the bounding-box. | |
virtual void | set_world (const DirectX::XMFLOAT4X4 &world) |
Update the world matrix of this mesh. | |
const DirectX::XMFLOAT4X4 & | world () |
Returns the current world matrix of this mesh. | |
Additional Inherited Members | |
Protected Member Functions inherited from dune::aabb< V > | |
void | init_bb (const V &p) |
Initialize the bounding-box with a first point. More... | |
void | update_bb (const V &p) |
Update the bounding-box with a new point. More... | |
Basic interface of a mesh.
A mesh is a bounding box with functions to determine the number of faces and vertices in it.