From f73951cd0aeafb730782e6f4624b3b0e36ac310f Mon Sep 17 00:00:00 2001 From: Jean-Francois Remacle <jean-francois.remacle@uclouvain.be> Date: Thu, 28 Apr 2005 14:55:42 +0000 Subject: [PATCH] *** empty log message *** --- Mesh/BDS.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Mesh/BDS.cpp b/Mesh/BDS.cpp index 90227d0ce6..4f4130f3aa 100644 --- a/Mesh/BDS.cpp +++ b/Mesh/BDS.cpp @@ -1046,6 +1046,16 @@ bool BDS_Mesh ::collapse_edge ( BDS_Edge *e, BDS_Point *p) { std::list<BDS_Triangle *>::iterator it = t.begin(); std::list<BDS_Triangle *>::iterator ite = t.end(); + std::list<BDS_Edge *> cavity; + while ( it != ite ) + { + BDS_Triangle *t = *it; + if ( t->e1->p1 != p && t->e1->p1 != p) cavity.push_back (t->e1); + else if ( t->e2->p1 != p && t->e2->p1 != p) cavity.push_back (t->e2); + else if ( t->e3->p1 != p && t->e3->p1 != p) cavity.push_back (t->e3); + else throw; + ++it; + } } } -- GitLab