Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Benjamin Wagner
Computer Graphik
Commits
95319d0a
Commit
95319d0a
authored
Oct 20, 2021
by
Benjamin Wagner
Browse files
stl file given as command line argument
parent
24da2ee0
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.cpp
View file @
95319d0a
...
...
@@ -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)
glutMotionFunc
(
motion
);
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++)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment