mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
0023100: Wrong adjustment of p-curves on a cylinder
This commit is contained in:
parent
83ada95bb5
commit
f00435b08c
@ -453,9 +453,6 @@ static
|
|||||||
|
|
||||||
decalu = mincond || maxcond;
|
decalu = mincond || maxcond;
|
||||||
if (decalu) {
|
if (decalu) {
|
||||||
//modified by NIZNHY-PKV Mon Mar 25 16:44:46 2008f
|
|
||||||
//du = ( mincond ) ? UPeriod : -UPeriod;
|
|
||||||
//
|
|
||||||
iCnt=1;
|
iCnt=1;
|
||||||
aUP2=aUPeriod+aUPeriod+aDelta;
|
aUP2=aUPeriod+aUPeriod+aDelta;
|
||||||
aUP1=aUPeriod+aDelta;
|
aUP1=aUPeriod+aDelta;
|
||||||
@ -473,14 +470,16 @@ static
|
|||||||
for(k=1; 1; ++k) {
|
for(k=1; 1; ++k) {
|
||||||
aUx=u2+k*aUPeriod;
|
aUx=u2+k*aUPeriod;
|
||||||
if (aUx > -aUP1) {
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
du = ( mincond ) ? aUPeriod : -aUPeriod;
|
du = ( mincond ) ? aUPeriod : -aUPeriod;
|
||||||
du=iCnt*du;
|
du=iCnt*du;
|
||||||
//modified by NIZNHY-PKV Mon Mar 25 16:44:49 2008t
|
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
aUNew=u2+du;
|
aUNew=u2+du;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user