]> OCCT Git - occt-copy.git/commitdiff
0022757: Exception in ShapeHealing
authorDBV <>
Thu, 8 Dec 2011 13:15:13 +0000 (13:15 +0000)
committerbugmaster <bugmaster@opencascade.com>
Mon, 5 Mar 2012 15:31:23 +0000 (19:31 +0400)
src/ShapeAnalysis/ShapeAnalysis.cxx

index ad597763800a81857a90bb650eb4b7ae37f01e05..0020bb5f7500c2f1927411423246468fd331c255 100755 (executable)
@@ -64,7 +64,7 @@ Standard_Real ShapeAnalysis::AdjustByPeriod(const Standard_Real Val,
   Standard_Real P = Abs ( Period );
   if ( D <= 0.5 * P ) return 0.;
   if ( P < 1e-100 ) return diff;
-  return ( diff >0 ? -P : P ) * (Standard_Integer)( D / P + 0.5 );
+  return ( diff >0 ? -P : P ) * floor( D / P + 0.5 );
 }
 
 //=======================================================================