HyperspaceExplorer 0.7.1
Public Types | Public Member Functions | Static Private Member Functions | Private Attributes
FacePolygon< D, N_vertex > Class Template Reference

Defines a surface element in D -space. More...

#include <FacePolygon.h>

Collaboration diagram for FacePolygon< D, N_vertex >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef VecMath::Vector< D > vertex_type
 The type of the D -dimensional vertices.
typedef const vertex_typevertex_ptr_type
 Pointer to vertex_type.

Public Member Functions

 FacePolygon ()
 Construct an empty SurfaceType.
 FacePolygon (const VecMath::MultiDimensionalVector< vertex_type, 1 > &original_container, const vertex_type &v0, const vertex_type &v1, const vertex_type &v2)
 Construct a SurfaceType with a vertex array and three vertices.
 FacePolygon (const VecMath::MultiDimensionalVector< vertex_type, 1 > &original_container, const vertex_type &v0, const vertex_type &v1, const vertex_type &v2, const vertex_type &v3)
 Construct a SurfaceType with a vertex array and four vertices.
const vertex_ptr_typeoperator[] (unsigned i) const
 Returns the i -th vertex.
unsigned index (unsigned i) const
 Returns the i -th index into the vertices array.
bool operator== (const FacePolygon< D, 4 > &other) const
 Preliminary version, only for N_vertex = 4.
void print ()
 Debugging output.

Static Private Member Functions

static unsigned index_of (const vertex_type &x, const VecMath::MultiDimensionalVector< vertex_type, 1 > &original_container)
 a version of std::find() that returns an index instead of an iterator

Private Attributes

vertex_ptr_type _vertices [N_vertex]
 Array of vertices the Surface consists of.
unsigned _indices [N_vertex]
 Array of indices pointing into _vertices.

Detailed Description

template<unsigned D, unsigned N_vertex>
class FacePolygon< D, N_vertex >

Defines a surface element in D -space.

Template Parameters:
DDimension of vector space the surface is defined in.
N_vertexNumber of vertices per surface element / polygon.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends

Generated on Mon Apr 9 2012 20:25:18 for HyperspaceExplorer 0.7.1 by doxygen 1.7.4  -  Hosted bySourceForge.net Logo