#include "SMESH_NumberFilter.hxx"
-#include "GEOMBase.h"
+#include "GEOM_Client.hxx"
+#include "GeometryGUI.h"
#include "SUIT_Application.h"
#include "SUIT_Session.h"
return false;
// Get shape from geom object and verify its parameters
- TopoDS_Shape aShape;
- if (!GEOMBase::GetShape(aGeomObj, aShape) ||
- aShape.IsNull() ||
+ GEOM_Client aGeomClient;
+ TopoDS_Shape aShape = aGeomClient.GetShape(GeometryGUI::GetGeomGen(), aGeomObj);
+ if (aShape.IsNull() ||
!myShapeTypes.Contains(aShape.ShapeType()))
return false;
// Verify whether shape of entry object is sub-shape of myMainObj
if (!myMainObj->_is_nil()) {
- TopoDS_Shape aMainShape;
- if (!GEOMBase::GetShape(myMainObj, aMainShape))
+ TopoDS_Shape aMainShape = aGeomClient.GetShape(GeometryGUI::GetGeomGen(), myMainObj);
+ if (aMainShape.IsNull())
return false;
bool isFound = false;