diff --git a/Geo/GModelIO_OCC.cpp b/Geo/GModelIO_OCC.cpp index 6895c6a2a32b3657163ed9088df7ce4e9e8c8cc5..8c4c1ee96f98aba3f814d5f7b56e7d21ec220ccf 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 b288f2f09ca87f5653f18f6017ff599befc062da..a94e357be1cf08d3a5292b58ed8f15df826d7fc5 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