diff --git a/QtMeshViewer/Source/GeometryEngine.cpp b/QtMeshViewer/Source/GeometryEngine.cpp index c2bb6e1..6420288 100644 --- a/QtMeshViewer/Source/GeometryEngine.cpp +++ b/QtMeshViewer/Source/GeometryEngine.cpp @@ -37,8 +37,6 @@ void GeometryEngine::loadFile(const char* filePath) try { - //TODO normalize - QVector* models; QVector* textureNames; QVector vertexData; diff --git a/QtMeshViewer/Source/MshFile.cpp b/QtMeshViewer/Source/MshFile.cpp index 1dbd23c..761c01f 100644 --- a/QtMeshViewer/Source/MshFile.cpp +++ b/QtMeshViewer/Source/MshFile.cpp @@ -451,6 +451,8 @@ void MshFile::analyseSegmChunks(Model * dataDestination, std::list // ..calculate the edge indices for (int triEdge = 0; triEdge < 3; triEdge++) 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