Polygon. More...
#include <Model3DTypes.hpp>

Public Member Functions | |
| void | computeArea () |
| Computes the area of the polygon. | |
| unsigned | nVerts () const |
| Get number of vertices. | |
Public Attributes | |
| std::vector< Vertex * > | verts |
| Vertices that define face. | |
| float | normal [3] |
| Surface normal. | |
| double | area |
| Area of polygon. | |
Polygon.
Represents a single face of a polygonal mesh
Definition at line 79 of file Model3DTypes.hpp.
| void Utils::Model3D::Face::computeArea | ( | ) |
Computes the area of the polygon.
Sets area. Requires normal to have been computed beforehand.
Definition at line 28 of file Model3DTypes.cpp.
| unsigned Utils::Model3D::Face::nVerts | ( | ) | const [inline] |
Get number of vertices.
Definition at line 97 of file Model3DTypes.hpp.
| double Utils::Model3D::Face::area |
Area of polygon.
Definition at line 85 of file Model3DTypes.hpp.
| float Utils::Model3D::Face::normal[3] |
Surface normal.
Definition at line 83 of file Model3DTypes.hpp.
| std::vector<Vertex*> Utils::Model3D::Face::verts |
Vertices that define face.
Definition at line 81 of file Model3DTypes.hpp.