HyperspaceExplorer 0.7.1
Public Member Functions
extrude_base< D > Class Template Reference

Base class for Extrude classes, providing the actual extrude() function. More...

#include <Extrude.h>

Inheritance diagram for extrude_base< D >:
Inheritance graph
[legend]
Collaboration diagram for extrude_base< D >:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

template<unsigned D>
class extrude_base< D >

Base class for Extrude classes, providing the actual extrude() function.

Template Parameters:
DDimension of the vector space we're working in
Author:
Helge Preuss <lene.preuss@gmail.com>

Member Function Documentation

template<unsigned D>
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.

See also:
Extrude for more examples.
Parameters:
dThe 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().

Here is the call graph for this function:


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:17 for HyperspaceExplorer 0.7.1 by doxygen 1.7.4  -  Hosted bySourceForge.net Logo