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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user