Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
OpenGL
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
C-Fu
OpenGL
Commits
876c689a
Commit
876c689a
authored
Jan 02, 2017
by
Anakin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup code
parent
fa8808fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
11 deletions
+2
-11
QtMeshViewer/Source/GeometryEngine.cpp
QtMeshViewer/Source/GeometryEngine.cpp
+1
-1
QtMeshViewer/Source/MshFile.cpp
QtMeshViewer/Source/MshFile.cpp
+1
-10
No files found.
QtMeshViewer/Source/GeometryEngine.cpp
View file @
876c689a
...
...
@@ -10,7 +10,7 @@ GeometryEngine::GeometryEngine()
{
initializeOpenGLFunctions
();
loadFile
(
"..
\\
Release
\\
Msh
\\
4
-Poly.msh"
);
loadFile
(
"..
\\
Release
\\
Msh
\\
5
-Poly.msh"
);
}
GeometryEngine
::~
GeometryEngine
()
...
...
QtMeshViewer/Source/MshFile.cpp
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
;
}
}
}
...
...
Write
Preview
Markdown
is supported
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