00001 /** 00002 *\file test-cylinder.cc 00003 * 00004 *\brief use translational sweep to cosntruct a cylinder 00005 * 00006 *\example test-cylinder.cc 00007 * 00008 * use translational 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::disk( point_t(), .5); 00031 s->tsweep_face(s->f); 00032 cout << s << endl << endl; 00033 ofstream os("test-cylinder.off", ios::out); 00034 00035 s->print_off_file(os); 00036 00037 return 0; 00038 } 00039
1.4.6