--- a/src/triangulate.cpp Mon Apr 10 14:46:36 2023 +0300 +++ b/src/triangulate.cpp Tue Apr 11 11:11:28 2023 +0300 @@ -151,10 +151,11 @@ } for (std::size_t i = 0; i < indices.size(); i += 3) { if (not mergedTriangles.cutTriangles.contains({i})) { - Triangle tri = triangle( - *(begin + indices[i]), - *(begin + indices[i + 1]), - *(begin + indices[i + 2])); + Triangle tri = Triangle{ + .p1 = *(begin + indices[i]), + .p2 = *(begin + indices[i + 1]), + .p3 = *(begin + indices[i + 2]), + }; result.push_back(tri); } }