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

Public Member Functions | Public Attributes

Utils::Model3D::Face Struct Reference

Polygon. More...

#include <Model3DTypes.hpp>

Collaboration diagram for Utils::Model3D::Face:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

Polygon.

Represents a single face of a polygonal mesh

Author:
Zachary Pezzementi

Definition at line 79 of file Model3DTypes.hpp.


Member Function Documentation

void Utils::Model3D::Face::computeArea (  ) 

Computes the area of the polygon.

Sets area. Requires normal to have been computed beforehand.

Author:
Erion Plaku

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.


Member Data Documentation

Area of polygon.

Definition at line 85 of file Model3DTypes.hpp.

Surface normal.

Definition at line 83 of file Model3DTypes.hpp.

Vertices that define face.

Definition at line 81 of file Model3DTypes.hpp.


The documentation for this struct was generated from the following files: