HyperspaceExplorer 0.7.1
Public Member Functions
Torate< D, Dmin, Dmax > Class Template Reference

A class template to execute torate actions on an object. More...

#include <Torate.h>

List of all members.

Public Member Functions

 Torate (const VertexData< D > &v)
 Create a Torate object from an already existing object.

Detailed Description

template<unsigned D, unsigned Dmin, unsigned Dmax>
class Torate< D, Dmin, Dmax >

A class template to execute torate actions on an object.

The vertex array of the object is torateed into a set of consecutive dimensions.

As I find the concept hard to explain in words, let me give a few examples to illustrate the idea:

A line in four-space. A point is extruded along dimension 0 (x ).

 Torate<4, 1, 1> triangle(line); 

An equilateral triangle in the xy -plane. The line along x is torateed into the y dimension.

 Torate<4, 2, 2> tetrahedron1(triangle); 

Create a tetrahedron from an equilateral triangle by torateing along the z axis.

 Torate<4, 1, 2> tetrahedron2(line); 

Create another tetrahedron from a line by torateing it into the dimensions 1 to 2, ie. along y and z

 Extrude<4, 0, 1> square;
 Torate<4, 2, 2> pyramid(square); 

A four-sided pyramid is created by torateing a square along the z axis.

 Torate<4, 1, 3> pentachoron(line); 

A four-dimensional simplex, a pentachoron, is created by torateing a line three times.

Template Parameters:
DDimension of the vector space we're working in
DminFirst of the set of dimensions being torateed into
DmaxLast of the set of dimensions being torateed into
Author:
Helge Preuss <lene.preuss@gmail.com>

Constructor & Destructor Documentation

template<unsigned D, unsigned Dmin, unsigned Dmax>
Torate< D, Dmin, Dmax >::Torate ( const VertexData< D > &  v) [inline]

Create a Torate object from an already existing object.

Todo:
Guard against bad template parameters:

- Dmin >= Dmax

  • Dmin or Dmax >= D
  • Dmin or Dmax >= vertex_data::_dimension
  • vertex_data::_dimension == 0

The documentation for this class was generated from the following file:
 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