#include <polymesh.hpp>
Inherits renderstack::shapes::polymesh.
Public Member Functions | |
tetrahedron (double r=1.0) |
Definition at line 125 of file polymesh.hpp.
renderstack::shapes::tetrahedron::tetrahedron | ( | double | r = 1.0 |
) |
Definition at line 1166 of file polymesh.cpp.
01167 { 01168 push_point( 0, r, 0 ); 01169 push_point( 0, -r / 3.0, r * 2.0 * sq2 / 3.0 ); 01170 push_point(-r * sq3 * sq2 / 3.0, -r / 3.0, -r * sq2 / 3.0 ); 01171 push_point( r * sq3 * sq2 / 3.0, -r / 3.0, -r * sq2 / 3.0 ); 01172 01173 make_polygon( 0, 1, 2 ); 01174 make_polygon( 0, 1, 3 ); 01175 make_polygon( 0, 2, 3 ); 01176 make_polygon( 1, 2, 3 ); 01177 01178 build_mesh_from_geometry(); 01179 }