#include <SMESH_Gen.hxx>
Classes | |
struct | TAlgoStateError |
Public Member Functions | |
void | CancelCompute (::SMESH_Mesh &aMesh, const TopoDS_Shape &aShape) |
bool | CheckAlgoState (SMESH_Mesh &aMesh, const TopoDS_Shape &aShape) |
bool | Compute (::SMESH_Mesh &aMesh, const TopoDS_Shape &aShape, const bool aShapeOnly=false, const bool anUpward=false, const ::MeshDimension aDim=::MeshDim_3D, TSetOfInt *aShapesId=0) |
Computes aMesh on aShape. More... | |
SMESH_Mesh * | CreateMesh (int theStudyId, bool theIsEmbeddedMode) |
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 More... | |
SMESH_Algo * | GetAlgo (SMESH_Mesh &aMesh, const TopoDS_Shape &aShape, TopoDS_Shape *assignedTo=0) |
SMESH_Algo * | GetAlgo (SMESH_subMesh *aSubMesh, TopoDS_Shape *assignedTo=0) |
bool | GetAlgoState (SMESH_Mesh &aMesh, const TopoDS_Shape &aShape, std::list< SMESH_Gen::TAlgoStateError > &theErrors) |
int | GetANewId () |
int | GetBoundaryBoxSegmentation () const |
const SMESH_subMesh * | GetCurrentSubMesh () const |
Returns a sub-mesh being currently computed. More... | |
int | GetDefaultNbSegments () const |
StudyContextStruct * | GetStudyContext (int studyId) |
void | PrepareCompute (::SMESH_Mesh &aMesh, const TopoDS_Shape &aShape) |
void | SetBoundaryBoxSegmentation (int theNbSegments) |
Sets number of segments per diagonal of boundary box of geometry by which default segment length of appropriate 1D hypotheses is defined. More... | |
void | SetDefaultNbSegments (int nb) |
Sets default number of segments per edge. More... | |
SMESH_Gen () | |
~SMESH_Gen () | |
Static Public Member Functions | |
static std::vector< std::string > | GetPluginXMLPaths () |
Return paths to xml files of plugins. More... | |
static int | GetShapeDim (const TopAbs_ShapeEnum &aShapeType) |
Return shape dimension by TopAbs_ShapeEnum. More... | |
static int | GetShapeDim (const TopoDS_Shape &aShape) |
static bool | IsGlobalHypothesis (const SMESH_Hypothesis *theHyp, SMESH_Mesh &aMesh) |
Constructor & Destructor Documentation
◆ SMESH_Gen()
SMESH_Gen::SMESH_Gen | ( | ) |
Constructor
◆ ~SMESH_Gen()
SMESH_Gen::~SMESH_Gen | ( | ) |
Destructor
Member Function Documentation
◆ CancelCompute()
void SMESH_Gen::CancelCompute | ( | ::SMESH_Mesh & | aMesh, |
const TopoDS_Shape & | aShape | ||
) |
Cancel Compute a mesh
References SMESH_subMesh::COMPUTE_CANCELED.
◆ CheckAlgoState()
bool SMESH_Gen::CheckAlgoState | ( | SMESH_Mesh & | aMesh, |
const TopoDS_Shape & | aShape | ||
) |
◆ Compute()
bool SMESH_Gen::Compute | ( | ::SMESH_Mesh & | aMesh, |
const TopoDS_Shape & | aShape, | ||
const bool | aShapeOnly = false , |
||
const bool | anUpward = false , |
||
const ::MeshDimension | aDim = ::MeshDim_3D , |
||
TSetOfInt * | aShapesId = 0 |
||
) |
Computes aMesh on aShape.
- Parameters
-
aShapeOnly - if true, algo->OnlyUnaryInput() feature is ignored and only aShape is computed. anUpward - compute from vertices up to more complex shape (internal usage) aDim - upper level dimension of the mesh computation aShapesId - list of shapes with computed mesh entities (elements or nodes)
- Return values
-
bool - true if none submesh failed to compute
References SMESH_subMesh::CHECK_COMPUTE_STATE, SMESHDS_Mesh::compactMesh(), SMESH_subMesh::COMPUTE, SMESH_subMesh::COMPUTE_SUBMESH, SMESH_subMesh::ComputeStateEngine(), SMESH_subMesh::FAILED_TO_COMPUTE, SMESH_MesherHelper::FixQuadraticElements(), SMESH_subMesh::GetComputeError(), SMESH_subMesh::GetComputeState(), SMESH_subMesh::getDependsOnIterator(), SMESH_Mesh::GetHypothesis(), SMESH_subMesh::GetId(), SMESH_Mesh::GetMeshDS(), SMESH_Mesh::GetShapeToMesh(), SMESH_Mesh::GetSubMesh(), SMESH_subMesh::GetSubShape(), SMESH_Mesh::HasShapeToMesh(), SMESH_HypoFilter::IsAlgo(), SMESH_HypoFilter::IsApplicableTo(), SMESH_Algo::isDegenerated(), SMESH_HypoFilter::IsMoreLocalThan(), SMESH_MesherHelper::IsQuadraticMesh(), SMESH_MesherHelper::LINEAR, SMESH_Algo::NeedDiscreteBoundary(), SMESH_subMesh::READY_TO_COMPUTE, SMESH_Mesh::SortByMeshOrder(), and SMESH_Algo::SupportSubmeshes().
Referenced by MeshPart::Mesher::createMesh(), and StdMeshers_ProjectionUtils::MakeComputed().
◆ CreateMesh()
SMESH_Mesh * SMESH_Gen::CreateMesh | ( | int | theStudyId, |
bool | theIsEmbeddedMode | ||
) |
Creates a mesh in a study. if (theIsEmbeddedMode) { mesh modification commands are not logged }
References studyContextStruct::mapMesh, and studyContextStruct::myDocument.
Referenced by MeshPart::Mesher::createMesh().
◆ Evaluate()
bool SMESH_Gen::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
- Parameters
-
aMesh - the mesh aShape - the shape aResMap - map for prospective numbers of elements
- Return values
-
bool - is a success
Evaluate a mesh
References SMESH_subMesh::Evaluate(), SMESH_subMesh::getDependsOnIterator(), SMESH_Mesh::GetHypothesis(), SMESH_subMesh::GetId(), SMESH_Mesh::GetSubMesh(), SMESH_subMesh::GetSubShape(), SMESH_Mesh::HasShapeToMesh(), SMESH_HypoFilter::IsAlgo(), SMESH_HypoFilter::IsApplicableTo(), SMESH_HypoFilter::IsMoreLocalThan(), SMESH_Algo::NeedDiscreteBoundary(), SMESH_Mesh::SortByMeshOrder(), and SMESH_Algo::SupportSubmeshes().
◆ GetAlgo() [1/2]
SMESH_Algo * SMESH_Gen::GetAlgo | ( | SMESH_Mesh & | aMesh, |
const TopoDS_Shape & | aShape, | ||
TopoDS_Shape * | assignedTo = 0 |
||
) |
Finds algo to mesh a shape. Optionally returns a shape the found algo is bound to
References SMESH_Mesh::GetSubMesh().
Referenced by SMESH_subMesh::AlgoStateEngine(), and StdMeshers_CompositeSegment_1D::GetFaceSide().
◆ GetAlgo() [2/2]
SMESH_Algo * SMESH_Gen::GetAlgo | ( | SMESH_subMesh * | aSubMesh, |
TopoDS_Shape * | assignedTo = 0 |
||
) |
Finds algo to mesh a sub-mesh. Optionally returns a shape the found algo is bound to
References SMESH_MesherHelper::GetAncestors(), SMESH_subMesh::GetFather(), SMESH_MesherHelper::GetGroupType(), SMESH_Mesh::GetHypothesis(), SMESH_Mesh::GetShapeToMesh(), SMESH_Mesh::GetSubMesh(), SMESH_subMesh::GetSubShape(), SMESH_HypoFilter::IsAlgo(), SMESH_Mesh::IsOrderOK(), and SMESH_MesherHelper::NbAncestors().
◆ GetAlgoState()
bool SMESH_Gen::GetAlgoState | ( | SMESH_Mesh & | aMesh, |
const TopoDS_Shape & | aShape, | ||
std::list< SMESH_Gen::TAlgoStateError > & | theErrors | ||
) |
References SMESH_subMesh::GetAlgoState(), SMESH_subMesh::getDependsOnIterator(), SMESH_Hypothesis::GetDim(), SMESHDS_Mesh::GetHypothesis(), SMESH_Mesh::GetMeshDS(), SMESH_Mesh::GetSubMesh(), SMESH_subMesh::GetSubShape(), SMESHDS_Hypothesis::GetType(), SMESH_Mesh::HasShapeToMesh(), SMESH_Hypothesis::HYP_MISSING, SMESH_Mesh::IsNotConformAllowed(), SMESH_subMesh::NO_ALGO, SMESHDS_Hypothesis::PARAM_ALGO, and SMESHDS_Mesh::ShapeToMesh().
◆ GetANewId()
int SMESH_Gen::GetANewId | ( | ) |
Genarate a new id unique withing this Gen
Referenced by StdMeshers_Hexa_3D::Compute().
◆ GetBoundaryBoxSegmentation()
int SMESH_Gen::GetBoundaryBoxSegmentation | ( | ) | const |
Referenced by StdMeshers_Regular_1D::CheckHypothesis().
◆ GetCurrentSubMesh()
const SMESH_subMesh * SMESH_Gen::GetCurrentSubMesh | ( | ) | const |
Returns a sub-mesh being currently computed.
◆ GetDefaultNbSegments()
int SMESH_Gen::GetDefaultNbSegments | ( | ) | const |
◆ GetPluginXMLPaths()
|
static |
Return paths to xml files of plugins.
Referenced by SMESH_Algo::GetFeatures().
◆ GetShapeDim() [1/2]
|
static |
Return shape dimension by TopAbs_ShapeEnum.
Referenced by SMESH_Mesh::AddHypothesis(), SMESH_subMesh::CanAddHypothesis(), SMESH_subMesh::cleanDependants(), SMESH_subMesh::cleanDependsOn(), SMESH_subMesh::DumpAlgoState(), SMESH_subMesh::Evaluate(), SMESH_subMesh::IsApplicableHypotesis(), SMESH_subMesh::IsMeshComputed(), SMESH_HypoFilter::IsMoreLocalThanPredicate::IsOk(), StdMeshers_ProjectionUtils::MakeComputed(), NETGENPlugin_Mesher::PrepareOCCgeometry(), SMESH_Mesh::RemoveHypothesis(), SMESH_subMesh::removeSubMeshElementsAndNodes(), StdMeshers_ProjectionSource3D::SetSource3DShape(), StdMeshers_ProjectionUtils::SourceNotComputedError(), and SMESH_subMesh::SubMeshesComputed().
◆ GetShapeDim() [2/2]
|
static |
◆ GetStudyContext()
StudyContextStruct * SMESH_Gen::GetStudyContext | ( | int | studyId | ) |
Returns StudyContextStruct for a study
References studyContextStruct::myDocument.
Referenced by SMESH_Hypothesis::SMESH_Hypothesis().
◆ IsGlobalHypothesis()
|
static |
◆ PrepareCompute()
void SMESH_Gen::PrepareCompute | ( | ::SMESH_Mesh & | aMesh, |
const TopoDS_Shape & | aShape | ||
) |
Prepare Compute a mesh
◆ SetBoundaryBoxSegmentation()
void SMESH_Gen::SetBoundaryBoxSegmentation | ( | int | theNbSegments | ) |
Sets number of segments per diagonal of boundary box of geometry by which default segment length of appropriate 1D hypotheses is defined.
◆ SetDefaultNbSegments()
void SMESH_Gen::SetDefaultNbSegments | ( | int | nb | ) |
Sets default number of segments per edge.
The documentation for this class was generated from the following files:
- src/3rdParty/salomesmesh/inc/SMESH_Gen.hxx
- src/3rdParty/salomesmesh/src/SMESH/SMESH_Gen.cpp