diff --git a/Common/Gmsh.cpp b/Common/Gmsh.cpp index ec5f8a089a4631f0d38ad106f79dc683d614d8eb..d26a3c870760173169f7e3e3f2c0cb0964becaf8 100644 --- a/Common/Gmsh.cpp +++ b/Common/Gmsh.cpp @@ -61,6 +61,13 @@ int GmshSetMessageHandler(GmshMessage *callback) return 1; } +int GmshSetBoundingBox(double xmin, double xmax, + double ymin, double ymax, + double zmin, double zmax) +{ + SetBoundingBox(xmin, xmax, ymin, ymax, zmin, zmax); +} + int GmshSetOption(std::string category, std::string name, std::string value, int index) { return StringOption(GMSH_SET, category.c_str(), index, name.c_str(), value); diff --git a/Common/Gmsh.h b/Common/Gmsh.h index 9578b3aeb23a5e2bfe37542141ab5e4bc3fcb2d1..8230d1a6ee9756f2c828c1e569deb1def2a6a3fb 100644 --- a/Common/Gmsh.h +++ b/Common/Gmsh.h @@ -11,6 +11,9 @@ int GmshInitialize(int argc=0, char **argv=0); int GmshSetMessageHandler(GmshMessage *callback); +int GmshSetBoundingBox(double xmin, double xmax, + double ymin, double ymax, + double zmin, double zmax); int GmshSetOption(std::string category, std::string name, std::string value, int index=0); int GmshSetOption(std::string category, std::string name, double value, int index=0); int GmshSetOption(std::string category, std::string name, unsigned int value, int index=0);