Commit 07178dc6 authored by Julius Nehring-Wirxel's avatar Julius Nehring-Wirxel
Browse files

Fixed triangulate_naive(...)

parent 1807a5ba
......@@ -27,7 +27,7 @@ inline void triangulate_naive(Mesh& m)
// triangulate
for (auto i = 2u; i < vs.size(); ++i)
m.faces().add(vs[0], vs[1], vs[i]);
m.faces().add(vs[0], vs[i - 1], vs[i]);
}
}
}
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