28 #ifndef _SMESH_GEN_HXX_
29 #define _SMESH_GEN_HXX_
44 #include <TopoDS_Shape.hxx>
68 SMESH_Mesh* CreateMesh(
int theStudyId,
bool theIsEmbeddedMode)
79 const TopoDS_Shape & aShape,
80 const bool anUpward=
false,
92 const TopoDS_Shape & aShape,
94 const bool anUpward=
false,
97 bool CheckAlgoState(
SMESH_Mesh& aMesh,
const TopoDS_Shape& aShape);
122 { _name = name; _algo = algo; _algoDim = algo->
GetDim(); _isGlobalAlgo = isGlobal; }
124 { _name = name; _algo = 0; _algoDim = algoDim; _isGlobalAlgo = isGlobal; }
127 bool GetAlgoState(
SMESH_Mesh& aMesh,
const TopoDS_Shape& aShape,
128 std::list< SMESH_Gen::TAlgoStateError > & theErrors);
135 static int GetShapeDim(
const TopAbs_ShapeEnum & aShapeType);
137 {
return GetShapeDim( aShape.ShapeType() ); }
138 SMESH_Algo* GetAlgo(
SMESH_Mesh & aMesh,
const TopoDS_Shape & aShape, TopoDS_Shape* assignedTo=0);