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

0023100: Wrong adjustment of p-curves on a cylinder

This commit is contained in:
pkv 2012-04-12 08:20:32 +04:00
parent 83ada95bb5
commit f00435b08c

View File

@ -453,9 +453,6 @@ static
decalu = mincond || maxcond;
if (decalu) {
//modified by NIZNHY-PKV Mon Mar 25 16:44:46 2008f
//du = ( mincond ) ? UPeriod : -UPeriod;
//
iCnt=1;
aUP2=aUPeriod+aUPeriod+aDelta;
aUP1=aUPeriod+aDelta;
@ -473,14 +470,16 @@ static
for(k=1; 1; ++k) {
aUx=u2+k*aUPeriod;
if (aUx > -aUP1) {
iCnt=k;
//modified by NIZNHY-PKV Thu Apr 12 08:12:09 2012f
iCnt=k+1;
//iCnt=k;
//modified by NIZNHY-PKV Thu Apr 12 08:12:11 2012t
break;
}
}
}
du = ( mincond ) ? aUPeriod : -aUPeriod;
du=iCnt*du;
//modified by NIZNHY-PKV Mon Mar 25 16:44:49 2008t
}
//
aUNew=u2+du;