Commit 7182aec1 authored by Philip Trettner's avatar Philip Trettner
Browse files

fixed face comps

parent 354b6b55
......@@ -72,11 +72,12 @@ inline face_attribute<int> face_components(Mesh const& m, int* comps)
q.pop();
for (auto ff : f.adjacent_faces())
if (ff[comp] != c_cnt)
{
ff[comp] = c_cnt;
q.push(ff);
}
if (ff.is_valid())
if (ff[comp] != c_cnt)
{
ff[comp] = c_cnt;
q.push(ff);
}
}
++c_cnt;
......
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