1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0024327: Wrong result obtained by Exterma Curve/Curve

Increased number of nodes  in Extrema_CurveCache::Extrema_CurveCache.
Test case for issue CR24327
This commit is contained in:
aml
2013-11-21 13:47:46 +04:00
committed by bugmaster
parent 5c573e69d3
commit aa094b3e6e
2 changed files with 36 additions and 2 deletions

View File

@@ -57,9 +57,9 @@ Extrema_CurveCache::Extrema_CurveCache(const Curve& theC,
myTrimFirst = myFirst = theUFirst;
myTrimLast = myLast = theULast;
Standard_Integer Nbp = 2;
Standard_Integer Nbp = 3;
if (2 * Coeff < 10000.0)
Nbp = (Standard_Integer) (2 * Coeff);
Nbp = Max((Standard_Integer) (2 * Coeff), Nbp);
myNbSamples = (EndIndex - StartIndex)*Nbp + 1;
const Standard_Integer aNbSTresh = 10000;