mirror of
https://github.com/jhasse/poly2tri.git
synced 2025-01-30 20:23:31 +01:00
modified Authors file
This commit is contained in:
parent
c18dcd4eaa
commit
7cbc314b7b
@ -1,6 +1,6 @@
|
|||||||
Primary Contributors:
|
Primary Contributors:
|
||||||
|
|
||||||
Mason Green <mason.green@gmail.com> (C++)
|
Mason Green <mason.green@gmail.com> (C++, Python)
|
||||||
Thomas Åhlén <thahlen@gmail.com> (Java)
|
Thomas Åhlén <thahlen@gmail.com> (Java)
|
||||||
|
|
||||||
Other Contributors:
|
Other Contributors:
|
@ -135,6 +135,7 @@ int main(int argc, char* argv[])
|
|||||||
// Step 1 - Create CDT and add primary polyline
|
// Step 1 - Create CDT and add primary polyline
|
||||||
CDT* cdt = new CDT(points);
|
CDT* cdt = new CDT(points);
|
||||||
|
|
||||||
|
/*
|
||||||
// Step 2 - Add holes if necessary
|
// Step 2 - Add holes if necessary
|
||||||
string s(argv[1]);
|
string s(argv[1]);
|
||||||
if(s.find("dude.dat", 0) != string::npos) {
|
if(s.find("dude.dat", 0) != string::npos) {
|
||||||
@ -148,6 +149,7 @@ int main(int argc, char* argv[])
|
|||||||
polylines.push_back(head_hole);
|
polylines.push_back(head_hole);
|
||||||
polylines.push_back(chest_hole);
|
polylines.push_back(chest_hole);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
// Step 3 - Triangulate!
|
// Step 3 - Triangulate!
|
||||||
cdt->Triangulate();
|
cdt->Triangulate();
|
||||||
@ -178,7 +180,8 @@ void Init()
|
|||||||
ShutDown(1);
|
ShutDown(1);
|
||||||
|
|
||||||
glfwSetWindowTitle("Poly2Tri - C++");
|
glfwSetWindowTitle("Poly2Tri - C++");
|
||||||
|
glfwSwapInterval(1);
|
||||||
|
|
||||||
glEnable(GL_BLEND);
|
glEnable(GL_BLEND);
|
||||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||||
glClearColor(0.0, 0.0, 0.0, 0.0);
|
glClearColor(0.0, 0.0, 0.0, 0.0);
|
||||||
@ -275,7 +278,7 @@ void Draw(const double zoom)
|
|||||||
|
|
||||||
// green
|
// green
|
||||||
glColor3f(0, 1, 0);
|
glColor3f(0, 1, 0);
|
||||||
|
|
||||||
for(int i = 0; i < polylines.size(); i++) {
|
for(int i = 0; i < polylines.size(); i++) {
|
||||||
vector<Point*> poly = polylines[i];
|
vector<Point*> poly = polylines[i];
|
||||||
glBegin(GL_LINE_LOOP);
|
glBegin(GL_LINE_LOOP);
|
||||||
|
Loading…
Reference in New Issue
Block a user