1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0024002: Overall code and build procedure refactoring - samples

Modified MFC samples; minor fix in headers (for building products)
This commit is contained in:
apn
2015-07-10 16:50:28 +03:00
committed by abv
parent 910970abb8
commit 9e3ca93a91
66 changed files with 264 additions and 839 deletions

View File

@@ -49,6 +49,10 @@ namespace
// relative z-range tolerance compatible with for floating point.
static Standard_Real zEpsilon (const Standard_Real theValue)
{
if (theValue == 0)
{
return FLT_EPSILON;
}
Standard_Real aLogRadix = Log10 (Abs (theValue)) / Log10 (FLT_RADIX);
Standard_Real aExp = Floor (aLogRadix);
return FLT_EPSILON * Pow (FLT_RADIX, aExp);