From f00435b08cdcfeeb6ef02db938f7be39092e503d Mon Sep 17 00:00:00 2001 From: pkv Date: Thu, 12 Apr 2012 08:20:32 +0400 Subject: [PATCH] 0023100: Wrong adjustment of p-curves on a cylinder --- src/BOPTools/BOPTools_Tools2D.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/BOPTools/BOPTools_Tools2D.cxx b/src/BOPTools/BOPTools_Tools2D.cxx index 584b0d21db..5c62345868 100755 --- a/src/BOPTools/BOPTools_Tools2D.cxx +++ b/src/BOPTools/BOPTools_Tools2D.cxx @@ -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;