Data types for representing 3D models. More...
Classes | |
| struct | Vertex |
| Polygon vertex. More... | |
| struct | Face |
| Polygon. More... | |
| struct | Mesh |
| Polygonal mesh. More... | |
Typedefs | |
| typedef struct Utils::Model3D::Vertex | Vertex |
| Polygon vertex. | |
| typedef struct Utils::Model3D::Face | Face |
| Polygon. | |
| typedef struct Utils::Model3D::Mesh | Mesh |
| Polygonal mesh. | |
Functions | |
| void | getNonblankLine (std::ifstream &ifs, std::string &line, int &lNum) |
| Read a line from file, skipping comments and empty lines. | |
| boost::shared_ptr< Mesh > | ReadOffFile (const char *filename) |
| Reads a .off file and produces a Mesh. | |
Data types for representing 3D models.
| typedef struct Utils::Model3D::Face Utils::Model3D::Face |
Polygon.
Represents a single face of a polygonal mesh
| typedef struct Utils::Model3D::Mesh Utils::Model3D::Mesh |
Polygonal mesh.
| typedef struct Utils::Model3D::Vertex Utils::Model3D::Vertex |
Polygon vertex.
| void Utils::Model3D::getNonblankLine | ( | std::ifstream & | ifs, | |
| std::string & | line, | |||
| int & | lNum | |||
| ) |
Read a line from file, skipping comments and empty lines.
Helper function for ReadOffFile, to keep reading from the file until a line of content is found.