From 9aaaf31ff6de50cc2c15224b5b6f54a338a77084 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 22 Feb 2017 09:43:29 +0000 Subject: [PATCH] fix compile --- Geo/GModelIO_OCC.cpp | 2 +- Geo/GModelIO_OCC.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Geo/GModelIO_OCC.cpp b/Geo/GModelIO_OCC.cpp index 6895c6a2a3..8c4c1ee96f 100644 --- a/Geo/GModelIO_OCC.cpp +++ b/Geo/GModelIO_OCC.cpp @@ -2917,8 +2917,8 @@ int GModel::importOCCShape(const void *shape) { if(!_occ_internals) _occ_internals = new OCC_Internals; - std::vector<int> tags[4]; #if defined(HAVE_OCC) + std::vector<int> tags[4]; _occ_internals->importShapes((TopoDS_Shape*)shape, false, tags); #else Msg::Error("Gmsh requires OpenCASCADE to import TopoDS_Shape"); diff --git a/Geo/GModelIO_OCC.h b/Geo/GModelIO_OCC.h index b288f2f09c..a94e357be1 100644 --- a/Geo/GModelIO_OCC.h +++ b/Geo/GModelIO_OCC.h @@ -261,6 +261,7 @@ class OCC_Internals { public: enum BooleanOperator { Union, Intersection, Difference, Section, Fragments }; OCC_Internals(){} + bool getChanged() const { return false; } void reset(){} void setTagConstraints(int dim, int val){} int getMaxTag(int dim) const { return 0; } @@ -333,7 +334,9 @@ public: { Msg::Error("Gmsh requires OpenCASCADE to export '%s'", fileName.c_str()); } + void setMeshSize(int dim, int tag, double size){} void synchronize(GModel *model){} + bool getVertex(int tag, double &x, double &y, double &z){ return false; } }; #endif -- GitLab