#include <polymesh.hpp>
Inherits renderstack::shapes::polymesh.
Public Member Functions | |
cuboctahedron (double r=1.0) |
Definition at line 101 of file polymesh.hpp.
renderstack::shapes::cuboctahedron::cuboctahedron | ( | double | r = 1.0 |
) |
Definition at line 1026 of file polymesh.cpp.
01027 { 01028 push_point( 0, r, 0 ); 01029 push_point( r / 2, r / 2, r * sq2 / 2 ); 01030 push_point( r / 2, r / 2, -r * sq2 / 2 ); 01031 push_point( r, 0, 0 ); 01032 push_point( r / 2, -r / 2, r * sq2 / 2 ); 01033 push_point( r / 2, -r / 2, -r * sq2 / 2 ); 01034 push_point( 0, -r, 0 ); 01035 push_point( -r / 2, -r / 2, r * sq2 / 2 ); 01036 push_point( -r / 2, -r / 2, -r * sq2 / 2 ); 01037 push_point( -r, 0, 0 ); 01038 push_point( -r / 2, r / 2, r * sq2 / 2 ); 01039 push_point( -r / 2, r / 2, -r * sq2 / 2 ); 01040 01041 make_polygon( 1, 4, 7, 10 ); 01042 make_polygon( 4, 3, 5, 6 ); 01043 make_polygon( 1, 3, 2, 0 ); 01044 make_polygon( 2, 5, 8, 11 ); 01045 make_polygon( 10, 9, 11, 0 ); 01046 make_polygon( 7, 6, 8, 9 ); 01047 01048 make_polygon( 0, 1, 10 ); 01049 make_polygon( 3, 4, 1 ); 01050 make_polygon( 4, 6, 7 ); 01051 make_polygon( 10, 7, 9 ); 01052 make_polygon( 0, 2, 11 ); 01053 make_polygon( 3, 5, 2 ); 01054 make_polygon( 5, 6, 8 ); 01055 make_polygon( 11, 8, 9 ); 01056 01057 build_mesh_from_geometry(); 01058 }