From: akaftasev Date: Mon, 15 Feb 2021 10:25:14 +0000 (+0300) Subject: test fix X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FCR29093_3;p=occt-copy.git test fix --- diff --git a/src/IntWalk/IntWalk_PWalking.cxx b/src/IntWalk/IntWalk_PWalking.cxx index e9f1efade3..142e0837bd 100644 --- a/src/IntWalk/IntWalk_PWalking.cxx +++ b/src/IntWalk/IntWalk_PWalking.cxx @@ -1703,12 +1703,13 @@ Standard_Boolean IntWalk_PWalking::ExtendLineInCommonZone(const IntImp_ConstIsop Standard_Integer nbEqualPoints = 0; Standard_Integer parit = 0; Standard_Integer uvit = 0; + Standard_Integer nbInter = 0; IntSurf_SequenceOfPntOn2S aSeqOfNewPoint; while (!bStop) { nbIterWithoutAppend++; - - if((nbIterWithoutAppend > 20) || (nbEqualPoints > 20)) { + nbInter++; + if((nbIterWithoutAppend > 20) || (nbEqualPoints > 20) || (nbInter > 10000)) { #ifdef OCCT_DEBUG std::cout<<"Infinite loop detected. Stop iterations (IntWalk_PWalking_1.gxx)" << std::endl; #endif