00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #include "euler.h"
00025 #include "print.h"
00026 #include <fstream>
00027
00028 using namespace euler;
00029
00030 int main()
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 }
00047
00048
00049