1D algo More...
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 | |
Algo1D (int studyId, SMESH_Gen *gen) | |
void | SetSegmentLength (double len) |
void | SetRadialDistribution (const SMESHDS_Hypothesis *hyp) |
void | ComputeDistribution (SMESH_MesherHelper &theHelper, const gp_Pnt &thePnt1, const gp_Pnt &thePnt2, list< double > &theParams) |
virtual const list< const SMESHDS_Hypothesis * > & | GetUsedHypothesis (SMESH_Mesh &, const TopoDS_Shape &, const bool) |
See comments in SMESH_Algo.cxx. More... | |
virtual bool | CheckHypothesis (SMESH_Mesh &aMesh, const TopoDS_Shape &aShape, SMESH_Hypothesis::Hypothesis_Status &aStatus) |
Check hypothesis definition to mesh a shape. More... | |
virtual bool | Compute (SMESH_Mesh &aMesh, const TopoDS_Shape &aShape) |
Computes mesh on a shape. More... | |
virtual bool | Compute (SMESH_Mesh &aMesh, SMESH_MesherHelper *aHelper) |
Computes mesh without geometry. More... | |
virtual bool | Evaluate (SMESH_Mesh &aMesh, const TopoDS_Shape &aShape, MapShapeNbElems &aResMap) |
evaluates size of prospective mesh on a shape More... | |
virtual void | CancelCompute () |
Pass CancelCompute() to a child algorithm. 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... | |
virtual void | SetEventListener (SMESH_subMesh *subMesh) |
Sets event listener to submeshes if necessary. More... | |
void | SubmeshRestored (SMESH_subMesh *subMesh) |
Allow algo to do something after persistent restoration. 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 double | GetProgress () const |
If possible, returns progress of computation [0.,1. 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 Types | |
enum | HypothesisType { LOCAL_LENGTH, MAX_LENGTH, NB_SEGMENTS, BEG_END_LENGTH, DEFLECTION, ARITHMETIC_1D, FIXED_POINTS_1D, ADAPTIVE, GEOMETRIC_1D, DISTRIB_PROPAGATION, NONE } |
enum | ValueIndex { SCALE_FACTOR_IND = 0, BEG_LENGTH_IND = 0, END_LENGTH_IND = 1, DEFLECTION_IND = 0, PRECISION_IND = 1 } |
enum | IValueIndex { NB_SEGMENTS_IND = 0, DISTR_TYPE_IND = 1, CONV_MODE_IND = 2 } |
enum | VValueIndex { TAB_FUNC_IND = 0 } |
enum | SValueIndex { EXPR_FUNC_IND = 0 } |
Protected Member Functions | |
virtual bool | computeInternalParameters (SMESH_Mesh &theMesh, Adaptor3d_Curve &theC3d, double theLength, double theFirstU, double theLastU, std::list< double > &theParameters, const bool theReverse, bool theConsiderPropagation=false) |
virtual void | redistributeNearVertices (SMESH_Mesh &theMesh, Adaptor3d_Curve &theC3d, double theLength, std::list< double > &theParameters, const TopoDS_Vertex &theVf, const TopoDS_Vertex &theVl) |
Tune parameters to fit "SegmentLengthAroundVertex" hypothesis. More... | |
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) |
Static Protected Member Functions | |
static const StdMeshers_SegmentLengthAroundVertex * | getVertexHyp (SMESH_Mesh &theMesh, const TopoDS_Vertex &theV) |
Return StdMeshers_SegmentLengthAroundVertex assigned to vertex. More... | |
1D algo
|
inherited |
|
inherited |
|
inherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
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 |
Pass CancelCompute() to a child algorithm.
Reimplemented from SMESH_Algo.
References SMESH_Algo::CancelCompute().
|
virtual |
Check hypothesis definition to mesh a shape.
aMesh | - the mesh |
aShape | - the shape |
aStatus | - check result |
bool | - true if hypothesis is well defined |
Textual description of a problem can be stored in _comment field.
Reimplemented from StdMeshers_Regular_1D.
References SMESH_Algo::_usedHypList, and StdMeshers_Regular_1D::CheckHypothesis().
|
virtualinherited |
Computes mesh on a shape.
aMesh | - the mesh |
aShape | - the shape |
bool | - is a success |
Algorithms that !NeedDiscreteBoundary() || !OnlyUnaryInput() are to set SMESH_ComputeError returned by SMESH_submesh::GetComputeError() to report problematic sub-shapes
Implements SMESH_Algo.
Reimplemented in StdMeshers_CompositeSegment_1D.
References SMESHDS_Mesh::AddEdge(), SMESHDS_Mesh::AddNode(), COMPERR_BAD_INPUT_MESH, Edge, Handle(), SMESHDS_Mesh::MeshElements(), SMDS_MeshNode::NbInverseElements(), SMESHDS_Mesh::RemoveFreeElement(), SMESHDS_Mesh::RemoveFreeNode(), SMESHDS_Mesh::RemoveNode(), SMESHDS_Mesh::SetMeshElementOnShape(), SMESHDS_Mesh::SetNodeOnEdge(), SMESHDS_Mesh::ShapeToIndex(), and SMESH_Algo::VertexNode().
Referenced by StdMeshers_CompositeSegment_1D::Compute().
|
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.
void StdMeshers_QuadFromMedialAxis_1D2D::Algo1D::ComputeDistribution | ( | SMESH_MesherHelper & | theHelper, |
const gp_Pnt & | thePnt1, | ||
const gp_Pnt & | thePnt2, | ||
list< double > & | theParams | ||
) |
|
protectedvirtualinherited |
References Abs(), compensateError(), computeParamByFunc(), StdMeshers_NumberOfSegments::DT_ExprFunc, StdMeshers_NumberOfSegments::DT_Regular, StdMeshers_NumberOfSegments::DT_Scale, StdMeshers_NumberOfSegments::DT_TabFunc, Edge, SMESH_Algo::GetSortedNodesOnEdge(), Min(), SMESHDS_SubMesh::NbElements(), SMESHDS_SubMesh::NbNodes(), SMESH_subMesh::READY_TO_COMPUTE, reverse(), SMESH_Gen::SHAPE_ONLY_UPWARD, and SMDSAbs_Edge.
Referenced by TNodeDistributor::Compute(), and ComputeDistribution().
|
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 )
|
virtualinherited |
evaluates size of prospective mesh on a shape
aMesh | - the mesh |
aShape | - the shape |
aResMap | - prospective number of elements by SMDSAbs_ElementType by a sub-mesh |
bool | - is a success |
Implements SMESH_Algo.
References COMPERR_ALGO_FAILED, Edge, Handle(), SMDSEntity_Edge, SMDSEntity_Last, SMDSEntity_Node, and SMDSEntity_Quad_Edge.
|
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(), StdMeshers_Import_1D2D::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().
|
virtual |
See comments in SMESH_Algo.cxx.
Reimplemented from StdMeshers_Regular_1D.
References SMESH_Algo::_usedHypList.
|
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().
|
staticprotectedinherited |
Return StdMeshers_SegmentLengthAroundVertex assigned to vertex.
References SMESH_HypoFilter::HasName().
|
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(), StdMeshers_Import_1D2D::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.
|
protectedvirtualinherited |
Tune parameters to fit "SegmentLengthAroundVertex" hypothesis.
theC3d | - wire curve |
theLength | - curve length |
theParameters | - internal nodes parameters to modify |
theVf | - 1st vertex |
theVl | - 2nd vertex |
References compensateError(), StdMeshers::StdMeshers_SegmentLengthAroundVertex::GetLength(), and Min().
|
virtualinherited |
Saves nothing in a stream.
Usually an algorithm has nothing to save.
save | - the stream |
std::ostream | & - the stream |
Implements SMESHDS_Hypothesis.
|
virtualinherited |
Sets event listener to submeshes if necessary.
Class used to clean mesh on edges when 0D hyp modified.
subMesh | - submesh where algo is set |
This method is called when a submesh gets HYP_OK algo_state. After being set, event listener is notified on each event of a submesh.
Common approach doesn't work when 0D algo is missing because the 0D hyp is considered as not participating in computation whereas it is used by 1D algo.
Clean mesh on edges
event | - algo_event or compute_event itself (of SMESH_subMesh) |
eventType | - ALGO_EVENT or COMPUTE_EVENT (of SMESH_subMesh) |
subMesh | - the submesh where the event occurs |
Sets event listener to vertex submeshes
subMesh | - submesh where algo is set |
This method is called when a submesh gets HYP_OK algo_state. After being set, event listener is notified on each event of a submesh.
Reimplemented from SMESH_Algo.
Reimplemented in StdMeshers_CompositeSegment_1D.
References StdMeshers_Propagation::SetPropagationMgr().
Referenced by StdMeshers_CompositeSegment_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.
void StdMeshers_QuadFromMedialAxis_1D2D::Algo1D::SetRadialDistribution | ( | const SMESHDS_Hypothesis * | hyp | ) |
References SMESH_Algo::_usedHypList.
void StdMeshers_QuadFromMedialAxis_1D2D::Algo1D::SetSegmentLength | ( | double | len | ) |
References SMESH_Algo::_usedHypList.
|
inherited |
Return a vector of sub-meshes to Compute()
|
virtualinherited |
Allow algo to do something after persistent restoration.
Do nothing.
subMesh | - restored submesh |
This method is called only if a submesh has HYP_OK algo_state.
Reimplemented from SMESH_Algo.
|
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(), StdMeshers_Import_1D2D::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 |
|
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_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 StdMeshers_Regular_1D::StdMeshers_Regular_1D().
|
protectedinherited |
Referenced by SMESH_Hypothesis::SMESH_Hypothesis().
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
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_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_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 |
|
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_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 |
|
protectedinherited |
Referenced by SMESH_Hypothesis::SMESH_Hypothesis().
|
protectedinherited |
Referenced by SMESH_Algo::SMESH_Algo(), StdMeshers_Cartesian_3D::StdMeshers_Cartesian_3D(), StdMeshers_Import_1D2D::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 |
|
protectedinherited |
Referenced by CheckHypothesis(), GetUsedHypothesis(), SetRadialDistribution(), and SetSegmentLength().
|
protectedinherited |
|
protectedinherited |