#include <polymesh.hpp>
Inherits renderstack::shapes::polymesh.
Public Member Functions | |
octahedron (double r=1.0) |
Definition at line 119 of file polymesh.hpp.
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 }