From 552f86bf2d1a7a3914a2887ca29d73b112d5246b Mon Sep 17 00:00:00 2001 From: Anakin Date: Thu, 5 Jan 2017 09:39:18 +0100 Subject: [PATCH] fix quad poly bug --- QtMeshViewer/Source/GeometryEngine.cpp | 2 -- QtMeshViewer/Source/MshFile.cpp | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) 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