test-cylinder-2.cc

Go to the documentation of this file.
00001 /**
00002  *\file         test-cylinder-2.cc
00003  *
00004  *\brief        use wire rotational sweep to cosntruct a cylinder
00005  *
00006  *
00007  *\example      test-cylinder-2.cc
00008  *              use rotational sweep to cosntruct a cylinder
00009  *
00010  *\image        html cylinder-2.gif
00011  *
00012  *\author       Xianming Chen\n
00013  *              Computer Science Department\n
00014  *              University of Utah
00015  *
00016  *\date         17 Aug 2006\n
00017  *              Copyright (c) 2006, University of Utah
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 

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