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
0a9103fd
Commit
0a9103fd
authored
Jan 23, 2017
by
Anakin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
differ vertexNormal and triangleNormal
parent
10718f22
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
QtMeshViewer/Header/FileInterface.h
QtMeshViewer/Header/FileInterface.h
+1
-1
QtMeshViewer/Source/MshFile.cpp
QtMeshViewer/Source/MshFile.cpp
+2
-2
No files found.
QtMeshViewer/Header/FileInterface.h
View file @
0a9103fd
...
...
@@ -23,7 +23,7 @@ struct VertexData
{
QVector3D
position
;
QVector2D
texCoord
;
QVector3D
n
ormal
;
QVector3D
vertexN
ormal
;
};
struct
Segment
{
...
...
QtMeshViewer/Source/MshFile.cpp
View file @
0a9103fd
...
...
@@ -510,7 +510,7 @@ void MshFile::analyseSegmChunks(Model * dataDestination, std::list<ChunkHeader*>
for
(
unsigned
int
i
=
new_segment
->
vertices
.
size
();
i
!=
tmp_size
;
i
--
)
for
(
unsigned
int
j
=
0
;
j
<
3
;
j
++
)
new_segment
->
vertices
[
i
-
1
].
n
ormal
[
j
]
=
0
;
new_segment
->
vertices
[
i
-
1
].
vertexN
ormal
[
j
]
=
0
;
}
else
if
(
tmp_size
>
new_segment
->
vertices
.
size
())
{
...
...
@@ -520,7 +520,7 @@ void MshFile::analyseSegmChunks(Model * dataDestination, std::list<ChunkHeader*>
for
(
unsigned
int
i
=
0
;
i
<
tmp_size
;
i
++
)
for
(
unsigned
int
j
=
0
;
j
<
3
;
j
++
)
m_file
.
read
(
F2V
(
new_segment
->
vertices
[
i
].
n
ormal
[
j
]),
sizeof
(
float
));
m_file
.
read
(
F2V
(
new_segment
->
vertices
[
i
].
vertexN
ormal
[
j
]),
sizeof
(
float
));
}
...
...
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