Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
896ab9b
)
IPAL54630: Wire discretization error
author
eap
<eap@opencascade.com>
Thu, 19 Mar 2020 14:16:21 +0000
(17:16 +0300)
committer
eap
<eap@opencascade.com>
Thu, 19 Mar 2020 14:16:21 +0000
(17:16 +0300)
src/StdMeshers/StdMeshers_Regular_1D.cxx
patch
|
blob
|
history
diff --git
a/src/StdMeshers/StdMeshers_Regular_1D.cxx
b/src/StdMeshers/StdMeshers_Regular_1D.cxx
index 45e1c25b62b66b5ef6291b2e8a6b681c87c1defd..cad9b2e031204613ea53cb205aab0512b75ed5a4 100644
(file)
--- a/
src/StdMeshers/StdMeshers_Regular_1D.cxx
+++ b/
src/StdMeshers/StdMeshers_Regular_1D.cxx
@@
-362,7
+362,10
@@
static bool computeParamByFunc(Adaptor3d_Curve& C3d,
int nbPnt = 1 + nbSeg;
vector<double> x( nbPnt, 0. );
int nbPnt = 1 + nbSeg;
vector<double> x( nbPnt, 0. );
- if ( !buildDistribution( func, 0.0, 1.0, nbSeg, x, 1E-4 ))
+
+ const double eps = Min( 1E-4, 1./nbSeg/100. );
+
+ if ( !buildDistribution( func, 0.0, 1.0, nbSeg, x, eps ))
return false;
// apply parameters in range [0,1] to the space of the curve
return false;
// apply parameters in range [0,1] to the space of the curve