Commit 95319d0a authored by Benjamin Wagner's avatar Benjamin Wagner
Browse files

stl file given as command line argument

parent 24da2ee0
......@@ -454,6 +454,9 @@ inline float CheckSame(CVector p1, CVector p2)
int main(int argc, char** argv)
if (argc <= 1) return -1;
glutInit(&argc, argv); // init OpenGL
glutInitDisplayMode(GLUT_DOUBLE|GLUT_RGBA | GLUT_DEPTH); // set the display mode
glutInitWindowSize((int)gWidth, (int)gHeight); // set the window size
......@@ -469,9 +472,7 @@ int main(int argc, char** argv)
init(); // init
//read_stl("C:\\Users\\stlukohl\\Desktop\\computer_graphics\\ViewSTL\\x64\\Debug\\12846565_cap_hell.stl", allTriangles);
read_stl("C:\\Users\\stlukohl\\Desktop\\computer_graphics\\ViewSTL\\x64\\Debug\\Lower.stl", allTriangles);
//read_stl("E:\\Elke\\Praktikum_WS2019_20\\Lower.stl", allTriangles);
read_stl(argv[1], allTriangles);
/*vector <CTriangle> allTrianglesCopy;
for (int i = 0;i<allTriangles.size();i++)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment