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

Extrude Line with Layers

parent ceb1219a
No related branches found
No related tags found
No related merge requests found
Source diff could not be displayed: it is too large. Options to address this: view the blob.
%{ %{
// $Id: Gmsh.y,v 1.99 2001-09-04 16:25:05 geuzaine Exp $ // $Id: Gmsh.y,v 1.100 2001-09-24 06:56:02 geuzaine Exp $
#include <stdarg.h> #include <stdarg.h>
#ifndef _NOPLUGIN #ifndef _NOPLUGIN
...@@ -1733,6 +1733,7 @@ Loop : ...@@ -1733,6 +1733,7 @@ Loop :
--------------- */ --------------- */
Extrude : Extrude :
/* -------- Points -------- */
tExtrude tPoint '{' FExpr ',' VExpr '}' tEND tExtrude tPoint '{' FExpr ',' VExpr '}' tEND
{ {
Curve *pc, *prc; Curve *pc, *prc;
...@@ -1744,6 +1745,9 @@ Extrude : ...@@ -1744,6 +1745,9 @@ Extrude :
Extrude_ProtudePoint(0,(int)$4,$6[0],$6[1],$6[2],$8[0],$8[1],$8[2],$10, Extrude_ProtudePoint(0,(int)$4,$6[0],$6[1],$6[2],$8[0],$8[1],$8[2],$10,
&pc,&prc,NULL); &pc,&prc,NULL);
} }
/* -------- Lines -------- */
| tExtrude tLine'{' FExpr ',' VExpr '}' tEND | tExtrude tLine'{' FExpr ',' VExpr '}' tEND
{ {
Extrude_ProtudeCurve(1,(int)$4,$6[0],$6[1],$6[2],0.,0.,0.,0.,NULL); Extrude_ProtudeCurve(1,(int)$4,$6[0],$6[1],$6[2],0.,0.,0.,0.,NULL);
...@@ -1752,7 +1756,28 @@ Extrude : ...@@ -1752,7 +1756,28 @@ Extrude :
{ {
Extrude_ProtudeCurve(0,(int)$4,$6[0],$6[1],$6[2],$8[0],$8[1],$8[2],$10,NULL); Extrude_ProtudeCurve(0,(int)$4,$6[0],$6[1],$6[2],$8[0],$8[1],$8[2],$10,NULL);
} }
| tExtrude tSurface '{' FExpr ',' VExpr '}' tEND | tExtrude tLine'{' FExpr ',' VExpr '}'
{
extr.mesh.ExtrudeMesh = false;
extr.mesh.Recombine = false;
}
'{' ExtrudeParameters '}' tEND
{
Extrude_ProtudeCurve(1,(int)$4,$6[0],$6[1],$6[2],0.,0.,0.,0.,&extr);
}
| tExtrude tLine'{' FExpr ',' VExpr ',' VExpr ',' FExpr '}'
{
extr.mesh.ExtrudeMesh = false;
extr.mesh.Recombine = false;
}
'{' ExtrudeParameters '}' tEND
{
Extrude_ProtudeCurve(0,(int)$4,$6[0],$6[1],$6[2],$8[0],$8[1],$8[2],$10,&extr);
}
/* -------- Surfaces -------- */
| tExtrude tSurface '{' FExpr ',' VExpr '}' tEND
{ {
Extrude_ProtudeSurface(1,(int)$4,$6[0],$6[1],$6[2],0.,0.,0.,0.,0,NULL); Extrude_ProtudeSurface(1,(int)$4,$6[0],$6[1],$6[2],0.,0.,0.,0.,0,NULL);
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
/* A lexical scanner generated by flex */ /* A lexical scanner generated by flex */
/* Scanner skeleton version: /* Scanner skeleton version:
* $Header: /cvsroot/gmsh/Parser/Gmsh.yy.cpp,v 1.113 2001-09-04 16:25:06 geuzaine Exp $ * $Header: /cvsroot/gmsh/Parser/Gmsh.yy.cpp,v 1.114 2001-09-24 06:56:03 geuzaine Exp $
*/ */
#define FLEX_SCANNER #define FLEX_SCANNER
...@@ -998,7 +998,7 @@ char *yytext; ...@@ -998,7 +998,7 @@ char *yytext;
#define INITIAL 0 #define INITIAL 0
#line 2 "Gmsh.l" #line 2 "Gmsh.l"
// $Id: Gmsh.yy.cpp,v 1.113 2001-09-04 16:25:06 geuzaine Exp $ // $Id: Gmsh.yy.cpp,v 1.114 2001-09-24 06:56:03 geuzaine Exp $
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
......
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