test-sphere.cc File Reference

construct a sphere by rotational sweep of a half circle. More...

#include "euler.h"
#include "print.h"
#include <fstream>

Go to the source code of this file.

Functions

int main ()


Detailed Description

construct a sphere by rotational sweep of a half circle.

Definition in file test-sphere.cc.


Function Documentation

int main  ) 
 

Definition at line 30 of file test-sphere.cc.

References euler::face_t::arc(), euler::loop_t::e, euler::solid_t::f, euler::face_t::l, euler::pi, euler::solid_t::print_off_file(), euler::solid_t::rsweep_wire(), and euler::loop_t::set_loop_head().

00031 {
00032   solid_t *s = solid_t :: mvfs( point_t(1.0f, 0.0f, 0.0f) );
00033   edge_t *e = s->f->arc( s->f->l->e, point_t(), 1.0, 0, pi, 15) ;
00034   s->f->l->set_loop_head( e );
00035   cout << s << endl << endl;
00036 
00037 
00038   s->rsweep_wire(s->f->l, 30);
00039 
00040   cout << s << endl << endl;
00041 
00042   ofstream os("test-sphere.off", ios::out);
00043   s->print_off_file(os);
00044   
00045   return 0;
00046 }


Generated on Wed Aug 30 16:27:59 2006 for euler by  doxygen 1.4.6