Files Classes Functions Hierarchy
00001 #include <iostream> 00002 #include <fstream> 00003 using namespace std; 00004 00005 #include <commandline.h> 00006 #include <delaunaysimpleD2test.h> 00007 00008 int main(int argc, char** argv) 00009 { 00010 00011 commandline cmd(argc,argv); 00012 00013 uint prog=0; 00014 cmd.mapvar(prog,"prog"); 00015 00016 switch (prog) 00017 { 00018 case 0: 00019 cout << "Simple Delaynay triangulation in 2D" << endl; 00020 cout << "./main prog=1 <circles=1> <multicolored=0> <n=50>/<file=filename>" << endl; 00021 cout << " If a filename is given its points are read, else generate points randomly." << endl; 00022 cout << " eg Use multicolored off to look for mesh holes." << endl; 00023 cout << " ./main prog=1 n=50 multicolored=0" << endl; 00024 cout << "Simple Delaunay in 2D with visualizations" << endl; 00025 cout << " ./main prog=2 <n=50>/<file=filename>" << endl; 00026 cout << endl; 00027 00028 break; 00029 00030 case 1: delaunaysimpleD2test().test01(argc,argv); break; 00031 case 2: delaunaysimpleD2test().test02(argc,argv); break; 00032 00033 default: cout << "error: No case handled." << endl; return 1; 00034 } 00035 00036 return 0; 00037 } 00038 00039 00040 00041 00042
1.5.8