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

Oups, wrong geometric progression for ratio=1

parent 384b3165
No related branches found
No related tags found
No related merge requests found
// $Id: 3D_Extrude_Old.cpp,v 1.9 2001-06-27 10:52:18 geuzaine Exp $ // $Id: 3D_Extrude_Old.cpp,v 1.10 2001-06-27 14:40:28 geuzaine Exp $
// This is the old extrusion mesh generator -> only available through // This is the old extrusion mesh generator -> only available through
// the command line option -extrude (w/o -recombine). This mesh // the command line option -extrude (w/o -recombine). This mesh
...@@ -382,7 +382,7 @@ static void Extrude_Vertex (void *data , void *dum){ ...@@ -382,7 +382,7 @@ static void Extrude_Vertex (void *data , void *dum){
// Sum of n (=NbElmLayer[i]) terms = hLayer[i] = a (r^n-1)/(r-1) // Sum of n (=NbElmLayer[i]) terms = hLayer[i] = a (r^n-1)/(r-1)
if(parLayer[i] == 1.) if(parLayer[i] == 1.)
a = hLayer[i] ; a = hLayer[i]/(double)NbElmLayer[i];
else else
a = hLayer[i] * (parLayer[i]-1.)/(pow(parLayer[i],NbElmLayer[i])-1.) ; a = hLayer[i] * (parLayer[i]-1.)/(pow(parLayer[i],NbElmLayer[i])-1.) ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment