Added OnlyEdgeMesh precondition in MeshAssert
This commit is contained in:
parent
16de4693b2
commit
e7a5c27693
|
@ -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
|
} // end namespace tri
|
||||||
|
|
Loading…
Reference in New Issue