From f2c92556992068777dab055e97dc62e0f67e1b91 Mon Sep 17 00:00:00 2001 From: akaftasev Date: Mon, 15 Feb 2021 13:25:14 +0300 Subject: [PATCH] test fix --- src/IntWalk/IntWalk_PWalking.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.5