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

CreateTopology

parent a804c7a4
Branches
Tags
No related merge requests found
...@@ -108,6 +108,7 @@ Compound return tCompound; ...@@ -108,6 +108,7 @@ Compound return tCompound;
Coordinates return tCoordinates; Coordinates return tCoordinates;
CatmullRom return tSpline; CatmullRom return tSpline;
Call return tCall; Call return tCall;
CreateTopology return tCreateTopology;
Delete return tDelete; Delete return tDelete;
Dilate return tDilate; Dilate return tDilate;
......
This diff is collapsed.
...@@ -79,84 +79,85 @@ ...@@ -79,84 +79,85 @@
tBoundingBox = 295, tBoundingBox = 295,
tDraw = 296, tDraw = 296,
tToday = 297, tToday = 297,
tPoint = 298, tCreateTopology = 298,
tCircle = 299, tPoint = 299,
tEllipse = 300, tCircle = 300,
tLine = 301, tEllipse = 301,
tSphere = 302, tLine = 302,
tPolarSphere = 303, tSphere = 303,
tSurface = 304, tPolarSphere = 304,
tSpline = 305, tSurface = 305,
tVolume = 306, tSpline = 306,
tCharacteristic = 307, tVolume = 307,
tLength = 308, tCharacteristic = 308,
tParametric = 309, tLength = 309,
tElliptic = 310, tParametric = 310,
tPlane = 311, tElliptic = 311,
tRuled = 312, tPlane = 312,
tTransfinite = 313, tRuled = 313,
tComplex = 314, tTransfinite = 314,
tPhysical = 315, tComplex = 315,
tCompound = 316, tPhysical = 316,
tUsing = 317, tCompound = 317,
tPlugin = 318, tUsing = 318,
tRotate = 319, tPlugin = 319,
tTranslate = 320, tRotate = 320,
tSymmetry = 321, tTranslate = 321,
tDilate = 322, tSymmetry = 322,
tExtrude = 323, tDilate = 323,
tLoop = 324, tExtrude = 324,
tRecombine = 325, tLoop = 325,
tSmoother = 326, tRecombine = 326,
tSplit = 327, tSmoother = 327,
tDelete = 328, tSplit = 328,
tCoherence = 329, tDelete = 329,
tIntersect = 330, tCoherence = 330,
tLayers = 331, tIntersect = 331,
tHole = 332, tLayers = 332,
tAlias = 333, tHole = 333,
tAliasWithOptions = 334, tAlias = 334,
tText2D = 335, tAliasWithOptions = 335,
tText3D = 336, tText2D = 336,
tInterpolationScheme = 337, tText3D = 337,
tTime = 338, tInterpolationScheme = 338,
tCombine = 339, tTime = 339,
tBSpline = 340, tCombine = 340,
tBezier = 341, tBSpline = 341,
tNurbs = 342, tBezier = 342,
tOrder = 343, tNurbs = 343,
tKnots = 344, tOrder = 344,
tColor = 345, tKnots = 345,
tColorTable = 346, tColor = 346,
tFor = 347, tColorTable = 347,
tIn = 348, tFor = 348,
tEndFor = 349, tIn = 349,
tIf = 350, tEndFor = 350,
tEndIf = 351, tIf = 351,
tExit = 352, tEndIf = 352,
tField = 353, tExit = 353,
tReturn = 354, tField = 354,
tCall = 355, tReturn = 355,
tFunction = 356, tCall = 356,
tShow = 357, tFunction = 357,
tHide = 358, tShow = 358,
tGetValue = 359, tHide = 359,
tGMSH_MAJOR_VERSION = 360, tGetValue = 360,
tGMSH_MINOR_VERSION = 361, tGMSH_MAJOR_VERSION = 361,
tGMSH_PATCH_VERSION = 362, tGMSH_MINOR_VERSION = 362,
tAFFECTDIVIDE = 363, tGMSH_PATCH_VERSION = 363,
tAFFECTTIMES = 364, tAFFECTDIVIDE = 364,
tAFFECTMINUS = 365, tAFFECTTIMES = 365,
tAFFECTPLUS = 366, tAFFECTMINUS = 366,
tOR = 367, tAFFECTPLUS = 367,
tAND = 368, tOR = 368,
tNOTEQUAL = 369, tAND = 369,
tEQUAL = 370, tNOTEQUAL = 370,
tGREATEROREQUAL = 371, tEQUAL = 371,
tLESSOREQUAL = 372, tGREATEROREQUAL = 372,
UNARYPREC = 373, tLESSOREQUAL = 373,
tMINUSMINUS = 374, UNARYPREC = 374,
tPLUSPLUS = 375 tMINUSMINUS = 375,
tPLUSPLUS = 376
}; };
#endif #endif
/* Tokens. */ /* Tokens. */
...@@ -200,84 +201,85 @@ ...@@ -200,84 +201,85 @@
#define tBoundingBox 295 #define tBoundingBox 295
#define tDraw 296 #define tDraw 296
#define tToday 297 #define tToday 297
#define tPoint 298 #define tCreateTopology 298
#define tCircle 299 #define tPoint 299
#define tEllipse 300 #define tCircle 300
#define tLine 301 #define tEllipse 301
#define tSphere 302 #define tLine 302
#define tPolarSphere 303 #define tSphere 303
#define tSurface 304 #define tPolarSphere 304
#define tSpline 305 #define tSurface 305
#define tVolume 306 #define tSpline 306
#define tCharacteristic 307 #define tVolume 307
#define tLength 308 #define tCharacteristic 308
#define tParametric 309 #define tLength 309
#define tElliptic 310 #define tParametric 310
#define tPlane 311 #define tElliptic 311
#define tRuled 312 #define tPlane 312
#define tTransfinite 313 #define tRuled 313
#define tComplex 314 #define tTransfinite 314
#define tPhysical 315 #define tComplex 315
#define tCompound 316 #define tPhysical 316
#define tUsing 317 #define tCompound 317
#define tPlugin 318 #define tUsing 318
#define tRotate 319 #define tPlugin 319
#define tTranslate 320 #define tRotate 320
#define tSymmetry 321 #define tTranslate 321
#define tDilate 322 #define tSymmetry 322
#define tExtrude 323 #define tDilate 323
#define tLoop 324 #define tExtrude 324
#define tRecombine 325 #define tLoop 325
#define tSmoother 326 #define tRecombine 326
#define tSplit 327 #define tSmoother 327
#define tDelete 328 #define tSplit 328
#define tCoherence 329 #define tDelete 329
#define tIntersect 330 #define tCoherence 330
#define tLayers 331 #define tIntersect 331
#define tHole 332 #define tLayers 332
#define tAlias 333 #define tHole 333
#define tAliasWithOptions 334 #define tAlias 334
#define tText2D 335 #define tAliasWithOptions 335
#define tText3D 336 #define tText2D 336
#define tInterpolationScheme 337 #define tText3D 337
#define tTime 338 #define tInterpolationScheme 338
#define tCombine 339 #define tTime 339
#define tBSpline 340 #define tCombine 340
#define tBezier 341 #define tBSpline 341
#define tNurbs 342 #define tBezier 342
#define tOrder 343 #define tNurbs 343
#define tKnots 344 #define tOrder 344
#define tColor 345 #define tKnots 345
#define tColorTable 346 #define tColor 346
#define tFor 347 #define tColorTable 347
#define tIn 348 #define tFor 348
#define tEndFor 349 #define tIn 349
#define tIf 350 #define tEndFor 350
#define tEndIf 351 #define tIf 351
#define tExit 352 #define tEndIf 352
#define tField 353 #define tExit 353
#define tReturn 354 #define tField 354
#define tCall 355 #define tReturn 355
#define tFunction 356 #define tCall 356
#define tShow 357 #define tFunction 357
#define tHide 358 #define tShow 358
#define tGetValue 359 #define tHide 359
#define tGMSH_MAJOR_VERSION 360 #define tGetValue 360
#define tGMSH_MINOR_VERSION 361 #define tGMSH_MAJOR_VERSION 361
#define tGMSH_PATCH_VERSION 362 #define tGMSH_MINOR_VERSION 362
#define tAFFECTDIVIDE 363 #define tGMSH_PATCH_VERSION 363
#define tAFFECTTIMES 364 #define tAFFECTDIVIDE 364
#define tAFFECTMINUS 365 #define tAFFECTTIMES 365
#define tAFFECTPLUS 366 #define tAFFECTMINUS 366
#define tOR 367 #define tAFFECTPLUS 367
#define tAND 368 #define tOR 368
#define tNOTEQUAL 369 #define tAND 369
#define tEQUAL 370 #define tNOTEQUAL 370
#define tGREATEROREQUAL 371 #define tEQUAL 371
#define tLESSOREQUAL 372 #define tGREATEROREQUAL 372
#define UNARYPREC 373 #define tLESSOREQUAL 373
#define tMINUSMINUS 374 #define UNARYPREC 374
#define tPLUSPLUS 375 #define tMINUSMINUS 375
#define tPLUSPLUS 376
...@@ -295,7 +297,7 @@ typedef union YYSTYPE ...@@ -295,7 +297,7 @@ typedef union YYSTYPE
List_T *l; List_T *l;
} }
/* Line 1529 of yacc.c. */ /* Line 1529 of yacc.c. */
#line 299 "Gmsh.tab.hpp" #line 301 "Gmsh.tab.hpp"
YYSTYPE; YYSTYPE;
# define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1 # define YYSTYPE_IS_DECLARED 1
......
...@@ -87,7 +87,7 @@ void FixRelativePath(const char *in, char *out); ...@@ -87,7 +87,7 @@ void FixRelativePath(const char *in, char *out);
%token tAtan tAtan2 tSinh tCosh tTanh tFabs tFloor tCeil %token tAtan tAtan2 tSinh tCosh tTanh tFabs tFloor tCeil
%token tFmod tModulo tHypot %token tFmod tModulo tHypot
%token tPrintf tSprintf tStrCat tStrPrefix tStrRelative %token tPrintf tSprintf tStrCat tStrPrefix tStrRelative
%token tBoundingBox tDraw tToday %token tBoundingBox tDraw tToday tCreateTopology
%token tPoint tCircle tEllipse tLine tSphere tPolarSphere tSurface tSpline tVolume %token tPoint tCircle tEllipse tLine tSphere tPolarSphere tSurface tSpline tVolume
%token tCharacteristic tLength tParametric tElliptic %token tCharacteristic tLength tParametric tElliptic
%token tPlane tRuled tTransfinite tComplex tPhysical tCompound %token tPlane tRuled tTransfinite tComplex tPhysical tCompound
...@@ -1892,7 +1892,6 @@ Command : ...@@ -1892,7 +1892,6 @@ Command :
char tmpstring[1024]; char tmpstring[1024];
FixRelativePath($2, tmpstring); FixRelativePath($2, tmpstring);
MergeFile(tmpstring, true); MergeFile(tmpstring, true);
GModel::current()->createTopologyFromMSH();
} }
else if(!strcmp($1, "System")) else if(!strcmp($1, "System"))
SystemCall($2); SystemCall($2);
...@@ -2008,6 +2007,10 @@ Command : ...@@ -2008,6 +2007,10 @@ Command :
Draw(); Draw();
#endif #endif
} }
| tCreateTopology tEND
{
GModel::current()->createTopologyFromMSH();
}
; ;
// L O O P // L O O P
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment