Files Classes Functions Hierarchy
#include <cassert>#include <iostream>#include <commandline.h>#include <meshpatchtest.h>
Go to the source code of this file.
Functions | |
| int | main (int argc, char **argv) |
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 14 of file main.cpp.
References commandline::mapvar().
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 }
1.5.8