HyperspaceExplorer 0.7.1
|
A class template to execute extrusion actions on an object. More...
#include <Extrude.h>
Public Member Functions | |
Extrude () | |
Create an Extrude object from a point. | |
Extrude (const VertexData< D > &v) | |
Create an Extrude object from an already existing object. |
A class template to execute extrusion actions on an object.
The vertex array of the object is extrudeded 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:
Extrude<4, 0, 0> line;
A line in four-space. A point is extruded along dimension 0 (x
).
Extrude<4, 0, 1> square;
A point is extruded into two dimensions, giving a square.
Extrude<4, 2, 2> cube;
The square is extruded into the third dimension to a cube.
Taper<4, 1, 1> triangle(line); Extrude<4, 2, 2> prism;
A line is tapered into a triangle, and then extruded to become a prism.
Extrude<4, 0, 3> tesseract;
Extruding a point i four dimensions gives a hypercube or tesseract.
D | Dimension of the vector space we're working in |
Dmin | First of the set of dimensions being tapered into |
Dmax | Last of the set of dimensions being tapered into |
Extrude< D, Dmin, Dmax >::Extrude | ( | const VertexData< D > & | v | ) | [inline] |