Added OnlyEdgeMesh precondition in MeshAssert

This commit is contained in:
Paolo Cignoni 2016-11-02 11:23:25 +01:00
parent 16de4693b2
commit e7a5c27693
1 changed files with 8 additions and 0 deletions

View File

@ -104,6 +104,14 @@ public:
}
}
static void OnlyEdgeMesh(MeshType &m)
{
if(m.FN()>0)
throw vcg::MissingPreconditionException("Expecting a mesh composed only by edges (no faces needed or allowed)");
}
}
};
} // end namespace tri