Skip to content
Snippets Groups Projects
Commit b505a6c0 authored by Philip Trettner's avatar Philip Trettner
Browse files

direct validity check

parent bd55683b
No related branches found
No related tags found
No related merge requests found
......@@ -113,6 +113,16 @@ void Mesh::assert_consistency() const
polyassert(edge_cnt * 2 == halfedge_cnt);
}
// check validity
for (auto f : faces())
{
polyassert(f.any_halfedge().is_valid());
}
for (auto f : halfedges())
{
polyassert(f.vertex_to().is_valid());
}
// check only non-removed can be accessed topologically
for (auto f : faces())
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment