]> SALOME platform Git repositories - modules/smesh.git/commit
Salome HOME
// S = S0 * f(L/Lmin) where f(x) = 1 + (7 * 2/Pi * atan(x/5))
authoreap <eap@opencascade.com>
Tue, 12 Mar 2013 11:31:32 +0000 (11:31 +0000)
committereap <eap@opencascade.com>
Tue, 12 Mar 2013 11:31:32 +0000 (11:31 +0000)
commit6da7fe1a54bef2629035646359338a7d3d758bd9
treea0f84cc4593cb02762b14a991a50b2daf72205cd
parentdbd3054f4fa9bfd42cc01542b59efc1ca06b6a95
 // S = S0 * f(L/Lmin) where f(x) = 1 + (7 * 2/Pi * atan(x/5))
+    // The above formular gives too short segments when Lmax/Lmin is too high
+    // because by this formular the largest segment is only 8 times longer than the
+    // shortest one ( 2/Pi * atan(x/5) varies within [0,1] ). So a new formular is:
+    // f(x) = 1 + (x/7 * 2/Pi * atan(x/5))
src/StdMeshers/StdMeshers_AutomaticLength.cxx