added one more control in AddFace

This commit is contained in:
Paolo Cignoni 2014-03-03 07:44:03 +00:00
parent 39f65b4d8f
commit 62bd82e208
1 changed files with 1 additions and 0 deletions

View File

@ -457,6 +457,7 @@ void ResizeAttribute(ATTR_CONT &c,const int & sz , MeshType &/*m*/){
static FaceIterator AddFace(MeshType &m, VertexPointer v0, VertexPointer v1, VertexPointer v2)
{
assert(m.vert.size()>0);
assert((v0!=v1) && (v1!=v2) && (v0!=v2));
assert(v0>=&m.vert.front() && v0<=&m.vert.back());
assert(v1>=&m.vert.front() && v1<=&m.vert.back());
assert(v2>=&m.vert.front() && v2<=&m.vert.back());