Go to the documentation of this file.
28 #ifndef _SMESH_REGULAR_1D_HXX_
29 #define _SMESH_REGULAR_1D_HXX_
48 const TopoDS_Shape& aShape,
52 const TopoDS_Shape& aShape);
57 virtual const std::list <const SMESHDS_Hypothesis *> &
84 std::list<double> & theParameters,
85 const bool theReverse,
86 bool theConsiderPropagation =
false);
91 std::list< double > & theParameters,
92 const TopoDS_Vertex & theVf,
93 const TopoDS_Vertex & theVl);
100 const TopoDS_Vertex & theV);
102 enum HypothesisType { LOCAL_LENGTH, MAX_LENGTH, NB_SEGMENTS, BEG_END_LENGTH, DEFLECTION, ARITHMETIC_1D, FIXED_POINTS_1D, NONE };
105 SCALE_FACTOR_IND = 0,
132 std::vector<double> _vvalue[1];
133 std::string _svalue[1];
virtual bool Compute(SMESH_Mesh &aMesh, const TopoDS_Shape &aShape)
Computes mesh on a shape.
std::vector< int > _revEdgesIDs
virtual bool Evaluate(SMESH_Mesh &aMesh, const TopoDS_Shape &aShape, MapShapeNbElems &aResMap)
evaluates size of prospective mesh on a shape
virtual void SetEventListener(SMESH_subMesh *subMesh)
Sets event listener to submeshes if necessary.
This hypothesis specifies length of segments adjacent to the vertex the hypothesis is assigned to.
virtual ~StdMeshers_Regular_1D()
static const StdMeshers_SegmentLengthAroundVertex * getVertexHyp(SMESH_Mesh &theMesh, const TopoDS_Vertex &theV)
Return StdMeshers_SegmentLengthAroundVertex assigned to vertex.
virtual void redistributeNearVertices(SMESH_Mesh &theMesh, Adaptor3d_Curve &theC3d, double theLength, std::list< double > &theParameters, const TopoDS_Vertex &theVf, const TopoDS_Vertex &theVl)
virtual bool CheckHypothesis(SMESH_Mesh &aMesh, const TopoDS_Shape &aShape, SMESH_Hypothesis::Hypothesis_Status &aStatus)
Check hypothesis definition to mesh a shape.
const StdMeshers_FixedPoints1D * _fpHyp
std::map< SMESH_subMesh *, std::vector< int > > MapShapeNbElems
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)
#define STDMESHERS_EXPORT
StdMeshers_Regular_1D(int hypId, int studyId, SMESH_Gen *gen)
virtual const std::list< const SMESHDS_Hypothesis * > & GetUsedHypothesis(SMESH_Mesh &aMesh, const TopoDS_Shape &aShape, const bool=true)
Returns a list of compatible hypotheses used to mesh a shape.
void SubmeshRestored(SMESH_subMesh *subMesh)
Allow algo to do something after persistent restoration.