Skip to content
Snippets Groups Projects
Commit f19f637c authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

Reverted correction for duplicate points. One has to allow several extrusion...

Reverted correction for duplicate points. One has to allow several extrusion directions for the same point
parent d5adc9cf
No related branches found
No related tags found
No related merge requests found
// $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 "Gmsh.h"
#include "Const.h" #include "Const.h"
...@@ -338,9 +338,14 @@ void Extrude_Vertex (void *data, void *dum){ ...@@ -338,9 +338,14 @@ void Extrude_Vertex (void *data, void *dum){
pV = (Vertex **) data; pV = (Vertex **) data;
v = *pV; v = *pV;
// BUG FOR MULTIPLE POINTS IN EXTRUSION
if (v->Extruded_Points)return; // BUG FOR MULTIPLE POINTS IN EXTRUSION No: 1 point can be extruded
// List_Delete (v->Extruded_Points); // 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 *)); v->Extruded_Points = List_Create (ep->mesh.NbLayer, 1, sizeof (Vertex *));
List_Add (v->Extruded_Points, &v); List_Add (v->Extruded_Points, &v);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment