From 428967ddacc509ee0e0966126daaadc087501894 Mon Sep 17 00:00:00 2001 From: Paolo Cignoni Date: Thu, 8 Dec 2016 00:00:41 +0100 Subject: [PATCH] Added the check for un-initialized ff adjacency in an assert --- vcg/simplex/face/topology.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vcg/simplex/face/topology.h b/vcg/simplex/face/topology.h index 64e990ff..4526ad9b 100644 --- a/vcg/simplex/face/topology.h +++ b/vcg/simplex/face/topology.h @@ -321,8 +321,8 @@ void FFAttach(FaceType * &f, int z1, FaceType *&f2, int z2) template void FFAttachManifold(FaceType * &f1, int z1, FaceType *&f2, int z2) { - assert(IsBorder(*f1,z1)); - assert(IsBorder(*f2,z2)); + assert(IsBorder(*f1,z1) || f1->FFp(z1)==0); + assert(IsBorder(*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;