diff --git a/Mesh/meshGRegionDelaunayInsertion.h b/Mesh/meshGRegionDelaunayInsertion.h index 30c002b89507d8a4a36f2d7f7fd113984a8f0643..68b9ca8bd5cbb228e073e7da0bccdabc09b2c595 100644 --- a/Mesh/meshGRegionDelaunayInsertion.h +++ b/Mesh/meshGRegionDelaunayInsertion.h @@ -226,9 +226,10 @@ private: void changeTetRadius ( iterator it , double r) { + MTet4 *t = *it; allTets.erase(it); - (*it)->forceRadius(r); - allTets.insert(*it); + t->forceRadius(r); + allTets.insert(t); } container & getAllTets () {return allTets;}