proj home

Files   Classes   Functions   Hierarchy  

main.cpp File Reference

#include <iostream>
#include <fstream>
#include <commandline.h>
#include <delaunaysimpleD2test.h>

Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

int main (int argc, char **argv)


Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 8 of file main.cpp.

References commandline::mapvar().

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 }


Generated on Fri Mar 4 00:49:32 2011 for Chelton Evans Source by  doxygen 1.5.8