Copy elements from other the mesh. More...
#include <StdMeshers_Import_1D2D.hxx>
Public Types | |
enum | EMeshError { MEr_OK = 0, MEr_HOLES, MEr_BAD_ORI, MEr_EMPTY } |
enum | Hypothesis_Status { HYP_OK = 0, HYP_MISSING, HYP_CONCURENT, HYP_BAD_PARAMETER, HYP_HIDDEN_ALGO, HYP_HIDING_ALGO, HYP_UNKNOWN_FATAL, HYP_INCOMPATIBLE, HYP_NOTCONFORM, HYP_ALREADY_EXIST, HYP_BAD_DIM, HYP_BAD_SUBSHAPE, HYP_BAD_GEOMETRY, HYP_NEED_SHAPE, HYP_INCOMPAT_HYPS } |
enum | hypothesis_type { PARAM_ALGO, ALGO_0D, ALGO_1D, ALGO_2D, ALGO_3D } |
Public Member Functions | |
StdMeshers_Import_1D2D (int hypId, int studyId, SMESH_Gen *gen) | |
Creates StdMeshers_Import_1D2D. More... | |
virtual bool | CheckHypothesis (SMESH_Mesh &aMesh, const TopoDS_Shape &aShape, SMESH_Hypothesis::Hypothesis_Status &aStatus) |
Check presence of a hypothesis. More... | |
virtual bool | Compute (SMESH_Mesh &aMesh, const TopoDS_Shape &aShape) |
Import elements from the other mesh. More... | |
virtual bool | Evaluate (SMESH_Mesh &aMesh, const TopoDS_Shape &aShape, MapShapeNbElems &aResMap) |
Predict nb of mesh entities created by Compute() More... | |
virtual void | SetEventListener (SMESH_subMesh *subMesh) |
Set needed event listeners and create a submesh for a copied mesh. More... | |
virtual void | SubmeshRestored (SMESH_subMesh *subMesh) |
Allow algo to do something after persistent restoration. More... | |
virtual bool | FixInternalNodes (const SMESH_ProxyMesh &mesh, const TopoDS_Face &face) |
Method in which an algorithm generating a structured mesh fixes positions of in-face nodes after there movement due to insertion of viscous layers. More... | |
const Features & | GetFeatures () const |
virtual std::ostream & | SaveTo (std::ostream &save) |
Saves nothing in a stream. More... | |
virtual std::istream & | LoadFrom (std::istream &load) |
Loads nothing from a stream. More... | |
const std::vector< std::string > & | GetCompatibleHypothesis () |
Returns all types of compatible hypotheses. More... | |
virtual bool | Compute (SMESH_Mesh &aMesh, SMESH_MesherHelper *aHelper) |
Computes mesh without geometry. More... | |
virtual void | CancelCompute () |
Sets _computeCanceled to true. More... | |
virtual double | GetProgress () const |
If possible, returns progress of computation [0.,1. More... | |
virtual const std::list< const SMESHDS_Hypothesis * > & | GetUsedHypothesis (SMESH_Mesh &aMesh, const TopoDS_Shape &aShape, const bool ignoreAuxiliary=true) const |
Returns a list of compatible hypotheses used to mesh a shape. More... | |
const std::list< const SMESHDS_Hypothesis * > & | GetAppliedHypothesis (SMESH_Mesh &aMesh, const TopoDS_Shape &aShape, const bool ignoreAuxiliary=true) const |
Returns a list of compatible hypotheses assigned to a shape in a mesh. More... | |
const SMESH_HypoFilter * | GetCompatibleHypoFilter (const bool ignoreAuxiliary) const |
Returns the filter recognizing only compatible hypotheses. More... | |
virtual bool | SetParametersByMesh (const SMESH_Mesh *theMesh, const TopoDS_Shape &theShape) |
Just return false as the algorithm does not hold parameters values. More... | |
virtual bool | SetParametersByDefaults (const TDefaults &dflts, const SMESH_Mesh *theMesh=0) |
Initialize my parameter values by default parameters. More... | |
SMESH_ComputeErrorPtr | GetComputeError () const |
return compute error More... | |
void | InitComputeError () |
initialize compute error etc. More... | |
double | GetProgressByTic () const |
Return compute progress by nb of calls of this method. More... | |
std::vector< SMESH_subMesh * > & | SubMeshesToCompute () |
Return a vector of sub-meshes to Compute() More... | |
bool | OnlyUnaryInput () const |
bool | NeedDiscreteBoundary () const |
bool | NeedShape () const |
bool | SupportSubmeshes () const |
bool | NeedLowerHyps (int dim) const |
int | NumberOfPoints (SMESH_Mesh &aMesh, const TopoDS_Wire &W) |
virtual int | GetDim () const |
int | GetStudyId () const |
SMESH_Gen * | GetGen () const |
virtual int | GetShapeType () const |
virtual const char * | GetLibName () const |
virtual void | NotifySubMeshesHypothesisModification () |
void | SetLibName (const char *theLibName) |
virtual bool | DataDependOnParams () const |
The returned value is used by NotifySubMeshesHypothesisModification() to decide to call subMesh->AlgoStateEngine( MODIF_HYP, hyp ) or not if subMesh is ready to be computed (algo+hyp==OK) but not yet computed. More... | |
virtual bool | IsAuxiliary () const |
Return true if me is an auxiliary hypothesis. More... | |
SMESH_Mesh * | GetMeshByPersistentID (int id) |
Find a mesh with given persistent ID. More... | |
const char * | GetName () const |
int | GetID () const |
int | GetType () const |
bool | IsSameName (const SMESHDS_Hypothesis &other) const |
Compare types of hypotheses. More... | |
virtual bool | operator== (const SMESHDS_Hypothesis &other) const |
Equality. More... | |
bool | operator!= (const SMESHDS_Hypothesis &other) const |
Static Public Member Functions | |
static const Features & | GetFeatures (const std::string &algoType) |
Returns a structure describing algorithm features. More... | |
static bool | GetNodeParamOnEdge (const SMESHDS_Mesh *theMesh, const TopoDS_Edge &theEdge, std::vector< double > &theParams) |
Fill vector of node parameters on geometrical edge, including vertex nodes. More... | |
static bool | GetSortedNodesOnEdge (const SMESHDS_Mesh *theMesh, const TopoDS_Edge &theEdge, const bool ignoreMediumNodes, std::map< double, const SMDS_MeshNode * > &theNodes, const SMDSAbs_ElementType typeToCheck=SMDSAbs_All) |
Fill map of node parameter on geometrical edge to node it-self. More... | |
static double | EdgeLength (const TopoDS_Edge &E) |
Compute length of an edge. More... | |
static GeomAbs_Shape | Continuity (const TopoDS_Edge &E1, const TopoDS_Edge &E2) |
Return continuity of two edges. More... | |
static bool | IsContinuous (const TopoDS_Edge &E1, const TopoDS_Edge &E2) |
Return true if an edge can be considered as a continuation of another. More... | |
static bool | IsStraight (const TopoDS_Edge &E, const bool degenResult=false) |
Return true if an edge can be considered straight. More... | |
static bool | isDegenerated (const TopoDS_Edge &E, const bool checkLength=false) |
Return true if an edge has no 3D curve. More... | |
static const SMDS_MeshNode * | VertexNode (const TopoDS_Vertex &V, const SMESHDS_Mesh *meshDS) |
Return the node built on a vertex. More... | |
static const SMDS_MeshNode * | VertexNode (const TopoDS_Vertex &V, const SMESH_Mesh *mesh) |
Return the node built on a vertex. More... | |
static const SMDS_MeshNode * | VertexNode (const TopoDS_Vertex &V, const SMESHDS_SubMesh *edgeSM, const SMESH_Mesh *mesh, const bool checkV=true) |
Return the node built on a vertex. More... | |
static EMeshError | GetMeshError (SMESH_subMesh *subMesh) |
Finds topological errors of a sub-mesh. More... | |
static bool | IsStatusFatal (Hypothesis_Status theStatus) |
Protected Member Functions | |
bool | error (int error, const SMESH_Comment &comment="") |
store error and comment and then return ( error == COMPERR_OK ) More... | |
bool | error (const SMESH_Comment &comment="") |
store COMPERR_ALGO_FAILED error and comment and then return false More... | |
bool | error (SMESH_ComputeErrorPtr error) |
store error and return error->IsOK() More... | |
void | addBadInputElement (const SMDS_MeshElement *elem) |
store a bad input element preventing computation, which may be a temporary one i.e. More... | |
void | addBadInputElements (const SMESHDS_SubMesh *sm, const bool addNodes=false) |
Protected Attributes | |
const SMESH_HypoFilter * | _compatibleAllHypFilter |
const SMESH_HypoFilter * | _compatibleNoAuxHypFilter |
std::vector< std::string > | _compatibleHypothesis |
std::list< const SMESHDS_Hypothesis * > | _appliedHypList |
std::list< const SMESHDS_Hypothesis * > | _usedHypList |
bool | _onlyUnaryInput |
bool | _requireDiscreteBoundary |
bool | _requireShape |
bool | _supportSubmeshes |
bool | _neededLowerHyps [4] |
bool | _quadraticMesh |
int | _error |
SMESH_ComputeErrorName or anything algo specific. More... | |
std::string | _comment |
any text explaining what is wrong in Compute() More... | |
std::list< const SMDS_MeshElement * > | _badInputElements |
to explain COMPERR_BAD_INPUT_MESH More... | |
volatile bool | _computeCanceled |
is set to True while computing to stop it More... | |
double | _progress |
int | _progressTic |
std::vector< SMESH_subMesh * > | _smToCompute |
SMESH_Gen * | _gen |
int | _studyId |
int | _shapeType |
int | _param_algo_dim |
std::string | _name |
int | _hypId |
hypothesis_type | _type |
Private Attributes | |
StdMeshers_ImportSource1D * | _sourceHyp |
Copy elements from other the mesh.
|
inherited |
|
inherited |
|
inherited |
|
protectedinherited |
store a bad input element preventing computation, which may be a temporary one i.e.
not residing the mesh, then it will be deleted by InitComputeError()
Referenced by StdMeshers_Projection_2D::Compute().
|
protectedinherited |
References SMESHDS_SubMesh::GetElements(), and SMESHDS_SubMesh::GetNodes().
Referenced by StdMeshers_Projection_2D::Compute().
|
virtualinherited |
Sets _computeCanceled to true.
It's usage depends on implementation of a particular mesher.
Reimplemented in StdMeshers_Regular_1D.
References COMPERR_CANCELED.
Referenced by StdMeshers_Regular_1D::CancelCompute().
|
virtual |
Check presence of a hypothesis.
Implements SMESH_Algo.
References SMESHDS_Hypothesis::GetName(), SMESH_Hypothesis::HYP_ALREADY_EXIST, SMESH_Hypothesis::HYP_INCOMPATIBLE, SMESH_Hypothesis::HYP_MISSING, and SMESH_Hypothesis::HYP_OK.
|
virtual |
Import elements from the other mesh.
Implements SMESH_Algo.
References Abs(), SMESHDS_Mesh::AddEdge(), SMESH_MesherHelper::AddEdge(), SMESHDS_Mesh::AddFace(), SMESHDS_Mesh::AddNode(), SMESHDS_Mesh::AddPolygonalFace(), SMESH_MesherHelper::AddTLinks(), SMDS_MeshCell::applyInterlace(), SMDS_MeshElement::begin_nodes(), SMESH_subMesh::CHECK_COMPUTE_STATE, SMESH_MesherHelper::CheckNodeU(), SMESH_MesherHelper::CheckNodeUV(), COMPERR_BAD_INPUT_MESH, SMESH_subMesh::COMPUTE_OK, Edge, Face, SMDS_Mesh::FindElement(), SMESH_MesherHelper::GetCommonAncestor(), SMESHDS_GroupBase::GetElements(), SMDS_MeshElement::GetEntityType(), SMDS_MeshElement::GetID(), SMDS_MeshNode::GetInverseElementIterator(), StdMeshers_Import_1D::getMaps(), SMESHDS_GroupBase::GetMesh(), SMDS_MeshElement::GetNode(), SMESH_MesherHelper::GetNodeU(), SMESH_MesherHelper::GetNodeUV(), SMESH_MesherHelper::GetOtherParam(), SMESH_MesherHelper::GetPeriodicIndex(), SMESHDS_Mesh::GetPersistentId(), SMESH_MesherHelper::GetProjector(), SMDS_MeshElement::getshapeId(), SMESH_MesherHelper::GetSubShapeByNode(), SMESH_MesherHelper::GetSubShapeID(), SMESH_MesherHelper::GetSubShapeOri(), Handle(), SMESH_MesherHelper::HasSeam(), StdMeshers_Import_1D::importMesh(), SMESHDS_Mesh::IndexToShape(), SMESH_Algo::isDegenerated(), SMDS_MeshElement::IsPoly(), SMESH_MesherHelper::IsRealSeam(), SMESH_MesherHelper::IthVertex(), SMESH_MesherHelper::MaxTolerance(), SMESHDS_Mesh::MeshElements(), SMESH_MesherHelper::NbAncestors(), SMDS_MeshElement::NbCornerNodes(), SMDS_MeshElement::NbNodes(), SMESH_OctreeNode::NodesAround(), SMESHDS_SubMesh::RemoveNode(), reverse(), SMDS_MeshCell::reverseSmdsOrder(), second, SMESH_MesherHelper::SetElementsOnShape(), SMESHDS_Mesh::SetMeshElementOnShape(), SMESHDS_Mesh::SetNodeOnEdge(), SMESHDS_Mesh::SetNodeOnFace(), SMESH_MesherHelper::SetSubShape(), SMESHDS_Mesh::ShapeToIndex(), SMESHDS_Mesh::ShapeToMesh(), SMDSAbs_Edge, SMDSAbs_Face, SMESH_Algo::VertexNode(), and SMESH_MesherHelper::WrapIndex().
|
virtualinherited |
Computes mesh without geometry.
aMesh | - the mesh |
aHelper | - helper that must be used for adding elements to |
bool | - is a success |
The method is called if ( !aMesh->HasShapeToMesh() )
Reimplemented in StdMeshers_Hexa_3D, and StdMeshers_HexaFromSkin_3D.
|
staticinherited |
Return continuity of two edges.
E1 | - the 1st edge |
E2 | - the 2nd edge |
GeomAbs_Shape | - regularity at the junction between E1 and E2 |
References OCC_CATCH_SIGNALS.
|
virtualinherited |
The returned value is used by NotifySubMeshesHypothesisModification() to decide to call subMesh->AlgoStateEngine( MODIF_HYP, hyp ) or not if subMesh is ready to be computed (algo+hyp==OK) but not yet computed.
True result is reasonable for example if EventListeners depend on parameters of hypothesis.
Reimplemented in StdMeshers_ImportSource1D.
|
staticinherited |
Compute length of an edge.
E | - the edge |
double | - the length |
References Handle().
Referenced by StdMeshers_ProjectionUtils::FindFaceAssociation(), VISCOUS_3D::_ViscousBuilder::findShapesToSmooth(), StdMeshers_Quadrangle_2D::getCorners(), SMESH_MesherHelper::LoadNodeColumns(), VISCOUS_3D::_Smoother1D::prepare(), StdMeshers_AutomaticLength::SetParametersByMesh(), StdMeshers_FaceSide::StdMeshers_FaceSide(), and VISCOUS_3D::_ViscousBuilder::updateNormalsOfC1Vertices().
|
protectedinherited |
store error and comment and then return ( error == COMPERR_OK )
Referenced by StdMeshers_HexaFromSkin_3D::Compute(), StdMeshers_CompositeHexa_3D::Compute(), TNodeDistributor::Compute(), StdMeshers_HexaFromSkin_3D::Evaluate(), and StdMeshers_CompositeHexa_3D::findBoxFaces().
|
protectedinherited |
store COMPERR_ALGO_FAILED error and comment and then return false
References COMPERR_ALGO_FAILED, and SMESH_Algo::error().
Referenced by SMESH_Algo::error().
|
protectedinherited |
store error and return error->IsOK()
store error and return ( error == COMPERR_OK )
|
virtual |
Predict nb of mesh entities created by Compute()
Implements SMESH_Algo.
References Abs(), SMESH_MesherHelper::AddNode(), SMESH_MesherHelper::CheckNodeU(), SMESH_MesherHelper::CheckNodeUV(), Edge, Face, SMESHDS_GroupBase::GetElements(), SMDS_MeshElement::GetEntityType(), SMESH_MesherHelper::GetMeshDS(), SMDS_MeshElement::GetNode(), StdMeshers_Import_1D::getSubMeshOfCopiedMesh(), SMDS_MeshElement::IsQuadratic(), SMESH_MesherHelper::IsSeamShape(), SMDS_MeshElement::NbCornerNodes(), SMDS_MeshInfo::NbEntities(), SMDS_MeshElement::NbNodes(), SMESH_TLink::node1(), SMESH_TLink::node2(), SMDS_MeshElement::nodesIterator(), SMESHDS_Mesh::RemoveNode(), SMESH_MesherHelper::SetSubShape(), SMDS_MeshNode::setXYZ(), SMDSEntity_Edge, SMDSEntity_Last, SMDSEntity_Node, and SMDSEntity_Quad_Edge.
|
virtualinherited |
Method in which an algorithm generating a structured mesh fixes positions of in-face nodes after there movement due to insertion of viscous layers.
References SMESH_TNodeXYZ::Distance(), SMESH_MeshAlgos::FindFaceInSet(), SMESHDS_SubMesh::GetElements(), SMESH_ProxyMesh::GetMesh(), SMESH_ProxyMesh::GetMeshDS(), SMDS_MeshElement::GetNode(), SMDS_MeshNode::GetPosition(), SMESH_ProxyMesh::GetSubMesh(), Handle(), SMESHDS_Mesh::MoveNode(), SMDS_MeshElement::NbCornerNodes(), SMESHDS_SubMesh::NbElements(), SMDS_MeshElement::nodeIterator(), SMDSAbs_Face, and SMDS_MeshNode::X().
|
inherited |
Returns a list of compatible hypotheses assigned to a shape in a mesh.
List the relevant hypothesis associated to the shape.
aMesh | - the mesh |
aShape | - the shape |
ignoreAuxiliary | - do not include auxiliary hypotheses in the list |
const | std::list <const SMESHDS_Hypothesis*> - hypotheses list |
List the relevant hypothesis associated to the shape. Relevant hypothesis have a name (type) listed in the algorithm. Hypothesis associated to father shape -are not- taken into account (see GetUsedHypothesis)
Relevant hypothesis have a name (type) listed in the algorithm. Hypothesis associated to father shape -are not- taken into account (see GetUsedHypothesis)
References me.
|
inherited |
Returns the filter recognizing only compatible hypotheses.
ignoreAuxiliary | - make filter ignore compatible auxiliary hypotheses |
SMESH_HypoFilter* | - the filter that can be NULL |
ignoreAuxiliary | - make filter ignore auxiliary hypotheses |
SMESH_HypoFilter* | - the filter that can be NULL |
References SMESH_HypoFilter::AndNot(), SMESH_HypoFilter::HasName(), SMESH_HypoFilter::Init(), SMESH_HypoFilter::IsAuxiliary(), me, and SMESH_HypoFilter::Or().
|
inherited |
Returns all types of compatible hypotheses.
|
inherited |
return compute error
References SMESH_ComputeError::New().
Referenced by StdMeshers_Hexa_3D::Compute().
|
virtualinherited |
Referenced by SMESH_Gen::TAlgoStateError::Set().
|
staticinherited |
Returns a structure describing algorithm features.
Return Data of the algorithm.
References SMESH_Algo::Features::_dim, SMESH_Algo::Features::_inElemTypes, SMESH_Algo::Features::_label, SMESH_Algo::Features::_outElemTypes, SMESH_Gen::GetPluginXMLPaths(), SMDSGeom_EDGE, SMDSGeom_QUADRANGLE, and SMDSGeom_TRIANGLE.
|
inherited |
References SMESH_Algo::GetFeatures().
Referenced by SMESH_Algo::GetFeatures().
|
inherited |
Referenced by StdMeshers_Hexa_3D::Compute().
|
inherited |
Referenced by SMESHDS_Document::AddHypothesis().
|
virtualinherited |
|
inherited |
Find a mesh with given persistent ID.
References studyContextStruct::mapMesh.
|
staticinherited |
Finds topological errors of a sub-mesh.
References SMESHDS_SubMesh::GetElements(), SMDS_VolumeTool::GetFaceNodes(), SMDS_MeshElement::GetNode(), SMDS_MeshNode::GetPosition(), SMDS_Position::GetTypeOfPosition(), SMDS_VolumeTool::IsFreeFace(), SMDS_MeshElement::NbCornerNodes(), SMDS_VolumeTool::NbFaceNodes(), SMDS_VolumeTool::NbFaces(), SMESH_TLink::node1(), SMESH_TLink::node2(), SMDS_VolumeTool::Set(), SMDS_TOP_EDGE, and SMDS_TOP_FACE.
|
inherited |
Referenced by StdMeshers_Projection_3D::CheckHypothesis(), StdMeshers_Projection_2D::CheckHypothesis(), CheckHypothesis(), StdMeshers_Import_1D::CheckHypothesis(), StdMeshers_Projection_1D::CheckHypothesis(), StdMeshers_RadialQuadrangle_1D2D::CheckHypothesis(), StdMeshers_RadialPrism_3D::CheckHypothesis(), StdMeshers_Regular_1D::CheckHypothesis(), StdMeshers_MEFISTO_2D::CheckHypothesis(), and StdMeshers_Quadrangle_2D::CheckHypothesis().
|
staticinherited |
Fill vector of node parameters on geometrical edge, including vertex nodes.
theMesh | - The mesh containing nodes |
theEdge | - The geometrical edge of interest |
theParams | - The resulting vector of sorted node parameters |
bool | - false if not all parameters are OK |
theMesh | - The mesh containing nodes |
theEdge | - The geometrical edge of interest |
theParams | - The resulting vector of sorted node parameters |
bool | - false if not all parameters are OK |
References SMESHDS_SubMesh::GetElements(), SMESHDS_SubMesh::GetNodes(), SMDS_MeshNode::GetPosition(), SMDS_Position::GetTypeOfPosition(), SMDS_EdgePosition::GetUParameter(), SMESHDS_Mesh::MeshElements(), second, and SMDS_TOP_EDGE.
Referenced by StdMeshers_Projection_1D::Compute(), StdMeshers_Projection_1D::Evaluate(), StdMeshers_Geometric1D::SetParametersByMesh(), StdMeshers_Deflection1D::SetParametersByMesh(), StdMeshers_MaxLength::SetParametersByMesh(), StdMeshers_LocalLength::SetParametersByMesh(), StdMeshers_StartEndLength::SetParametersByMesh(), and StdMeshers_Arithmetic1D::SetParametersByMesh().
|
virtualinherited |
If possible, returns progress of computation [0.,1.
]
|
inherited |
Return compute progress by nb of calls of this method.
|
virtualinherited |
|
staticinherited |
Fill map of node parameter on geometrical edge to node it-self.
Fill vector of node parameters on geometrical edge, including vertex nodes.
theMesh | - The mesh containing nodes |
theEdge | - The geometrical edge of interest |
theNodes | - The resulting map |
ignoreMediumNodes | - to store medium nodes of quadratic elements or not |
typeToCheck | - type of elements to check for medium nodes |
bool | - false if not all parameters are OK |
theMesh | - The mesh containing nodes |
theEdge | - The geometrical edge of interest |
theParams | - The resulting vector of sorted node parameters |
bool | - false if not all parameters are OK |
References SMESHDS_SubMesh::GetNodes(), SMDS_MeshNode::GetPosition(), SMDS_Position::GetTypeOfPosition(), SMDS_EdgePosition::GetUParameter(), SMESH_MesherHelper::IsMedium(), SMESHDS_Mesh::MeshElements(), SMESHDS_SubMesh::NbElements(), SMESHDS_SubMesh::NbNodes(), and SMDS_TOP_EDGE.
Referenced by VISCOUS_3D::_ViscousBuilder::addBoundaryElements(), StdMeshers_Regular_1D::computeInternalParameters(), SMESH_Pattern::findExistingNodes(), SMESH_MesherHelper::IsStructured(), SMESH_MesherHelper::LoadNodeColumns(), VISCOUS_3D::_ViscousBuilder::shrink(), and _FaceSide::StoreNodes().
|
inherited |
|
inherited |
Referenced by checkConformIgnoredAlgos(), SMESH_Hypothesis::IsAuxiliary(), and SMESH_Mesh::IsUsedHypothesis().
|
virtualinherited |
Returns a list of compatible hypotheses used to mesh a shape.
List the hypothesis used by the algorithm associated to the shape.
aMesh | - the mesh |
aShape | - the shape |
ignoreAuxiliary | - do not include auxiliary hypotheses in the list |
const | std::list <const SMESHDS_Hypothesis*> - hypotheses list |
List the hypothesis used by the algorithm associated to the shape. Hypothesis associated to father shape -are- taken into account (see GetAppliedHypothesis). Relevant hypothesis have a name (type) listed in the algorithm. This method could be surcharged by specific algorithms, in case of several hypothesis simultaneously applicable.
Hypothesis associated to father shape -are- taken into account (see GetAppliedHypothesis). Relevant hypothesis have a name (type) listed in the algorithm. This method could be surcharged by specific algorithms, in case of several hypothesis simultaneously applicable.
References me.
Referenced by StdMeshers_SegmentAroundVertex_0D::CheckHypothesis(), and StdMeshers_Regular_1D::GetUsedHypothesis().
|
inherited |
initialize compute error etc.
initialize compute error before call of Compute()
before call of Compute()
References COMPERR_OK.
Referenced by StdMeshers_Hexa_3D::Compute().
|
virtualinherited |
Return true if me is an auxiliary hypothesis.
bool | - auxiliary or not |
An auxiliary hypothesis is optional, i.e. an algorithm can work without it and another hypothesis of the same dimension can be assigned to the shape
References SMESHDS_Hypothesis::GetType().
|
staticinherited |
Return true if an edge can be considered as a continuation of another.
Referenced by StdMeshers_Quadrangle_2D::checkNbEdgesForEvaluate(), and _QuadFaceGrid::Init().
|
staticinherited |
Return true if an edge has no 3D curve.
References Handle().
Referenced by SMESH_subMesh::checkComputeError(), StdMeshers_Quadrangle_2D::CheckNbEdges(), Compute(), StdMeshers_Cartesian_3D::Compute(), StdMeshers_ProjectionUtils::FindFaceAssociation(), VISCOUS_3D::_ViscousBuilder::findShapesToSmooth(), VISCOUS_3D::getConcaveVertices(), StdMeshers_Quadrangle_2D::getCorners(), VISCOUS_3D::getFaceDir(), StdMeshers_PrismAsBlock::GetLayersTransformation(), StdMeshers_Prism_3D::getWallFaces(), StdMeshers_Quadrangle_2D::IsApplicable(), VISCOUS_3D::isConcave(), StdMeshers_Prism_3D::isSimpleBottom(), and SMESH_MesherHelper::SetSubShape().
|
inherited |
Compare types of hypotheses.
References SMESHDS_Hypothesis::_name.
Referenced by StdMeshers_Regular_1D::CheckHypothesis().
|
staticinherited |
|
staticinherited |
Return true if an edge can be considered straight.
References Min().
Referenced by Handle(), and VISCOUS_3D::_ViscousBuilder::limitMaxLenByCurvature().
|
virtualinherited |
Loads nothing from a stream.
load | - the stream |
std::ostream | & - the stream |
Implements SMESHDS_Hypothesis.
|
inherited |
|
inherited |
|
virtualinherited |
References studyContextStruct::mapMesh.
Referenced by StdMeshers_Reversible1D::SetReversedEdges(), and StdMeshers_ProjectionSource2D::SetSourceMesh().
|
inherited |
References Edge.
|
inherited |
|
inherited |
|
virtualinherited |
Equality.
References SMESHDS_Hypothesis::_name.
|
virtualinherited |
Saves nothing in a stream.
Usually an algorithm has nothing to save.
save | - the stream |
std::ostream | & - the stream |
Implements SMESHDS_Hypothesis.
|
virtual |
Set needed event listeners and create a submesh for a copied mesh.
This method is called only if a submesh has HYP_OK algo_state.
Reimplemented from SMESH_Algo.
References StdMeshers_Import_1D::setEventListener().
|
inherited |
|
virtualinherited |
Initialize my parameter values by default parameters.
bool | - true if parameter values have been successfully defined |
Implements SMESH_Hypothesis.
|
virtualinherited |
Just return false as the algorithm does not hold parameters values.
Implements SMESH_Hypothesis.
|
inherited |
Return a vector of sub-meshes to Compute()
|
virtual |
Allow algo to do something after persistent restoration.
subMesh | - restored submesh |
This method is called only if a submesh has HYP_OK algo_state.
Reimplemented from SMESH_Algo.
References StdMeshers_ProjectionUtils::SetEventListener().
|
inherited |
|
staticinherited |
Return the node built on a vertex.
V | - the vertex |
meshDS | - mesh data structure |
const | SMDS_MeshNode* - found node or NULL |
V | - the vertex |
meshDS | - mesh |
const | SMDS_MeshNode* - found node or NULL |
References SMESHDS_Mesh::MeshElements().
Referenced by StdMeshers_CompositeSegment_1D::Compute(), StdMeshers_Import_1D::Compute(), Compute(), StdMeshers_Regular_1D::Compute(), StdMeshers_Prism_3D::computeWalls(), SMESH_Pattern::findExistingNodes(), StdMeshers_ProjectionUtils::FindMatchingNodesOnFaces(), StdMeshers_Quadrangle_2D::getEnforcedUV(), StdMeshers_FaceSide::GetFaceWires(), SMESH_MesherHelper::IsStructured(), VISCOUS_3D::_ViscousBuilder::makeLayer(), and StdMeshers_FaceSide::VertexNode().
|
staticinherited |
Return the node built on a vertex.
A node moved to other geometry by MergeNodes() is also returned.
V | - the vertex |
mesh | - mesh |
const | SMDS_MeshNode* - found node or NULL |
References SMESH_MesherHelper::GetAncestors().
|
staticinherited |
Return the node built on a vertex.
A node moved to other geometry by MergeNodes() is also returned.
V | - the vertex |
edgeSM | - sub-mesh of a meshed EDGE sharing the vertex |
mesh | - the mesh |
checkV | - if true , presence of a node on the vertex is checked |
const | SMDS_MeshNode* - found node or NULL |
|
protectedinherited |
|
protectedinherited |
to explain COMPERR_BAD_INPUT_MESH
|
protectedinherited |
any text explaining what is wrong in Compute()
|
protectedinherited |
Referenced by SMESH_Algo::SMESH_Algo().
|
protectedinherited |
Referenced by StdMeshers_Cartesian_3D::StdMeshers_Cartesian_3D(), StdMeshers_Hexa_3D::StdMeshers_Hexa_3D(), StdMeshers_Import_1D::StdMeshers_Import_1D(), StdMeshers_Import_1D2D(), StdMeshers_MEFISTO_2D::StdMeshers_MEFISTO_2D(), StdMeshers_Projection_1D::StdMeshers_Projection_1D(), StdMeshers_Projection_2D::StdMeshers_Projection_2D(), StdMeshers_Projection_3D::StdMeshers_Projection_3D(), StdMeshers_QuadFromMedialAxis_1D2D::StdMeshers_QuadFromMedialAxis_1D2D(), StdMeshers_Quadrangle_2D::StdMeshers_Quadrangle_2D(), StdMeshers_RadialPrism_3D::StdMeshers_RadialPrism_3D(), StdMeshers_RadialQuadrangle_1D2D::StdMeshers_RadialQuadrangle_1D2D(), and StdMeshers_Regular_1D::StdMeshers_Regular_1D().
|
protectedinherited |
Referenced by SMESH_Algo::SMESH_Algo().
|
protectedinherited |
is set to True while computing to stop it
|
protectedinherited |
SMESH_ComputeErrorName or anything algo specific.
Referenced by SMESH_Algo::SMESH_Algo().
|
protectedinherited |
Referenced by SMESH_Hypothesis::SMESH_Hypothesis().
|
protectedinherited |
|
protectedinherited |
Referenced by SMESHDS_Hypothesis::IsSameName(), SMESHDS_Hypothesis::operator==(), StdMeshers_Adaptive1D::StdMeshers_Adaptive1D(), StdMeshers_Arithmetic1D::StdMeshers_Arithmetic1D(), StdMeshers_AutomaticLength::StdMeshers_AutomaticLength(), StdMeshers_Cartesian_3D::StdMeshers_Cartesian_3D(), StdMeshers_CartesianParameters3D::StdMeshers_CartesianParameters3D(), StdMeshers_CompositeHexa_3D::StdMeshers_CompositeHexa_3D(), StdMeshers_CompositeSegment_1D::StdMeshers_CompositeSegment_1D(), StdMeshers_Deflection1D::StdMeshers_Deflection1D(), StdMeshers_FixedPoints1D::StdMeshers_FixedPoints1D(), StdMeshers_Geometric1D::StdMeshers_Geometric1D(), StdMeshers_Hexa_3D::StdMeshers_Hexa_3D(), StdMeshers_HexaFromSkin_3D::StdMeshers_HexaFromSkin_3D(), StdMeshers_Import_1D::StdMeshers_Import_1D(), StdMeshers_Import_1D2D(), StdMeshers_ImportSource1D::StdMeshers_ImportSource1D(), StdMeshers_ImportSource2D::StdMeshers_ImportSource2D(), StdMeshers_LayerDistribution::StdMeshers_LayerDistribution(), StdMeshers_LayerDistribution2D::StdMeshers_LayerDistribution2D(), StdMeshers_LengthFromEdges::StdMeshers_LengthFromEdges(), StdMeshers_LocalLength::StdMeshers_LocalLength(), StdMeshers_MaxElementArea::StdMeshers_MaxElementArea(), StdMeshers_MaxElementVolume::StdMeshers_MaxElementVolume(), StdMeshers_MaxLength::StdMeshers_MaxLength(), StdMeshers_MEFISTO_2D::StdMeshers_MEFISTO_2D(), StdMeshers_NotConformAllowed::StdMeshers_NotConformAllowed(), StdMeshers_NumberOfLayers::StdMeshers_NumberOfLayers(), StdMeshers_NumberOfLayers2D::StdMeshers_NumberOfLayers2D(), StdMeshers_NumberOfSegments::StdMeshers_NumberOfSegments(), StdMeshers_PolygonPerFace_2D::StdMeshers_PolygonPerFace_2D(), StdMeshers_Prism_3D::StdMeshers_Prism_3D(), StdMeshers_Projection_1D::StdMeshers_Projection_1D(), StdMeshers_Projection_1D2D::StdMeshers_Projection_1D2D(), StdMeshers_Projection_2D::StdMeshers_Projection_2D(), StdMeshers_Projection_3D::StdMeshers_Projection_3D(), StdMeshers_ProjectionSource1D::StdMeshers_ProjectionSource1D(), StdMeshers_ProjectionSource2D::StdMeshers_ProjectionSource2D(), StdMeshers_ProjectionSource3D::StdMeshers_ProjectionSource3D(), StdMeshers_Propagation::StdMeshers_Propagation(), StdMeshers_PropagOfDistribution::StdMeshers_PropagOfDistribution(), StdMeshers_QuadFromMedialAxis_1D2D::StdMeshers_QuadFromMedialAxis_1D2D(), StdMeshers_Quadrangle_2D::StdMeshers_Quadrangle_2D(), StdMeshers_QuadrangleParams::StdMeshers_QuadrangleParams(), StdMeshers_QuadranglePreference::StdMeshers_QuadranglePreference(), StdMeshers_QuadraticMesh::StdMeshers_QuadraticMesh(), StdMeshers_RadialPrism_3D::StdMeshers_RadialPrism_3D(), StdMeshers_RadialQuadrangle_1D2D::StdMeshers_RadialQuadrangle_1D2D(), StdMeshers_Regular_1D::StdMeshers_Regular_1D(), StdMeshers_StartEndLength::StdMeshers_StartEndLength(), StdMeshers_ViscousLayers::StdMeshers_ViscousLayers(), and StdMeshers_ViscousLayers2D::StdMeshers_ViscousLayers2D().
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
Referenced by SMESH_Hypothesis::SMESH_Hypothesis(), StdMeshers_Adaptive1D::StdMeshers_Adaptive1D(), StdMeshers_Arithmetic1D::StdMeshers_Arithmetic1D(), StdMeshers_AutomaticLength::StdMeshers_AutomaticLength(), StdMeshers_CartesianParameters3D::StdMeshers_CartesianParameters3D(), StdMeshers_Deflection1D::StdMeshers_Deflection1D(), StdMeshers_FixedPoints1D::StdMeshers_FixedPoints1D(), StdMeshers_ImportSource1D::StdMeshers_ImportSource1D(), StdMeshers_ImportSource2D::StdMeshers_ImportSource2D(), StdMeshers_LayerDistribution::StdMeshers_LayerDistribution(), StdMeshers_LayerDistribution2D::StdMeshers_LayerDistribution2D(), StdMeshers_LengthFromEdges::StdMeshers_LengthFromEdges(), StdMeshers_LocalLength::StdMeshers_LocalLength(), StdMeshers_MaxElementArea::StdMeshers_MaxElementArea(), StdMeshers_MaxElementVolume::StdMeshers_MaxElementVolume(), StdMeshers_MaxLength::StdMeshers_MaxLength(), StdMeshers_NotConformAllowed::StdMeshers_NotConformAllowed(), StdMeshers_NumberOfLayers::StdMeshers_NumberOfLayers(), StdMeshers_NumberOfLayers2D::StdMeshers_NumberOfLayers2D(), StdMeshers_NumberOfSegments::StdMeshers_NumberOfSegments(), StdMeshers_ProjectionSource1D::StdMeshers_ProjectionSource1D(), StdMeshers_ProjectionSource2D::StdMeshers_ProjectionSource2D(), StdMeshers_ProjectionSource3D::StdMeshers_ProjectionSource3D(), StdMeshers_Propagation::StdMeshers_Propagation(), StdMeshers_QuadrangleParams::StdMeshers_QuadrangleParams(), StdMeshers_QuadranglePreference::StdMeshers_QuadranglePreference(), StdMeshers_QuadraticMesh::StdMeshers_QuadraticMesh(), StdMeshers_Reversible1D::StdMeshers_Reversible1D(), StdMeshers_StartEndLength::StdMeshers_StartEndLength(), StdMeshers_ViscousLayers::StdMeshers_ViscousLayers(), and StdMeshers_ViscousLayers2D::StdMeshers_ViscousLayers2D().
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
Referenced by StdMeshers_CompositeHexa_3D::Compute(), and SMESH_Algo::SMESH_Algo().
|
protectedinherited |
Referenced by SMESH_Algo::SMESH_Algo(), StdMeshers_Cartesian_3D::StdMeshers_Cartesian_3D(), StdMeshers_Import_1D2D(), StdMeshers_Prism_3D::StdMeshers_Prism_3D(), StdMeshers_Projection_1D2D::StdMeshers_Projection_1D2D(), StdMeshers_QuadFromMedialAxis_1D2D::StdMeshers_QuadFromMedialAxis_1D2D(), and StdMeshers_RadialQuadrangle_1D2D::StdMeshers_RadialQuadrangle_1D2D().
|
protectedinherited |
Referenced by SMESH_Algo::SMESH_Algo(), and StdMeshers_Hexa_3D::StdMeshers_Hexa_3D().
|
protectedinherited |
Referenced by SMESH_0D_Algo::SMESH_0D_Algo(), SMESH_1D_Algo::SMESH_1D_Algo(), SMESH_2D_Algo::SMESH_2D_Algo(), SMESH_3D_Algo::SMESH_3D_Algo(), SMESH_Hypothesis::SMESH_Hypothesis(), StdMeshers_Cartesian_3D::StdMeshers_Cartesian_3D(), StdMeshers_CompositeHexa_3D::StdMeshers_CompositeHexa_3D(), StdMeshers_Hexa_3D::StdMeshers_Hexa_3D(), StdMeshers_Import_1D::StdMeshers_Import_1D(), StdMeshers_Import_1D2D(), StdMeshers_MEFISTO_2D::StdMeshers_MEFISTO_2D(), StdMeshers_Prism_3D::StdMeshers_Prism_3D(), StdMeshers_Projection_1D::StdMeshers_Projection_1D(), StdMeshers_Projection_3D::StdMeshers_Projection_3D(), StdMeshers_QuadFromMedialAxis_1D2D::StdMeshers_QuadFromMedialAxis_1D2D(), StdMeshers_Quadrangle_2D::StdMeshers_Quadrangle_2D(), StdMeshers_RadialPrism_3D::StdMeshers_RadialPrism_3D(), StdMeshers_RadialQuadrangle_1D2D::StdMeshers_RadialQuadrangle_1D2D(), and StdMeshers_Regular_1D::StdMeshers_Regular_1D().
|
protectedinherited |
|
private |
|
protectedinherited |
Referenced by SMESH_Hypothesis::SMESH_Hypothesis().
|
protectedinherited |
Referenced by SMESH_Algo::SMESH_Algo(), StdMeshers_Cartesian_3D::StdMeshers_Cartesian_3D(), StdMeshers_Import_1D2D(), StdMeshers_Prism_3D::StdMeshers_Prism_3D(), StdMeshers_Projection_1D2D::StdMeshers_Projection_1D2D(), StdMeshers_QuadFromMedialAxis_1D2D::StdMeshers_QuadFromMedialAxis_1D2D(), and StdMeshers_RadialQuadrangle_1D2D::StdMeshers_RadialQuadrangle_1D2D().
|
protectedinherited |
|
protectedinherited |