From b06bc33c3f9c9d8e70bba8a5445ebd8388b4f789 Mon Sep 17 00:00:00 2001 From: zzzzrrr Date: Fri, 22 Jan 2010 21:52:44 -0500 Subject: [PATCH] add holes to API --- testbed/main.cc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/testbed/main.cc b/testbed/main.cc index ba074c1..8e9f0f9 100644 --- a/testbed/main.cc +++ b/testbed/main.cc @@ -48,6 +48,7 @@ void MainLoop(const double zoom); void Draw(const double zoom); void DrawMap(const double zoom); void ConstrainedColor(bool constrain); +vector CreateHeadHole(); float rotate_y = 0, rotate_z = 0; @@ -129,6 +130,12 @@ int main(int argc, char* argv[]) // Perform triangulation double init_time = glfwGetTime(); CDT * cdt = new CDT(points); + + string s = argv[1]; + if(s.rfind("dude.dat", 0) != string::npos) { + cout << "Dude!" << endl; + } + cdt->Triangulate(); double dt = glfwGetTime() - init_time; cout << "Elapsed time (secs) = " << dt << endl; @@ -294,3 +301,21 @@ void ConstrainedColor(bool constrain) glColor3f(1, 0, 0); } } + +vector CreateHeadHole() { + + vector head_hole; + head_hole.push_back(new Point(325, 437)); + head_hole.push_back(new Point(320, 423)); + head_hole.push_back(new Point(329, 413)); + head_hole.push_back(new Point(332, 423)); + + return head_hole; + + /* + val chestHole = Array(Point(320.72342f,480f), Point(338.90617f,465.96863f), + Point(347.99754f,480.61584f), Point(329.8148f,510.41534f), + Point(339.91632f,480.11077f), Point(334.86556f,478.09046f)) + */ + +}