MAPS-TFSS: Manipulating And Perceiving Simultaneously - Tactile Force Sensor Simulator

Classes | Typedefs | Functions

Utils::Model3D Namespace Reference

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< MeshReadOffFile (const char *filename)
 Reads a .off file and produces a Mesh.

Detailed Description

Data types for representing 3D models.


Typedef Documentation

Polygon.

Represents a single face of a polygonal mesh

Author:
Zachary Pezzementi

Polygonal mesh.

Author:
Zachary Pezzementi

Polygon vertex.

Author:
Zachary Pezzementi

Function Documentation

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.

Author:
Zachary Pezzementi
boost::shared_ptr< Mesh > Utils::Model3D::ReadOffFile ( const char *  filename  ) 

Reads a .off file and produces a Mesh.

Author:
Zachary Pezzementi