Commit 552f86bf authored by Anakin's avatar Anakin

fix quad poly bug

parent a2f5324a
...@@ -37,8 +37,6 @@ void GeometryEngine::loadFile(const char* filePath) ...@@ -37,8 +37,6 @@ void GeometryEngine::loadFile(const char* filePath)
try try
{ {
//TODO normalize
QVector<Model*>* models; QVector<Model*>* models;
QVector<std::string>* textureNames; QVector<std::string>* textureNames;
QVector<VertexData> vertexData; QVector<VertexData> vertexData;
......
...@@ -451,6 +451,8 @@ void MshFile::analyseSegmChunks(Model * dataDestination, std::list<ChunkHeader*> ...@@ -451,6 +451,8 @@ void MshFile::analyseSegmChunks(Model * dataDestination, std::list<ChunkHeader*>
// ..calculate the edge indices // ..calculate the edge indices
for (int triEdge = 0; triEdge < 3; triEdge++) for (int triEdge = 0; triEdge < 3; triEdge++)
new_segment->indices.push_back(tmp_buffer[(tri + triEdge - ((tri % 2) * (triEdge - 1) * 2))]); new_segment->indices.push_back(tmp_buffer[(tri + triEdge - ((tri % 2) * (triEdge - 1) * 2))]);
tmp_buffer.remove(0, tmp_multiPolySize);
} }
} // if 2 high bits are set } // if 2 high bits are set
......
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