From 78fdb3d3feac667363ead96760d963a411b500f0 Mon Sep 17 00:00:00 2001 From: ifv Date: Wed, 16 Oct 2013 11:44:18 +0400 Subject: [PATCH] 0024193: Useless iterations in IntStart_SearchOnBoundaries.gxx --- src/IntStart/IntStart_SearchOnBoundaries.gxx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/IntStart/IntStart_SearchOnBoundaries.gxx b/src/IntStart/IntStart_SearchOnBoundaries.gxx index cd622d5c0d..fce9a3214d 100755 --- a/src/IntStart/IntStart_SearchOnBoundaries.gxx +++ b/src/IntStart/IntStart_SearchOnBoundaries.gxx @@ -208,16 +208,19 @@ void BoundedArc (const TheArc& A, if(lmaxr>maxr) maxr=lmaxr; if(minr<0.0 && maxr>0.0) { Rejection=Standard_False; - continue; + break; } } ur+=dur; } - dur=0.001+maxdr+(maxr-minr)*0.1; - minr-=dur; - maxr+=dur; - if(minr<0.0 && maxr>0.0) { - Rejection=Standard_False; + if(Rejection) + { + dur=0.001+maxdr+(maxr-minr)*0.1; + minr-=dur; + maxr+=dur; + if(minr<0.0 && maxr>0.0) { + Rejection=Standard_False; + } } Arcsol=Standard_False;