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:
7eb6cc5
)
Fix the bug reported at the SALOME forum http://salome-platform.org/forum/forum_10...
author
eap
<eap@opencascade.com>
Thu, 1 Sep 2011 11:34:43 +0000
(11:34 +0000)
committer
eap
<eap@opencascade.com>
Thu, 1 Sep 2011 11:34:43 +0000
(11:34 +0000)
map scale distribution of parameter to edge length
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 24aefeb864ef20dfce38c3bcae222ffd3c332685..bedf3692c919b69afaf01d0475e0fcf914d2cfaa 100644
(file)
--- a/
src/StdMeshers/StdMeshers_Regular_1D.cxx
+++ b/
src/StdMeshers/StdMeshers_Regular_1D.cxx
@@
-687,6
+687,14
@@
bool StdMeshers_Regular_1D::computeInternalParameters(SMESH_Mesh & theMesh,
theParams.push_back( param );
}
}
+ const double lenFactor = theLength/(l-f);
+ list<double>::iterator u = theParams.begin(), uEnd = theParams.end();
+ for ( ; u != uEnd; ++u )
+ {
+ GCPnts_AbscissaPoint Discret( theC3d, (*u) * lenFactor, f );
+ if ( Discret.IsDone() )
+ *u = Discret.Parameter();
+ }
return true;
}
break;