Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://www.salome-platform.org/forum/forum_10/450300019
[modules/smesh.git]
/
src
/
StdMeshers
/
StdMeshers_Regular_1D.hxx
diff --git
a/src/StdMeshers/StdMeshers_Regular_1D.hxx
b/src/StdMeshers/StdMeshers_Regular_1D.hxx
index aed1064abee96b9c69bc7a08751e79813b668de9..7db04d4afee4dc75d2449d98c1de44634ebbebba 100644
(file)
--- a/
src/StdMeshers/StdMeshers_Regular_1D.hxx
+++ b/
src/StdMeshers/StdMeshers_Regular_1D.hxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-201
2
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-201
4
CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@
-6,7
+6,7
@@
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License
, or (at your option) any later version
.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
@@
-31,13
+31,13
@@
#include "SMESH_StdMeshers.hxx"
#include "SMESH_StdMeshers.hxx"
-#include "SMESH_1D_Algo.hxx"
-
-#include "StdMeshers_FixedPoints1D.hxx"
+#include "SMESH_Algo.hxx"
class Adaptor3d_Curve;
class Adaptor3d_Curve;
-class TopoDS_Vertex;
+class StdMeshers_Adaptive1D;
+class StdMeshers_FixedPoints1D;
class StdMeshers_SegmentLengthAroundVertex;
class StdMeshers_SegmentLengthAroundVertex;
+class TopoDS_Vertex;
class STDMESHERS_EXPORT StdMeshers_Regular_1D: public SMESH_1D_Algo
{
class STDMESHERS_EXPORT StdMeshers_Regular_1D: public SMESH_1D_Algo
{
@@
-55,6
+55,8
@@
public:
virtual bool Evaluate(SMESH_Mesh & aMesh, const TopoDS_Shape & aShape,
MapShapeNbElems& aResMap);
virtual bool Evaluate(SMESH_Mesh & aMesh, const TopoDS_Shape & aShape,
MapShapeNbElems& aResMap);
+ virtual void CancelCompute();
+
virtual const std::list <const SMESHDS_Hypothesis *> &
GetUsedHypothesis(SMESH_Mesh & aMesh, const TopoDS_Shape & aShape, const bool=true);
virtual const std::list <const SMESHDS_Hypothesis *> &
GetUsedHypothesis(SMESH_Mesh & aMesh, const TopoDS_Shape & aShape, const bool=true);
@@
-100,7
+102,7
@@
protected:
StdMeshers_SegmentLengthAroundVertex* getVertexHyp(SMESH_Mesh & theMesh,
const TopoDS_Vertex & theV);
StdMeshers_SegmentLengthAroundVertex* getVertexHyp(SMESH_Mesh & theMesh,
const TopoDS_Vertex & theV);
- enum HypothesisType { LOCAL_LENGTH, MAX_LENGTH, NB_SEGMENTS, BEG_END_LENGTH, DEFLECTION, ARITHMETIC_1D, FIXED_POINTS_1D, NONE };
+ enum HypothesisType { LOCAL_LENGTH, MAX_LENGTH, NB_SEGMENTS, BEG_END_LENGTH, DEFLECTION, ARITHMETIC_1D, FIXED_POINTS_1D,
ADAPTIVE, GEOMETRIC_1D,
NONE };
enum ValueIndex {
SCALE_FACTOR_IND = 0,
enum ValueIndex {
SCALE_FACTOR_IND = 0,
@@
-111,9
+113,9
@@
protected:
};
enum IValueIndex {
};
enum IValueIndex {
- NB_SEGMENTS_IND = 0,
- DISTR_TYPE_IND = 1,
- CONV_MODE_IND = 2
+ NB_SEGMENTS_IND
= 0,
+ DISTR_TYPE_IND
= 1,
+ CONV_MODE_IND
= 2
};
enum VValueIndex {
};
enum VValueIndex {
@@
-127,6
+129,7
@@
protected:
HypothesisType _hypType;
const StdMeshers_FixedPoints1D* _fpHyp;
HypothesisType _hypType;
const StdMeshers_FixedPoints1D* _fpHyp;
+ const StdMeshers_Adaptive1D* _adaptiveHyp;
double _value[2];
int _ivalue[3];
double _value[2];
int _ivalue[3];
@@
-137,6
+140,7
@@
protected:
// a source of propagated hypothesis, is set by CheckHypothesis()
// always called before Compute()
TopoDS_Shape _mainEdge;
// a source of propagated hypothesis, is set by CheckHypothesis()
// always called before Compute()
TopoDS_Shape _mainEdge;
+ bool _isPropagOfDistribution;
};
#endif
};
#endif