28 #ifndef _SMESH_GEN_HXX_
29 #define _SMESH_GEN_HXX_
33 #include "Utils_SALOME_Exception.hxx"
44 #include <TopoDS_Shape.hxx>
69 SMESH_Mesh* CreateMesh(
int theStudyId,
bool theIsEmbeddedMode)
70 throw(SALOME_Exception);
89 const TopoDS_Shape & aShape,
90 const int aFlags = COMPACT_MESH,
95 const TopoDS_Shape & aShape);
97 const TopoDS_Shape & aShape);
109 const TopoDS_Shape & aShape,
111 const bool anUpward=
false,
114 bool CheckAlgoState(
SMESH_Mesh& aMesh,
const TopoDS_Shape& aShape);
139 { _name = name; _algo = algo; _algoDim = algo->
GetDim(); _isGlobalAlgo = isGlobal; }
141 { _name = name; _algo = 0; _algoDim = algoDim; _isGlobalAlgo = isGlobal; }
144 bool GetAlgoState(
SMESH_Mesh& aMesh,
const TopoDS_Shape& aShape,
145 std::list< SMESH_Gen::TAlgoStateError > & theErrors);
152 static int GetShapeDim(
const TopAbs_ShapeEnum & aShapeType);
153 static int GetShapeDim(
const TopoDS_Shape & aShape)
156 SMESH_Algo* GetAlgo(
SMESH_Mesh & aMesh,
const TopoDS_Shape & aShape, TopoDS_Shape* assignedTo=0);
161 static std::vector< std::string > GetPluginXMLPaths();
180 void resetCurrentSubMesh();