Commit 73438d9c by Christophe Geuzaine

up

parent 4ffbf5a9
Pipeline #251 passed with stage
in 9 minutes 41 seconds
Showing with 31 additions and 17 deletions
......@@ -18,6 +18,7 @@
extern "C"
{
/* Gmsh */
int gmshInitialize(int argc, char **argv)
{
return !GmshInitialize(argc, argv);
......@@ -40,61 +41,78 @@ extern "C"
int gmshExport(const char *fileName)
{
return 1;
}
int gmshClear()
{
return 1;
}
/* Gmsh Options */
int gmshOptionsSetNumber(const char *name, double value)
{
return 1;
}
int gmshOptionsGetNumber(const char *name, double *value)
{
return 1;
}
/* Gmsh Model */
int gmshModelCreate(const char *name)
{
return 1;
}
int gmshModelSetCurrent(const char *name)
{
return 1;
}
int gmshModelDestroy()
{
return 1;
}
int gmshModelMesh(int dim)
{
return 1;
}
int gmshModelGeoCreate()
int gmshModelAddEmbeddedVertex(int tag, int inDim, int inTag)
{
return 1;
}
/* Gmsh Model Geo Internals */
int gmshModelGeoAddPoint(int *tag, double x, double y, double z, double lc)
{
return 1;
}
int gmshModelGeoAddLine(int *tag, int startVertexTag, int endVertexTag)
{
return 1;
}
int gmshModelGeoSynchronize()
{
return 1;
}
int gmshModelOCCCreate()
{
}
/* Gmsh Model OCC Internals */
int gmshModelOCCAddPoint(int *tag, double x, double y, double z, double lc)
{
return 1;
}
int gmshModelOCCSynchronize()
{
return 1;
}
}
......@@ -22,43 +22,39 @@ typedef struct gmshIntVector{ int n; int *v; };
typedef struct gmshDoubleVector{ int n; double *v; };
typedef struct gmshEntityVector{ int n; gmshEntity *v; };
// all functions return 0 on successful completion
/* all functions return 0 on successful completion */
extern "C"
{
// initialize Gmsh (argc and argv are processed like command line arguments);
// no other API function should be called before this one
/* Gmsh */
int gmshInitialize(int argc, char **argv);
// finalize Gmsh; no other API function should be called after this one
int gmshFinalize();
// open a new project (same as File->Open in the interactive version)
int gmshOpen(const char *fileName);
// merge a file (same as File->Merge in the interactive version)
int gmshMerge(const char *fileName);
// export a file
int gmshExport(const char *fileName);
// clears everything (models, post-processing views)
int gmshClear();
/* Gmsh Options */
int gmshOptionsSetNumber(const char *name, double value);
int gmshOptionsGetNumber(const char *name, double *value);
/* Gmsh Model */
int gmshModelCreate(const char *name);
int gmshModelSetCurrent(const char *name);
int gmshModelDestroy();
int gmshModelMesh(int dim);
int gmshModelAddEmbeddedVertex(int tag, int inDim, int inTag);
int gmshModelGeoCreate();
int gmshModelGeoAddPoint(int *tag, double x, double y, double z, double lc);
/* Gmsh Model Geo Internals */
int gmshModelGeoAddVertex(int *tag, double x, double y, double z, double lc);
int gmshModelGeoAddLine(int *tag, int startVertexTag, int endVertexTag);
int gmshModelGeoAddPolyLine(int *tag, const gmshIntVector *vertexTags);
int gmshModelGeoExtrude(gmshEntityVector *in, double dx, double dy, double dz,
gmshEntityVector *out);
int gmshModelGeoSynchronize();
int gmshModelOCCCreate();
int gmshModelOCCAddPoint(int *tag, double x, double y, double z, double lc);
/* Gmsh Model OCC Internals */
int gmshModelOCCAddVertex(int *tag, double x, double y, double z, double lc);
int gmshModelOCCAddLine(int *tag, int startVertexTag, int endVertexTag);
int gmshModelOCCExtrude(const gmshEntityVector *in, double dx, double dy, double dz,
gmshEntityVector *out);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment