00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include "euler.h"
00023 #include "print.h"
00024 #include <fstream>
00025
00026 using namespace euler;
00027
00028 int main()
00029 {
00030 solid_t *s = solid_t::mvfs( point_t(0.f, 0.5f, 0.f) );
00031 loop_t *l = s->f->l;
00032 l->mev( l->e, point_t(1.f, 0.5f, 0.f) );
00033 l->del_single_vertex_edge_pair();
00034
00035 cout << s << endl;
00036
00037 s->rsweep_wire(l);
00038
00039 cout << s << endl << endl;
00040 ofstream os("test-cylinder-2.off", ios::out);
00041
00042 s->print_off_file(os);
00043
00044 return 0;
00045 }
00046