Files Classes Functions Hierarchy
00001 #include <cassert> 00002 #include <iostream> 00003 using namespace std; 00004 00005 #include <commandline.h> 00006 00007 #include <meshpatchtest.h> 00008 00009 //#include <meshrect.h> 00010 00011 00012 00013 00014 int main(int argc, char** argv) 00015 { 00016 commandline cmd(argc,argv); 00017 uint prog(0); 00018 cmd.mapvar(prog,"prog"); 00019 00020 switch (prog) 00021 { 00022 case 0: 00023 cout << "./main prog=1 Enter u and v to compute a point on a bilinear mesh patch." << endl; 00024 cout << "./main prog=2 Visual bilinear patch by plotting points on surface." << endl; 00025 cout << "./main prog=3 Uniform subdivision." << endl; 00026 00027 break; 00028 00029 case 1: meshpatchtest().test01(); break; 00030 case 2: meshpatchtest().test02(argc,argv); break; 00031 case 3: meshpatchtest().test03(argc,argv); break; 00032 case 4: meshpatchtest().test04(argc,argv); break; 00033 00034 default: cout << "error: No case handled." << endl; return 1; 00035 } 00036 00037 00038 return 0; 00039 } 00040 00041
1.5.8