|
HyperspaceExplorer 0.7.1
|
Defines a surface element in D -space.
More...
#include <FacePolygon.h>

Public Types | |
| typedef VecMath::Vector< D > | vertex_type |
The type of the D -dimensional vertices. | |
| typedef const vertex_type * | vertex_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_type & | operator[] (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. | |
Defines a surface element in D -space.
| D | Dimension of vector space the surface is defined in. |
| N_vertex | Number of vertices per surface element / polygon. |
1.7.4
-
Hosted by