Skip to content
Snippets Groups Projects
Commit 753a7e68 authored by Van Dung Nguyen's avatar Van Dung Nguyen
Browse files

fix compile without OCC

parent 4b9e3607
Branches
Tags
No related merge requests found
...@@ -1558,4 +1558,9 @@ GRegion* GModel::getRegionForOCCShape(const void *shape) ...@@ -1558,4 +1558,9 @@ GRegion* GModel::getRegionForOCCShape(const void *shape)
return 0; return 0;
} }
int GModel::importOCCInternals(){
Msg::Error("Gmsh must be compiled with Open CASCADE support to query OCC shape");
return 0;
}
#endif #endif
...@@ -103,8 +103,14 @@ public: ...@@ -103,8 +103,14 @@ public:
OCC_Internals(){} OCC_Internals(){}
void addVertex(int tag, double x, double y, double z){} void addVertex(int tag, double x, double y, double z){}
void addCircleArc(int tag, int tagStart, int tagCenter, int tagEnd){} 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 addThruSections(int tag, std::vector<std::vector<int> > tagEdges){}
void importOCCInternals(GModel *model){} 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 #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment