From 753a7e689f51933d046d58a9eb31f5e4b1183d4a Mon Sep 17 00:00:00 2001
From: Van Dung Nguyen <vandung.nguyen@ulg.ac.be>
Date: Fri, 27 Jan 2017 13:44:42 +0000
Subject: [PATCH] fix compile without OCC

---
 Geo/GModelIO_OCC.cpp | 5 +++++
 Geo/GModelIO_OCC.h   | 6 ++++++
 2 files changed, 11 insertions(+)

diff --git a/Geo/GModelIO_OCC.cpp b/Geo/GModelIO_OCC.cpp
index 89e1521466..eab073ff7c 100644
--- a/Geo/GModelIO_OCC.cpp
+++ b/Geo/GModelIO_OCC.cpp
@@ -1558,4 +1558,9 @@ GRegion* GModel::getRegionForOCCShape(const void *shape)
   return 0;
 }
 
+int GModel::importOCCInternals(){
+	Msg::Error("Gmsh must be compiled with Open CASCADE support to query OCC shape");
+  return 0;
+}
+
 #endif
diff --git a/Geo/GModelIO_OCC.h b/Geo/GModelIO_OCC.h
index 3d5a4b7ea0..d5685f53c2 100644
--- a/Geo/GModelIO_OCC.h
+++ b/Geo/GModelIO_OCC.h
@@ -103,8 +103,14 @@ public:
   OCC_Internals(){}
   void addVertex(int tag, double x, double y, double z){}
   void addCircleArc(int tag, int tagStart, int tagCenter, int tagEnd){}
+	void addSphere(int tag, double xc, double yc, double zc, double radius){};
   void addThruSections(int tag, std::vector<std::vector<int> > tagEdges){}
   void importOCCInternals(GModel *model){}
+	void applyBooleanOperator(int tag,
+                            std::vector<int> shapeTags[4],
+                            std::vector<int> toolTags[4],
+                            BooleanOperator op,
+                            bool removeShape=true, bool removeTool=true){};
 };
 
 #endif
-- 
GitLab