From 8fc4642f3f3d4d5dfb21ab447b44b8f7268a5b94 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Wed, 9 Sep 2009 07:28:25 +0000
Subject: [PATCH] added GmshSetBoundingBox

---
 Common/Gmsh.cpp | 7 +++++++
 Common/Gmsh.h   | 3 +++
 2 files changed, 10 insertions(+)

diff --git a/Common/Gmsh.cpp b/Common/Gmsh.cpp
index ec5f8a089a..d26a3c8707 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 9578b3aeb2..8230d1a6ee 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);
-- 
GitLab