1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +03:00

0024193: Useless iterations in IntStart_SearchOnBoundaries.gxx

This commit is contained in:
ifv 2013-10-16 11:44:18 +04:00 committed by bugmaster
parent 2f6cb3ac69
commit 78fdb3d3fe

View File

@ -208,16 +208,19 @@ void BoundedArc (const TheArc& A,
if(lmaxr>maxr) maxr=lmaxr; if(lmaxr>maxr) maxr=lmaxr;
if(minr<0.0 && maxr>0.0) { if(minr<0.0 && maxr>0.0) {
Rejection=Standard_False; Rejection=Standard_False;
continue; break;
} }
} }
ur+=dur; ur+=dur;
} }
dur=0.001+maxdr+(maxr-minr)*0.1; if(Rejection)
minr-=dur; {
maxr+=dur; dur=0.001+maxdr+(maxr-minr)*0.1;
if(minr<0.0 && maxr>0.0) { minr-=dur;
Rejection=Standard_False; maxr+=dur;
if(minr<0.0 && maxr>0.0) {
Rejection=Standard_False;
}
} }
Arcsol=Standard_False; Arcsol=Standard_False;