#include #include #include #include #include #include #include #include #include #include #include #include #include #include "IDelaunay2D.hxx" int main(int argc, char **argv) { int points = 2; if (argc>1) { std::istringstream arg(argv[1]); arg >> points; } int trials = 1; if (argc>2) { std::istringstream arg(argv[2]); arg >> trials; } TRandom ran; for (int i=0; i gDelaunay(new COMET::IDelaunay2D); gDelaunay->AddPoint(new COMET::IMeshXYPoint(10,10)); gDelaunay->AddPoint(new COMET::IMeshXYPoint(4,10)); gDelaunay->AddPoint(new COMET::IMeshXYPoint(10,4)); gDelaunay->AddPoint(new COMET::IMeshXYPoint(12,12)); // Add the requested number of points. for (int i=0; iAddPoint(new COMET::IMeshXYPoint(x,y)); } for (int i=0; iAddPoint(new COMET::IMeshXYPoint(x,y)); } gDelaunay->Close(); } }