Go to the documentation of this file.
28 #ifndef _SMESH_GEN_HXX_
29 #define _SMESH_GEN_HXX_
44 #include <TopoDS_Shape.hxx>
79 const TopoDS_Shape & aShape,
80 const bool anUpward=
false,
92 const TopoDS_Shape & aShape,
94 const bool anUpward=
false,
122 { _name = name; _algo = algo; _algoDim = algo->
GetDim(); _isGlobalAlgo = isGlobal; }
124 { _name = name; _algo = 0; _algoDim = algoDim; _isGlobalAlgo = isGlobal; }
128 std::list< SMESH_Gen::TAlgoStateError > & theErrors);
137 {
return GetShapeDim( aShape.ShapeType() ); }
std::map< int, SMESH_0D_Algo * > _map0D_Algo
std::map< int, SMESH_Algo * > _mapAlgo
static int GetShapeDim(const TopoDS_Shape &aShape)
std::map< int, SMESH_Mesh * > mapMesh
SMESH_Algo * GetAlgo(SMESH_Mesh &aMesh, const TopoDS_Shape &aShape, TopoDS_Shape *assignedTo=0)
bool GetAlgoState(SMESH_Mesh &aMesh, const TopoDS_Shape &aShape, std::list< SMESH_Gen::TAlgoStateError > &theErrors)
bool Compute(::SMESH_Mesh &aMesh, const TopoDS_Shape &aShape, const bool anUpward=false, const ::MeshDimension aDim=::MeshDim_3D, TSetOfInt *aShapesId=0)
Computes aMesh on aShape.
void Set(TAlgoStateErrorName name, const SMESH_Algo *algo, bool isGlobal)
std::map< int, SMESH_2D_Algo * > _map2D_Algo
TAlgoStateErrorName _name
SMESH_Mesh * CreateMesh(int theStudyId, bool theIsEmbeddedMode)
static int GetShapeDim(const TopAbs_ShapeEnum &aShapeType)
std::map< int, SMESH_1D_Algo * > _map1D_Algo
struct studyContextStruct StudyContextStruct
void SetDefaultNbSegments(int nb)
Sets default number of segments per edge.
std::map< int, SMESH_3D_Algo * > _map3D_Algo
int GetBoundaryBoxSegmentation() const
std::map< SMESH_subMesh *, std::vector< int > > MapShapeNbElems
bool CheckAlgoState(SMESH_Mesh &aMesh, const TopoDS_Shape &aShape)
bool Evaluate(::SMESH_Mesh &aMesh, const TopoDS_Shape &aShape, MapShapeNbElems &aResMap, const bool anUpward=false, TSetOfInt *aShapesId=0)
evaluates size of prospective mesh on a shape
StudyContextStruct * GetStudyContext(int studyId)
void Set(TAlgoStateErrorName name, const int algoDim, bool isGlobal)
virtual int GetDim() const
std::map< int, StudyContextStruct * > _mapStudyContext
int GetDefaultNbSegments() const
std::map< int, SMESH_Hypothesis * > mapHypothesis
SMESHDS_Document * myDocument
std::set< int > TSetOfInt
void SetBoundaryBoxSegmentation(int theNbSegments)
Sets number of segments per diagonal of boundary box of geometry by which default segment length of a...
static bool IsGlobalHypothesis(const SMESH_Hypothesis *theHyp, SMESH_Mesh &aMesh)
SMESH_Hypothesis::Hypothesis_Status TAlgoStateErrorName