mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0022757: Exception in ShapeHealing
This commit is contained in:
parent
7637f2b35d
commit
9248974cd0
@ -64,7 +64,7 @@ Standard_Real ShapeAnalysis::AdjustByPeriod(const Standard_Real Val,
|
|||||||
Standard_Real P = Abs ( Period );
|
Standard_Real P = Abs ( Period );
|
||||||
if ( D <= 0.5 * P ) return 0.;
|
if ( D <= 0.5 * P ) return 0.;
|
||||||
if ( P < 1e-100 ) return diff;
|
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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
Loading…
x
Reference in New Issue
Block a user