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

0027493: [Regression relative to OCCT 7.0.0] Extrema_ExtCC does not set flag "IsParallel" equal to true for the overlapped curves

Check for infinite solutions now starts from two solutions.
Test case is added.
This commit is contained in:
aml
2016-05-17 07:24:57 +03:00
committed by bugmaster
parent 264abd72f2
commit e64622331f
2 changed files with 26 additions and 2 deletions

View File

@@ -335,8 +335,7 @@ void Extrema_GenExtCC::Perform()
// Avoid mark parallel case when have duplicates out of tolerance.
// Bad conditioned task: bug25635_1, bug23706_10, bug23706_13.
const Standard_Integer aMinNbInfSol = 100;
if (aPnts.Size() >= aMinNbInfSol)
if (aPnts.Size() >= 2)
{
isParallel = Standard_True;
for(Standard_Integer anIdx = aPnts.Lower(); anIdx <= aPnts.Upper() - 1; anIdx++)