Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
dd8a62cb
Commit
dd8a62cb
authored
23 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
Extrude Line with Layers
parent
ceb1219a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Parser/Gmsh.tab.cpp
+1688
-1651
1688 additions, 1651 deletions
Parser/Gmsh.tab.cpp
Parser/Gmsh.y
+27
-2
27 additions, 2 deletions
Parser/Gmsh.y
Parser/Gmsh.yy.cpp
+2
-2
2 additions, 2 deletions
Parser/Gmsh.yy.cpp
with
1717 additions
and
1655 deletions
Parser/Gmsh.tab.cpp
+
1688
−
1651
View file @
dd8a62cb
Source diff could not be displayed: it is too large. Options to address this:
view the blob
.
This diff is collapsed.
Click to expand it.
Parser/Gmsh.y
+
27
−
2
View file @
dd8a62cb
%{
%{
// $Id: Gmsh.y,v 1.
99
2001-09-
0
4
1
6:
2
5:0
5
geuzaine Exp $
// $Id: Gmsh.y,v 1.
100
2001-09-
2
4
0
6:5
6
:0
2
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);
}
}
...
...
This diff is collapsed.
Click to expand it.
Parser/Gmsh.yy.cpp
+
2
−
2
View file @
dd8a62cb
...
@@ -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.11
3
2001-09-
0
4
1
6:
2
5:0
6
geuzaine Exp $
* $Header: /cvsroot/gmsh/Parser/Gmsh.yy.cpp,v 1.11
4
2001-09-
2
4
0
6:5
6
:0
3
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.11
3
2001-09-
0
4
1
6:
2
5:0
6
geuzaine Exp $
// $Id: Gmsh.yy.cpp,v 1.11
4
2001-09-
2
4
0
6:5
6
:0
3
geuzaine Exp $
#include
<stdio.h>
#include
<stdio.h>
#include
<stdlib.h>
#include
<stdlib.h>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment