Commit 96ef34d1 authored by Julius Nehring-Wirxel's avatar Julius Nehring-Wirxel
Browse files

fixed add_triangle

parent cabc984b
......@@ -163,13 +163,13 @@ public:
normal = l == 0 ? tg::vec3::zero : normal / l;
}
auto h0 = face.any_halfedge();
auto h = h0.next().next();
auto h = h0.next();
auto v0 = tg::pos3(pos[h0.vertex_from()]);
auto v1 = tg::pos3(pos[h0.vertex_to()]);
while (h != h0)
{
auto vn = tg::pos3(pos[h.vertex_from()]);
_add_triangle(v0, v1, vn, normal, normal, normal);
auto v1 = tg::pos3(pos[h.vertex_from()]);
auto v2 = tg::pos3(pos[h.vertex_to()]);
_add_triangle(v0, v1, v2, normal, normal, normal);
h = h.next();
}
}
......
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