Newer
Older
Shape TheShape;
List_Read((yyvsp[(3) - (4)].l), i, &TheShape);
VisibilityShape(TheShape.Type, TheShape.Num, 0);

Christophe Geuzaine
committed
case 177:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2488 "Gmsh.y"
std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(2) - (3)].c));
Msg::StatusBar(2, true, "Reading '%s'...", tmp.c_str());

Christophe Geuzaine
committed
// Warning: we explicitly ask ParseFile not to fclose() the included
// file, in order to allow user functions definitions in these files.
// The files will be closed in the next time OpenFile terminates. If
// you need to include many many files and don't have functions in
// the files, use "Merge" instead of "Include", as some OSes limit
// the number of files a process can open simultaneously. (A better
// solution would be to modify FunctionManager to reopen the files
// instead of using the FILE pointer...)
ParseFile(tmp, false, true);
SetBoundingBox();
Msg::StatusBar(2, true, "Done reading '%s'", tmp.c_str());
// make sure we have the latest data from GEO_Internals in GModel
// (fixes bug where we would have no geometry in the picture if
// the print command is in the same file as the geometry)
GModel::current()->importGEOInternals();
std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(2) - (3)].c));
CreateOutputFile(tmp, CTX::instance()->print.fileFormat);
GModel::current()->importGEOInternals();
std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(2) - (3)].c));
CreateOutputFile(tmp, CTX::instance()->mesh.fileFormat);
else if(!strcmp((yyvsp[(1) - (3)].c), "Merge") || !strcmp((yyvsp[(1) - (3)].c), "MergeWithBoundingBox")){
// MergeWithBoundingBox is deprecated
std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(2) - (3)].c));
MergeFile(tmp, true);
}
else if(!strcmp((yyvsp[(1) - (3)].c), "NonBlockingSystemCall"))
SystemCall((yyvsp[(2) - (3)].c));
else if(!strcmp((yyvsp[(1) - (3)].c), "System") || !strcmp((yyvsp[(1) - (3)].c), "SystemCall"))
SystemCall((yyvsp[(2) - (3)].c), true);
else if(!strcmp((yyvsp[(1) - (3)].c), "SetName"))
GModel::current()->setName((yyvsp[(2) - (3)].c));
yymsg(0, "Unknown command '%s'", (yyvsp[(1) - (3)].c));

Christophe Geuzaine
committed
case 178:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2533 "Gmsh.y"
if(!strcmp((yyvsp[(1) - (7)].c), "Save") && !strcmp((yyvsp[(2) - (7)].c), "View")){
int index = (int)(yyvsp[(4) - (7)].d);
if(index >= 0 && index < (int)PView::list.size()){
std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(6) - (7)].c));
PView::list[index]->write(tmp, CTX::instance()->post.fileFormat);
}
else
yymsg(0, "Unknown view %d", index);
yymsg(0, "Unknown command '%s'", (yyvsp[(1) - (7)].c));

Christophe Geuzaine
committed
#endif
Free((yyvsp[(1) - (7)].c)); Free((yyvsp[(2) - (7)].c)); Free((yyvsp[(6) - (7)].c));

Christophe Geuzaine
committed
case 179:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2550 "Gmsh.y"
#if defined(HAVE_POST) && defined(HAVE_MESH)
if(!strcmp((yyvsp[(1) - (7)].c), "Background") && !strcmp((yyvsp[(2) - (7)].c), "Mesh") && !strcmp((yyvsp[(3) - (7)].c), "View")){
int index = (int)(yyvsp[(5) - (7)].d);
if(index >= 0 && index < (int)PView::list.size())
GModel::current()->getFields()->setBackgroundMesh(index);
else
yymsg(0, "Unknown view %d", index);
yymsg(0, "Unknown command '%s'", (yyvsp[(1) - (7)].c));

Christophe Geuzaine
committed
#endif
Free((yyvsp[(1) - (7)].c)); Free((yyvsp[(2) - (7)].c)); Free((yyvsp[(3) - (7)].c));

Christophe Geuzaine
committed
case 180:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2565 "Gmsh.y"
SleepInSeconds((yyvsp[(2) - (3)].d));
yymsg(0, "Surface remeshing must be reinterfaced");
int lock = CTX::instance()->lock;
CTX::instance()->lock = 0;
GModel::current()->importGEOInternals();
GModel::current()->mesh((int)(yyvsp[(2) - (3)].d));
CTX::instance()->lock = lock;
yymsg(0, "Unknown command '%s'", (yyvsp[(1) - (3)].c));

Christophe Geuzaine
committed
case 181:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2584 "Gmsh.y"
#if defined(HAVE_PLUGINS)
PluginManager::instance()->action((yyvsp[(3) - (7)].c), (yyvsp[(6) - (7)].c), 0);
yymsg(0, "Unknown action '%s' or plugin '%s'", (yyvsp[(6) - (7)].c), (yyvsp[(3) - (7)].c));

Christophe Geuzaine
committed
#endif

Christophe Geuzaine
committed
case 182:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2596 "Gmsh.y"
PView::combine(false, 1, CTX::instance()->post.combineRemoveOrig);
else if(!strcmp((yyvsp[(2) - (3)].c), "ElementsFromVisibleViews"))
PView::combine(false, 0, CTX::instance()->post.combineRemoveOrig);
PView::combine(false, 2, CTX::instance()->post.combineRemoveOrig);
PView::combine(true, 1, CTX::instance()->post.combineRemoveOrig);
else if(!strcmp((yyvsp[(2) - (3)].c), "TimeStepsFromVisibleViews"))
PView::combine(true, 0, CTX::instance()->post.combineRemoveOrig);
PView::combine(true, 2, CTX::instance()->post.combineRemoveOrig);
PView::combine(false, 1, CTX::instance()->post.combineRemoveOrig);
PView::combine(true, 2, CTX::instance()->post.combineRemoveOrig);
yymsg(0, "Unknown 'Combine' command");

Christophe Geuzaine
committed
#endif

Christophe Geuzaine
committed
case 183:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2620 "Gmsh.y"

Christophe Geuzaine
committed
case 184:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2624 "Gmsh.y"
{
// FIXME: this is a hack to force a transfer from the old DB to
// GModel directly during parsing.
GModel::current()->importGEOInternals();

Christophe Geuzaine
committed
case 185:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2631 "Gmsh.y"
CTX::instance()->forcedBBox = 0;

Christophe Geuzaine
committed
case 186:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2637 "Gmsh.y"
CTX::instance()->forcedBBox = 1;
SetBoundingBox((yyvsp[(3) - (15)].d), (yyvsp[(5) - (15)].d), (yyvsp[(7) - (15)].d), (yyvsp[(9) - (15)].d), (yyvsp[(11) - (15)].d), (yyvsp[(13) - (15)].d));

Christophe Geuzaine
committed
case 187:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2642 "Gmsh.y"
#if defined(HAVE_OPENGL)

Christophe Geuzaine
committed
case 188:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2648 "Gmsh.y"
GModel::current()->createTopologyFromMesh();

Christophe Geuzaine
committed
case 189:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2652 "Gmsh.y"
{
GModel::current()->createTopologyFromMesh(1);

Christophe Geuzaine
committed
case 190:
/* Line 1806 of yacc.c */
#line 2656 "Gmsh.y"
{
GModel::current()->importGEOInternals();
GModel::current()->refineMesh(CTX::instance()->mesh.secondOrderLinear);

Christophe Geuzaine
committed
case 191:
/* Line 1806 of yacc.c */
#line 2666 "Gmsh.y"
{
LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[(3) - (6)].d);
LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[(5) - (6)].d);
fgetpos(gmsh_yyin, &yyposImbricatedLoopsTab[ImbricatedLoop]);
yylinenoImbricatedLoopsTab[ImbricatedLoop] = gmsh_yylineno;
skip_until("For", "EndFor");
if(ImbricatedLoop > MAX_RECUR_LOOPS - 1){
yymsg(0, "Reached maximum number of imbricated loops");
ImbricatedLoop = MAX_RECUR_LOOPS - 1;

Christophe Geuzaine
committed
case 192:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2683 "Gmsh.y"
{
LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[(3) - (8)].d);
LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[(5) - (8)].d);
LoopControlVariablesTab[ImbricatedLoop][2] = (yyvsp[(7) - (8)].d);
fgetpos(gmsh_yyin, &yyposImbricatedLoopsTab[ImbricatedLoop]);
yylinenoImbricatedLoopsTab[ImbricatedLoop] = gmsh_yylineno;
if(((yyvsp[(7) - (8)].d) > 0. && (yyvsp[(3) - (8)].d) > (yyvsp[(5) - (8)].d)) || ((yyvsp[(7) - (8)].d) < 0. && (yyvsp[(3) - (8)].d) < (yyvsp[(5) - (8)].d)))
skip_until("For", "EndFor");
if(ImbricatedLoop > MAX_RECUR_LOOPS - 1){
yymsg(0, "Reached maximum number of imbricated loops");
ImbricatedLoop = MAX_RECUR_LOOPS - 1;

Christophe Geuzaine
committed
case 193:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2700 "Gmsh.y"
{
LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[(5) - (8)].d);
LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[(7) - (8)].d);
LoopControlVariablesNameTab[ImbricatedLoop] = (yyvsp[(2) - (8)].c);
gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(2) - (8)].c)]);
s.list = false;
s.value.resize(1);
s.value[0] = (yyvsp[(5) - (8)].d);
fgetpos(gmsh_yyin, &yyposImbricatedLoopsTab[ImbricatedLoop]);
yylinenoImbricatedLoopsTab[ImbricatedLoop] = gmsh_yylineno;
skip_until("For", "EndFor");
if(ImbricatedLoop > MAX_RECUR_LOOPS - 1){
yymsg(0, "Reached maximum number of imbricated loops");
ImbricatedLoop = MAX_RECUR_LOOPS - 1;

Christophe Geuzaine
committed
case 194:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2721 "Gmsh.y"
{
LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[(5) - (10)].d);
LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[(7) - (10)].d);
LoopControlVariablesTab[ImbricatedLoop][2] = (yyvsp[(9) - (10)].d);
LoopControlVariablesNameTab[ImbricatedLoop] = (yyvsp[(2) - (10)].c);
gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(2) - (10)].c)]);
s.list = false;
s.value.resize(1);
s.value[0] = (yyvsp[(5) - (10)].d);
fgetpos(gmsh_yyin, &yyposImbricatedLoopsTab[ImbricatedLoop]);
yylinenoImbricatedLoopsTab[ImbricatedLoop] = gmsh_yylineno;
if(((yyvsp[(9) - (10)].d) > 0. && (yyvsp[(5) - (10)].d) > (yyvsp[(7) - (10)].d)) || ((yyvsp[(9) - (10)].d) < 0. && (yyvsp[(5) - (10)].d) < (yyvsp[(7) - (10)].d)))
skip_until("For", "EndFor");
if(ImbricatedLoop > MAX_RECUR_LOOPS - 1){
yymsg(0, "Reached maximum number of imbricated loops");
ImbricatedLoop = MAX_RECUR_LOOPS - 1;

Christophe Geuzaine
committed
case 195:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2742 "Gmsh.y"
yymsg(0, "Invalid For/EndFor loop");
ImbricatedLoop = 0;
double step = LoopControlVariablesTab[ImbricatedLoop - 1][2];

Christophe Geuzaine
committed
const char *name = LoopControlVariablesNameTab[ImbricatedLoop - 1];
if(name){
if(!gmsh_yysymbols.count(name))

Christophe Geuzaine
committed
else{
gmsh_yysymbol &s(gmsh_yysymbols[name]);
if(!s.list && s.value.size()){
s.value[0] += step;
LoopControlVariablesTab[ImbricatedLoop - 1][0] = s.value[0];
}
else
yymsg(0, "Bad loop variable %s", name);

Christophe Geuzaine
committed
}
}
else{
LoopControlVariablesTab[ImbricatedLoop - 1][0] += step;
}
double x0 = LoopControlVariablesTab[ImbricatedLoop - 1][0];
double x1 = LoopControlVariablesTab[ImbricatedLoop - 1][1];

Christophe Geuzaine
committed
if((step > 0. && x0 <= x1) || (step < 0. && x0 >= x1)){
fsetpos(gmsh_yyin, &yyposImbricatedLoopsTab[ImbricatedLoop - 1]);
gmsh_yylineno = yylinenoImbricatedLoopsTab[ImbricatedLoop - 1];
}
else
ImbricatedLoop--;

Christophe Geuzaine
committed
case 196:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2777 "Gmsh.y"
if(!FunctionManager::Instance()->createFunction
((yyvsp[(2) - (2)].c), gmsh_yyin, gmsh_yyname, gmsh_yylineno))
yymsg(0, "Redefinition of function %s", (yyvsp[(2) - (2)].c));

Christophe Geuzaine
committed
case 197:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2785 "Gmsh.y"
if(!FunctionManager::Instance()->leaveFunction
(&gmsh_yyin, gmsh_yyname, gmsh_yylineno))
yymsg(0, "Error while exiting function");

Christophe Geuzaine
committed
case 198:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2791 "Gmsh.y"
if(!FunctionManager::Instance()->enterFunction
((yyvsp[(2) - (3)].c), &gmsh_yyin, gmsh_yyname, gmsh_yylineno))
yymsg(0, "Unknown function %s", (yyvsp[(2) - (3)].c));
//FIXME: wee leak $2

Christophe Geuzaine
committed
case 199:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2798 "Gmsh.y"

Christophe Geuzaine
committed
case 200:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2802 "Gmsh.y"

Christophe Geuzaine
committed
case 201:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2811 "Gmsh.y"
(yyvsp[(2) - (5)].v)[0], (yyvsp[(2) - (5)].v)[1], (yyvsp[(2) - (5)].v)[2], 0., 0., 0., 0., 0., 0., 0.,
NULL, (yyval.l));

Christophe Geuzaine
committed
case 202:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2819 "Gmsh.y"
0., 0., 0., (yyvsp[(3) - (11)].v)[0], (yyvsp[(3) - (11)].v)[1], (yyvsp[(3) - (11)].v)[2], (yyvsp[(5) - (11)].v)[0], (yyvsp[(5) - (11)].v)[1], (yyvsp[(5) - (11)].v)[2], (yyvsp[(7) - (11)].d),
NULL, (yyval.l));

Christophe Geuzaine
committed
case 203:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2827 "Gmsh.y"
(yyvsp[(3) - (13)].v)[0], (yyvsp[(3) - (13)].v)[1], (yyvsp[(3) - (13)].v)[2], (yyvsp[(5) - (13)].v)[0], (yyvsp[(5) - (13)].v)[1], (yyvsp[(5) - (13)].v)[2], (yyvsp[(7) - (13)].v)[0], (yyvsp[(7) - (13)].v)[1], (yyvsp[(7) - (13)].v)[2], (yyvsp[(9) - (13)].d),
NULL, (yyval.l));

Christophe Geuzaine
committed
case 204:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2835 "Gmsh.y"

Christophe Geuzaine
committed
extr.mesh.QuadToTri = NO_QUADTRI;

Christophe Geuzaine
committed
case 205:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2840 "Gmsh.y"
(yyvsp[(2) - (7)].v)[0], (yyvsp[(2) - (7)].v)[1], (yyvsp[(2) - (7)].v)[2], 0., 0., 0., 0., 0., 0., 0.,
&extr, (yyval.l));

Christophe Geuzaine
committed
case 206:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2848 "Gmsh.y"

Christophe Geuzaine
committed
extr.mesh.QuadToTri = NO_QUADTRI;

Christophe Geuzaine
committed
case 207:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2853 "Gmsh.y"
0., 0., 0., (yyvsp[(3) - (13)].v)[0], (yyvsp[(3) - (13)].v)[1], (yyvsp[(3) - (13)].v)[2], (yyvsp[(5) - (13)].v)[0], (yyvsp[(5) - (13)].v)[1], (yyvsp[(5) - (13)].v)[2], (yyvsp[(7) - (13)].d),
&extr, (yyval.l));

Christophe Geuzaine
committed
case 208:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2861 "Gmsh.y"

Christophe Geuzaine
committed
extr.mesh.QuadToTri = NO_QUADTRI;

Christophe Geuzaine
committed
case 209:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2866 "Gmsh.y"
(yyvsp[(3) - (15)].v)[0], (yyvsp[(3) - (15)].v)[1], (yyvsp[(3) - (15)].v)[2], (yyvsp[(5) - (15)].v)[0], (yyvsp[(5) - (15)].v)[1], (yyvsp[(5) - (15)].v)[2], (yyvsp[(7) - (15)].v)[0], (yyvsp[(7) - (15)].v)[1], (yyvsp[(7) - (15)].v)[2], (yyvsp[(9) - (15)].d),
&extr, (yyval.l));

Christophe Geuzaine
committed
case 210:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2874 "Gmsh.y"

Christophe Geuzaine
committed
extr.mesh.QuadToTri = NO_QUADTRI;

Christophe Geuzaine
committed
case 211:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2879 "Gmsh.y"

Christophe Geuzaine
committed
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
ExtrudeShapes(BOUNDARY_LAYER, (yyvsp[(3) - (6)].l), 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,

Christophe Geuzaine
committed
&extr, (yyval.l));

Christophe Geuzaine
committed
break;

Christophe Geuzaine
committed
case 212:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2887 "Gmsh.y"

Christophe Geuzaine
committed
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyvsp[(6) - (8)].v)[0], (yyvsp[(6) - (8)].v)[1], (yyvsp[(6) - (8)].v)[2], 0., 0., 0., 0., 0., 0., 0.,
NULL, (yyval.l));

Christophe Geuzaine
committed
case 213:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2894 "Gmsh.y"
ExtrudeShape(TRANSLATE, MSH_SEGM_LINE, (int)(yyvsp[(4) - (8)].d),
(yyvsp[(6) - (8)].v)[0], (yyvsp[(6) - (8)].v)[1], (yyvsp[(6) - (8)].v)[2], 0., 0., 0., 0., 0., 0., 0.,
NULL, (yyval.l));

Christophe Geuzaine
committed
case 214:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2901 "Gmsh.y"
ExtrudeShape(TRANSLATE, MSH_SURF_PLAN, (int)(yyvsp[(4) - (8)].d),
(yyvsp[(6) - (8)].v)[0], (yyvsp[(6) - (8)].v)[1], (yyvsp[(6) - (8)].v)[2], 0., 0., 0., 0., 0., 0., 0.,
NULL, (yyval.l));

Christophe Geuzaine
committed
case 215:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2908 "Gmsh.y"
0., 0., 0., (yyvsp[(6) - (12)].v)[0], (yyvsp[(6) - (12)].v)[1], (yyvsp[(6) - (12)].v)[2], (yyvsp[(8) - (12)].v)[0], (yyvsp[(8) - (12)].v)[1], (yyvsp[(8) - (12)].v)[2], (yyvsp[(10) - (12)].d),
NULL, (yyval.l));

Christophe Geuzaine
committed
case 216:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2915 "Gmsh.y"
0., 0., 0., (yyvsp[(6) - (12)].v)[0], (yyvsp[(6) - (12)].v)[1], (yyvsp[(6) - (12)].v)[2], (yyvsp[(8) - (12)].v)[0], (yyvsp[(8) - (12)].v)[1], (yyvsp[(8) - (12)].v)[2], (yyvsp[(10) - (12)].d),
NULL, (yyval.l));

Christophe Geuzaine
committed
case 217:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2922 "Gmsh.y"
0., 0., 0., (yyvsp[(6) - (12)].v)[0], (yyvsp[(6) - (12)].v)[1], (yyvsp[(6) - (12)].v)[2], (yyvsp[(8) - (12)].v)[0], (yyvsp[(8) - (12)].v)[1], (yyvsp[(8) - (12)].v)[2], (yyvsp[(10) - (12)].d),
NULL, (yyval.l));

Christophe Geuzaine
committed
case 218:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2929 "Gmsh.y"
ExtrudeShape(TRANSLATE_ROTATE, MSH_POINT, (int)(yyvsp[(4) - (14)].d),
(yyvsp[(6) - (14)].v)[0], (yyvsp[(6) - (14)].v)[1], (yyvsp[(6) - (14)].v)[2], (yyvsp[(8) - (14)].v)[0], (yyvsp[(8) - (14)].v)[1], (yyvsp[(8) - (14)].v)[2], (yyvsp[(10) - (14)].v)[0], (yyvsp[(10) - (14)].v)[1], (yyvsp[(10) - (14)].v)[2], (yyvsp[(12) - (14)].d),
NULL, (yyval.l));

Christophe Geuzaine
committed
case 219:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2936 "Gmsh.y"
ExtrudeShape(TRANSLATE_ROTATE, MSH_SEGM_LINE, (int)(yyvsp[(4) - (14)].d),
(yyvsp[(6) - (14)].v)[0], (yyvsp[(6) - (14)].v)[1], (yyvsp[(6) - (14)].v)[2], (yyvsp[(8) - (14)].v)[0], (yyvsp[(8) - (14)].v)[1], (yyvsp[(8) - (14)].v)[2], (yyvsp[(10) - (14)].v)[0], (yyvsp[(10) - (14)].v)[1], (yyvsp[(10) - (14)].v)[2], (yyvsp[(12) - (14)].d),
NULL, (yyval.l));

Christophe Geuzaine
committed
case 220:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2943 "Gmsh.y"
ExtrudeShape(TRANSLATE_ROTATE, MSH_SURF_PLAN, (int)(yyvsp[(4) - (14)].d),
(yyvsp[(6) - (14)].v)[0], (yyvsp[(6) - (14)].v)[1], (yyvsp[(6) - (14)].v)[2], (yyvsp[(8) - (14)].v)[0], (yyvsp[(8) - (14)].v)[1], (yyvsp[(8) - (14)].v)[2], (yyvsp[(10) - (14)].v)[0], (yyvsp[(10) - (14)].v)[1], (yyvsp[(10) - (14)].v)[2], (yyvsp[(12) - (14)].d),
NULL, (yyval.l));

Christophe Geuzaine
committed
case 221:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2950 "Gmsh.y"

Christophe Geuzaine
committed
extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false;

Christophe Geuzaine
committed
extr.mesh.QuadToTri = NO_QUADTRI;

Christophe Geuzaine
committed
case 222:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2955 "Gmsh.y"
(yyvsp[(6) - (12)].v)[0], (yyvsp[(6) - (12)].v)[1], (yyvsp[(6) - (12)].v)[2], 0., 0., 0., 0., 0., 0., 0.,
&extr, (yyval.l));

Christophe Geuzaine
committed
case 223:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2962 "Gmsh.y"

Christophe Geuzaine
committed
extr.mesh.QuadToTri = NO_QUADTRI;

Christophe Geuzaine
committed
case 224:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2967 "Gmsh.y"
ExtrudeShape(TRANSLATE, MSH_SEGM_LINE, (int)(yyvsp[(4) - (12)].d),
(yyvsp[(6) - (12)].v)[0], (yyvsp[(6) - (12)].v)[1], (yyvsp[(6) - (12)].v)[2], 0., 0., 0., 0., 0., 0., 0.,
&extr, (yyval.l));

Christophe Geuzaine
committed
case 225:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2974 "Gmsh.y"

Christophe Geuzaine
committed
extr.mesh.QuadToTri = NO_QUADTRI;

Christophe Geuzaine
committed
case 226:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2979 "Gmsh.y"
ExtrudeShape(TRANSLATE, MSH_SURF_PLAN, (int)(yyvsp[(4) - (12)].d),
(yyvsp[(6) - (12)].v)[0], (yyvsp[(6) - (12)].v)[1], (yyvsp[(6) - (12)].v)[2], 0., 0., 0., 0., 0., 0., 0.,
&extr, (yyval.l));

Christophe Geuzaine
committed
case 227:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2986 "Gmsh.y"

Christophe Geuzaine
committed
extr.mesh.QuadToTri = NO_QUADTRI;

Christophe Geuzaine
committed
case 228:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2991 "Gmsh.y"
0., 0., 0., (yyvsp[(6) - (16)].v)[0], (yyvsp[(6) - (16)].v)[1], (yyvsp[(6) - (16)].v)[2], (yyvsp[(8) - (16)].v)[0], (yyvsp[(8) - (16)].v)[1], (yyvsp[(8) - (16)].v)[2], (yyvsp[(10) - (16)].d),
&extr, (yyval.l));

Christophe Geuzaine
committed
case 229:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 2998 "Gmsh.y"

Christophe Geuzaine
committed
extr.mesh.QuadToTri = NO_QUADTRI;

Christophe Geuzaine
committed
case 230:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 3003 "Gmsh.y"
0., 0., 0., (yyvsp[(6) - (16)].v)[0], (yyvsp[(6) - (16)].v)[1], (yyvsp[(6) - (16)].v)[2], (yyvsp[(8) - (16)].v)[0], (yyvsp[(8) - (16)].v)[1], (yyvsp[(8) - (16)].v)[2], (yyvsp[(10) - (16)].d),
&extr, (yyval.l));

Christophe Geuzaine
committed
case 231:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 3010 "Gmsh.y"

Christophe Geuzaine
committed
extr.mesh.QuadToTri = NO_QUADTRI;

Christophe Geuzaine
committed
case 232:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 3015 "Gmsh.y"
0., 0., 0., (yyvsp[(6) - (16)].v)[0], (yyvsp[(6) - (16)].v)[1], (yyvsp[(6) - (16)].v)[2], (yyvsp[(8) - (16)].v)[0], (yyvsp[(8) - (16)].v)[1], (yyvsp[(8) - (16)].v)[2], (yyvsp[(10) - (16)].d),
&extr, (yyval.l));

Christophe Geuzaine
committed
case 233:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 3022 "Gmsh.y"

Christophe Geuzaine
committed
extr.mesh.QuadToTri = NO_QUADTRI;

Christophe Geuzaine
committed
case 234:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 3027 "Gmsh.y"
ExtrudeShape(TRANSLATE_ROTATE, MSH_POINT, (int)(yyvsp[(4) - (18)].d),
(yyvsp[(6) - (18)].v)[0], (yyvsp[(6) - (18)].v)[1], (yyvsp[(6) - (18)].v)[2], (yyvsp[(8) - (18)].v)[0], (yyvsp[(8) - (18)].v)[1], (yyvsp[(8) - (18)].v)[2], (yyvsp[(10) - (18)].v)[0], (yyvsp[(10) - (18)].v)[1], (yyvsp[(10) - (18)].v)[2], (yyvsp[(12) - (18)].d),
&extr, (yyval.l));

Christophe Geuzaine
committed
case 235:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 3034 "Gmsh.y"

Christophe Geuzaine
committed
extr.mesh.QuadToTri = NO_QUADTRI;

Christophe Geuzaine
committed
case 236:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 3039 "Gmsh.y"
ExtrudeShape(TRANSLATE_ROTATE, MSH_SEGM_LINE, (int)(yyvsp[(4) - (18)].d),
(yyvsp[(6) - (18)].v)[0], (yyvsp[(6) - (18)].v)[1], (yyvsp[(6) - (18)].v)[2], (yyvsp[(8) - (18)].v)[0], (yyvsp[(8) - (18)].v)[1], (yyvsp[(8) - (18)].v)[2], (yyvsp[(10) - (18)].v)[0], (yyvsp[(10) - (18)].v)[1], (yyvsp[(10) - (18)].v)[2], (yyvsp[(12) - (18)].d),
&extr, (yyval.l));

Christophe Geuzaine
committed
case 237:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 3046 "Gmsh.y"

Christophe Geuzaine
committed
extr.mesh.QuadToTri = NO_QUADTRI;

Christophe Geuzaine
committed
case 238:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 3051 "Gmsh.y"
ExtrudeShape(TRANSLATE_ROTATE, MSH_SURF_PLAN, (int)(yyvsp[(4) - (18)].d),
(yyvsp[(6) - (18)].v)[0], (yyvsp[(6) - (18)].v)[1], (yyvsp[(6) - (18)].v)[2], (yyvsp[(8) - (18)].v)[0], (yyvsp[(8) - (18)].v)[1], (yyvsp[(8) - (18)].v)[2], (yyvsp[(10) - (18)].v)[0], (yyvsp[(10) - (18)].v)[1], (yyvsp[(10) - (18)].v)[2], (yyvsp[(12) - (18)].d),
&extr, (yyval.l));

Christophe Geuzaine
committed
case 239:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 3062 "Gmsh.y"

Christophe Geuzaine
committed
case 240:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 3065 "Gmsh.y"

Christophe Geuzaine
committed
case 241:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 3071 "Gmsh.y"
extr.mesh.ExtrudeMesh = true;
extr.mesh.NbLayer = 1;
extr.mesh.NbElmLayer.clear();
extr.mesh.hLayer.clear();

Christophe Geuzaine
committed
case 242:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 3080 "Gmsh.y"
extr.mesh.ExtrudeMesh = true;
extr.mesh.NbLayer = List_Nbr((yyvsp[(3) - (7)].l));
if(List_Nbr((yyvsp[(3) - (7)].l)) == List_Nbr((yyvsp[(5) - (7)].l))){
extr.mesh.NbElmLayer.clear();
extr.mesh.hLayer.clear();
for(int i = 0; i < List_Nbr((yyvsp[(3) - (7)].l)); i++){
double d;
List_Read((yyvsp[(3) - (7)].l), i, &d);
extr.mesh.NbElmLayer.push_back((d > 0) ? (int)d : 1);
List_Read((yyvsp[(5) - (7)].l), i, &d);
extr.mesh.hLayer.push_back(d);
}
yymsg(0, "Wrong layer definition {%d, %d}", List_Nbr((yyvsp[(3) - (7)].l)), List_Nbr((yyvsp[(5) - (7)].l)));
List_Delete((yyvsp[(3) - (7)].l));
List_Delete((yyvsp[(5) - (7)].l));

Christophe Geuzaine
committed
case 243:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 3100 "Gmsh.y"
yymsg(0, "Explicit region numbers in layers are deprecated");
extr.mesh.NbLayer = List_Nbr((yyvsp[(3) - (9)].l));
if(List_Nbr((yyvsp[(3) - (9)].l)) == List_Nbr((yyvsp[(5) - (9)].l)) && List_Nbr((yyvsp[(3) - (9)].l)) == List_Nbr((yyvsp[(7) - (9)].l))){
extr.mesh.NbElmLayer.clear();
extr.mesh.hLayer.clear();
for(int i = 0; i < List_Nbr((yyvsp[(3) - (9)].l)); i++){
double d;
List_Read((yyvsp[(3) - (9)].l), i, &d);
extr.mesh.NbElmLayer.push_back((d > 0) ? (int)d : 1);
List_Read((yyvsp[(7) - (9)].l), i, &d);
extr.mesh.hLayer.push_back(d);
}
yymsg(0, "Wrong layer definition {%d, %d, %d}", List_Nbr((yyvsp[(3) - (9)].l)),
List_Nbr((yyvsp[(5) - (9)].l)), List_Nbr((yyvsp[(7) - (9)].l)));
List_Delete((yyvsp[(3) - (9)].l));
List_Delete((yyvsp[(5) - (9)].l));
List_Delete((yyvsp[(7) - (9)].l));

Christophe Geuzaine
committed
case 244:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 3123 "Gmsh.y"

Christophe Geuzaine
committed
case 245:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 3127 "Gmsh.y"

Christophe Geuzaine
committed
{
extr.mesh.QuadToTri = QUADTRI_DBL_1;

Christophe Geuzaine
committed
break;

Christophe Geuzaine
committed
case 246:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 3131 "Gmsh.y"

Christophe Geuzaine
committed
{
extr.mesh.QuadToTri = QUADTRI_DBL_1_RECOMB;

Christophe Geuzaine
committed
break;

Christophe Geuzaine
committed
case 247:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 3135 "Gmsh.y"

Christophe Geuzaine
committed
{
extr.mesh.QuadToTri = QUADTRI_SNGL_1;

Christophe Geuzaine
committed
break;

Christophe Geuzaine
committed
case 248:

Christophe Geuzaine
committed
/* Line 1806 of yacc.c */
#line 3139 "Gmsh.y"