From f19f637c0048698b5562ee393f0a4f08880c2af4 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 1 Aug 2001 15:52:33 +0000 Subject: [PATCH] Reverted correction for duplicate points. One has to allow several extrusion directions for the same point --- Mesh/3D_Extrude.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Mesh/3D_Extrude.cpp b/Mesh/3D_Extrude.cpp index 2ef2223c2c..87eb187684 100644 --- a/Mesh/3D_Extrude.cpp +++ b/Mesh/3D_Extrude.cpp @@ -1,4 +1,4 @@ -// $Id: 3D_Extrude.cpp,v 1.13 2001-08-01 13:34:00 geuzaine Exp $ +// $Id: 3D_Extrude.cpp,v 1.14 2001-08-01 15:52:33 geuzaine Exp $ #include "Gmsh.h" #include "Const.h" @@ -338,9 +338,14 @@ void Extrude_Vertex (void *data, void *dum){ pV = (Vertex **) data; v = *pV; - // BUG FOR MULTIPLE POINTS IN EXTRUSION - if (v->Extruded_Points)return; - // List_Delete (v->Extruded_Points); + + // BUG FOR MULTIPLE POINTS IN EXTRUSION No: 1 point can be extruded + // along several directions + // (cf. benchmarks/3d/Torus-ExtrMesh.geo). The return was OK for the + // old mesh generator (only 1 extrusion) + if (v->Extruded_Points) //return; + List_Delete (v->Extruded_Points); + v->Extruded_Points = List_Create (ep->mesh.NbLayer, 1, sizeof (Vertex *)); List_Add (v->Extruded_Points, &v); -- GitLab