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);
SMESHDS_Document * myDocument
std::map< int, SMESH_3D_Algo *> _map3D_Algo
void Set(TAlgoStateErrorName name, const SMESH_Algo *algo, bool isGlobal)
void SetBoundaryBoxSegmentation(int theNbSegments)
Sets number of segments per diagonal of boundary box of geometry by which default segment length of a...
TAlgoStateErrorName _name
std::map< int, StudyContextStruct *> _mapStudyContext
void Set(TAlgoStateErrorName name, const int algoDim, bool isGlobal)
struct studyContextStruct StudyContextStruct
int GetDefaultNbSegments() const
std::map< int, SMESH_2D_Algo *> _map2D_Algo
virtual int GetDim() const
std::map< SMESH_subMesh *, std::vector< int > > MapShapeNbElems
std::map< int, SMESH_1D_Algo *> _map1D_Algo
void SetDefaultNbSegments(int nb)
Sets default number of segments per edge.
std::map< int, SMESH_Algo *> _mapAlgo
std::map< int, SMESH_0D_Algo *> _map0D_Algo
static int GetShapeDim(const TopoDS_Shape &aShape)
SMESH_Hypothesis::Hypothesis_Status TAlgoStateErrorName
int GetBoundaryBoxSegmentation() const
std::map< int, SMESH_Mesh *> mapMesh
std::map< int, SMESH_Hypothesis *> mapHypothesis
std::set< int > TSetOfInt