diff --git a/vcg/complex/algorithms/mesh_assert.h b/vcg/complex/algorithms/mesh_assert.h index f469e38c..7f4d2d5c 100644 --- a/vcg/complex/algorithms/mesh_assert.h +++ b/vcg/complex/algorithms/mesh_assert.h @@ -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