diff --git a/src/simulateclothmeshes.cpp b/src/simulateclothmeshes.cpp index 9b67346d..5e85eb3a 100644 --- a/src/simulateclothmeshes.cpp +++ b/src/simulateclothmeshes.cpp @@ -20,19 +20,7 @@ public: } void simulate(ClothMesh *clothMesh) const { - std::vector> filteredClothFaces; - for (const auto &it: clothMesh->faces) { - if (4 == it.size()) { - filteredClothFaces.push_back(std::vector { - it[0], it[1], it[2] - }); - filteredClothFaces.push_back(std::vector { - it[2], it[3], it[0] - }); - } else if (3 == it.size()) { - filteredClothFaces.push_back(it); - } - } + const auto &filteredClothFaces = clothMesh->faces; std::map> positionMap; std::pair defaultSource; for (const auto &it: *clothMesh->outcomeNodeVertices) {