From 089919792ccd5c92f7c2d6f7b07295a3f87c78c3 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 14 Feb 2007 11:07:02 +0000 Subject: [PATCH] fix opti crash with Delaunay algo (forgot to classify new vertices in correct region!) --- Mesh/meshGRegionDelaunayInsertion.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Mesh/meshGRegionDelaunayInsertion.cpp b/Mesh/meshGRegionDelaunayInsertion.cpp index e10cbaa4d3..6399148ead 100644 --- a/Mesh/meshGRegionDelaunayInsertion.cpp +++ b/Mesh/meshGRegionDelaunayInsertion.cpp @@ -1,4 +1,4 @@ -// $Id: meshGRegionDelaunayInsertion.cpp,v 1.15 2007-02-03 13:06:44 geuzaine Exp $ +// $Id: meshGRegionDelaunayInsertion.cpp,v 1.16 2007-02-14 11:07:02 geuzaine Exp $ // // Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle // @@ -497,7 +497,7 @@ void insertVerticesInRegion (GRegion *gr) bool inside = worst->tet()->invertmapping(center,uvw); if (inside) { - MVertex *v = new MVertex (center[0],center[1],center[2]); + MVertex *v = new MVertex (center[0],center[1],center[2], worst->onWhat()); v->setNum(NUM++); double lc1 = (1-uvw[0]-uvw[1]-uvw[2])*vSizes[worst->tet()->getVertex(0)->getNum()] + @@ -516,7 +516,7 @@ void insertVerticesInRegion (GRegion *gr) } else { - gr->mesh_vertices.push_back(v); + v->onWhat()->mesh_vertices.push_back(v); } } else -- GitLab