Commit 0a9103fd authored by Anakin's avatar Anakin

differ vertexNormal and triangleNormal

parent 10718f22
......@@ -23,7 +23,7 @@ struct VertexData
{
QVector3D position;
QVector2D texCoord;
QVector3D normal;
QVector3D vertexNormal;
};
struct Segment {
......
......@@ -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].normal[j] = 0;
new_segment->vertices[i - 1].vertexNormal[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].normal[j]), sizeof(float));
m_file.read(F2V(new_segment->vertices[i].vertexNormal[j]), sizeof(float));
}
......
Markdown is supported
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