Skip to content
Snippets Groups Projects
Commit 9aaaf31f authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix compile

parent 5237ec1a
Branches
Tags
No related merge requests found
...@@ -2917,8 +2917,8 @@ int GModel::importOCCShape(const void *shape) ...@@ -2917,8 +2917,8 @@ int GModel::importOCCShape(const void *shape)
{ {
if(!_occ_internals) if(!_occ_internals)
_occ_internals = new OCC_Internals; _occ_internals = new OCC_Internals;
std::vector<int> tags[4];
#if defined(HAVE_OCC) #if defined(HAVE_OCC)
std::vector<int> tags[4];
_occ_internals->importShapes((TopoDS_Shape*)shape, false, tags); _occ_internals->importShapes((TopoDS_Shape*)shape, false, tags);
#else #else
Msg::Error("Gmsh requires OpenCASCADE to import TopoDS_Shape"); Msg::Error("Gmsh requires OpenCASCADE to import TopoDS_Shape");
......
...@@ -261,6 +261,7 @@ class OCC_Internals { ...@@ -261,6 +261,7 @@ class OCC_Internals {
public: public:
enum BooleanOperator { Union, Intersection, Difference, Section, Fragments }; enum BooleanOperator { Union, Intersection, Difference, Section, Fragments };
OCC_Internals(){} OCC_Internals(){}
bool getChanged() const { return false; }
void reset(){} void reset(){}
void setTagConstraints(int dim, int val){} void setTagConstraints(int dim, int val){}
int getMaxTag(int dim) const { return 0; } int getMaxTag(int dim) const { return 0; }
...@@ -333,7 +334,9 @@ public: ...@@ -333,7 +334,9 @@ public:
{ {
Msg::Error("Gmsh requires OpenCASCADE to export '%s'", fileName.c_str()); Msg::Error("Gmsh requires OpenCASCADE to export '%s'", fileName.c_str());
} }
void setMeshSize(int dim, int tag, double size){}
void synchronize(GModel *model){} void synchronize(GModel *model){}
bool getVertex(int tag, double &x, double &y, double &z){ return false; }
}; };
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment