Added the check for un-initialized ff adjacency in an assert

This commit is contained in:
Paolo Cignoni 2016-12-08 00:00:41 +01:00
parent 1d101609f6
commit 428967ddac
1 changed files with 2 additions and 2 deletions

View File

@ -321,8 +321,8 @@ void FFAttach(FaceType * &f, int z1, FaceType *&f2, int z2)
template <class FaceType>
void FFAttachManifold(FaceType * &f1, int z1, FaceType *&f2, int z2)
{
assert(IsBorder<FaceType>(*f1,z1));
assert(IsBorder<FaceType>(*f2,z2));
assert(IsBorder<FaceType>(*f1,z1) || f1->FFp(z1)==0);
assert(IsBorder<FaceType>(*f2,z2) || f2->FFp(z2)==0);
assert(f1->V0(z1) == f2->V0(z2) || f1->V0(z1) == f2->V1(z2));
assert(f1->V1(z1) == f2->V0(z2) || f1->V1(z1) == f2->V1(z2));
f1->FFp(z1) = f2;