Commit cea8a674 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Replace Index mid[3] by Triangle mid.

parent b23ddc70
......@@ -112,7 +112,7 @@ subdivide(VertexList &vertices, TriangleList triangles)
Lookup lookup;
TriangleList result;
Index mid[3];
Triangle mid;
for (const auto &each : triangles)
......@@ -122,7 +122,7 @@ subdivide(VertexList &vertices, TriangleList triangles)
result.push_back({ each[0], mid[0], mid[2] });
result.push_back({ each[1], mid[1], mid[0] });
result.push_back({ each[2], mid[2], mid[1] });
result.push_back({ mid[0], mid[1], mid[2] });
return result;
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