projects
/
occt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7637f2b
)
0022757: Exception in ShapeHealing
author
DBV
<>
Thu, 8 Dec 2011 13:15:13 +0000
(13:15 +0000)
committer
bugmaster
<bugmaster@opencascade.com>
Mon, 5 Mar 2012 15:31:23 +0000
(19:31 +0400)
src/ShapeAnalysis/ShapeAnalysis.cxx
patch
|
blob
|
blame
|
history
diff --git
a/src/ShapeAnalysis/ShapeAnalysis.cxx
b/src/ShapeAnalysis/ShapeAnalysis.cxx
index
ad59776
..
0020bb5
100755
(executable)
--- a/
src/ShapeAnalysis/ShapeAnalysis.cxx
+++ b/
src/ShapeAnalysis/ShapeAnalysis.cxx
@@
-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 );
}
//=======================================================================