HyperspaceExplorer 0.7.1
|
Base class for Extrude classes, providing the actual extrude() function. More...
#include <Extrude.h>
Public Member Functions | |
extrude_base () | |
Create an empty extrude_base object. | |
extrude_base (const VertexData< D > &v) | |
Create an extrude_base object from an already existing object. | |
void | extrude (unsigned d) |
Extrudes an object along a given dimension. |
Base class for Extrude classes, providing the actual extrude() function.
D | Dimension of the vector space we're working in |
void extrude_base< D >::extrude | ( | unsigned | d | ) |
Extrudes an object along a given dimension.
For each point in the vertex array, a copy is made and shifted along the d
axis. Thus, a point becomes a line when extruded along axis 0, a line becomes a square when extruded along axis 1, and so on. A circle becomes a cylinder when extruded along axis 2, and similarly with all kinds of objects. You get the idea.
d | The new dimension into which the object is extruded |
References VertexData< D >::dimension(), Realm::extruded(), std::vector< _Tp, _Alloc >::push_back(), VertexData< D >::raw_vertices(), VertexData< D >::realm(), and std::vector< _Tp, _Alloc >::size().