renderstack::shapes::octahedron Class Reference

#include <polymesh.hpp>

Inherits renderstack::shapes::polymesh.

Public Member Functions

 octahedron (double r=1.0)

Detailed Description

Definition at line 119 of file polymesh.hpp.


Constructor & Destructor Documentation

renderstack::shapes::octahedron::octahedron ( double  r = 1.0  ) 

Definition at line 1145 of file polymesh.cpp.

01146 {
01147     push_point( 0,  r,  0);
01148     push_point( 0, -r,  0);
01149     push_point(-r,  0,  0);
01150     push_point( 0,  0, -r);
01151     push_point( r,  0,  0);
01152     push_point( 0,  0,  r);
01153 
01154     make_polygon( 0, 2, 3 );
01155     make_polygon( 0, 3, 4 );
01156     make_polygon( 0, 4, 5 );
01157     make_polygon( 0, 5, 2 );
01158     make_polygon( 1, 2, 3 );
01159     make_polygon( 1, 3, 4 );
01160     make_polygon( 1, 4, 5 );
01161     make_polygon( 1, 5, 2 );
01162 
01163     build_mesh_from_geometry();
01164 }


The documentation for this class was generated from the following files:
Generated on Sun Apr 11 12:23:12 2010 for RenderStack by  doxygen 1.6.3