Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OpenGL
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
C-Fu
OpenGL
Commits
876c689a
Commit
876c689a
authored
8 years ago
by
Anakin
Browse files
Options
Downloads
Patches
Plain Diff
cleanup code
parent
fa8808fe
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
QtMeshViewer/Source/GeometryEngine.cpp
+1
-1
1 addition, 1 deletion
QtMeshViewer/Source/GeometryEngine.cpp
QtMeshViewer/Source/MshFile.cpp
+1
-10
1 addition, 10 deletions
QtMeshViewer/Source/MshFile.cpp
with
2 additions
and
11 deletions
QtMeshViewer/Source/GeometryEngine.cpp
+
1
−
1
View file @
876c689a
...
...
@@ -10,7 +10,7 @@ GeometryEngine::GeometryEngine()
{
initializeOpenGLFunctions
();
loadFile
(
"..
\\
Release
\\
Msh
\\
4
-Poly.msh"
);
loadFile
(
"..
\\
Release
\\
Msh
\\
5
-Poly.msh"
);
}
GeometryEngine
::~
GeometryEngine
()
...
...
This diff is collapsed.
Click to expand it.
QtMeshViewer/Source/MshFile.cpp
+
1
−
10
View file @
876c689a
...
...
@@ -452,11 +452,7 @@ void MshFile::analyseSegmChunks(Model * dataDestination, std::list<ChunkHeader*>
for
(
unsigned
int
tri
=
0
;
tri
<
tmp_multiPolySize
-
2
;
tri
++
)
// ..calculate the edge indices
for
(
int
triEdge
=
0
;
triEdge
<
3
;
triEdge
++
)
new_segment
->
indices
.
push_back
((
GLuint
)(
tri
+
triEdge
-
((
tri
%
2
)
*
(
triEdge
-
1
)
*
2
)));
}
else
{
//TODO: this shouldn't happen only once
new_segment
->
indices
.
push_back
((
GLuint
)
tmp_buffer
[(
tri
+
triEdge
-
((
tri
%
2
)
*
(
triEdge
-
1
)
*
2
))]);
}
}
// if 2 high bits are set
...
...
@@ -478,11 +474,6 @@ void MshFile::analyseSegmChunks(Model * dataDestination, std::list<ChunkHeader*>
for
(
int
triEdge
=
0
;
triEdge
<
3
;
triEdge
++
)
new_segment
->
indices
.
push_back
((
GLuint
)
tmp_buffer
[(
tri
+
triEdge
-
((
tri
%
2
)
*
(
triEdge
-
1
)
*
2
))]);
}
else
{
//TODO: this shouldn't happen
std
::
cout
<<
"Where am i??"
<<
std
::
endl
;
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment