]> OCCT Git - occt.git/commitdiff
0028580: Misprint in IntPatch_WLineTool.cxx file
authornbv <nbv@opencascade.com>
Tue, 21 Mar 2017 15:30:03 +0000 (18:30 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 23 Mar 2017 12:57:29 +0000 (15:57 +0300)
Code correction.

src/IntPatch/IntPatch_SpecialPoints.hxx
src/IntPatch/IntPatch_WLineTool.cxx

index cfd2f74c29962f8d8d008eb0a32f4d2200dc6e96..8a6ab95d66dc70fed56d0ad5d33022cebb98111a 100644 (file)
@@ -109,7 +109,7 @@ public:
   //! theArrPeriods must be filled as follows:
   //! {<U-period of 1st surface>, <V-period of 1st surface>,
   //!  <U-period of 2nd surface>, <V-period of 2nd surface>}.
-  //! If theVertex != 0 then its parameters will befilled as
+  //! If theVertex != 0 then its parameters will be filled as
   //! corresponding parameters of theNewPoint.
   //!
   //! ATTENTION!!!
index 0f30e2ad920485ee3d3aa3d72ca0fc20286d70bd..5ac700ad08cbcd763cbefd4357ae35ded5469872 100644 (file)
@@ -946,7 +946,7 @@ static IntPatchWT_WLsConnectionType
           //However, it is necessary to add check if we
           //intersect boundary.
           const Standard_Real aPar = aParWL1[i] +
-                theArrPeriods[0]*Ceiling((aNewPar[i]-aParWL1[i])/theArrPeriods[0]);
+                theArrPeriods[i]*Ceiling((aNewPar[i]-aParWL1[i])/theArrPeriods[i]);
           aParWL1[i] = aParWL2[i];
           aParWL2[i] = aPar;
         }
@@ -964,14 +964,14 @@ static IntPatchWT_WLsConnectionType
           // aParWL1[i]   aNewPar[i]    aParWL2[i]
           
           const Standard_Real aPar = aParWL2[i] - 
-                theArrPeriods[0]*Ceiling((aParWL2[i]-aNewPar[i])/theArrPeriods[0]);
+                theArrPeriods[i]*Ceiling((aParWL2[i]-aNewPar[i])/theArrPeriods[i]);
           aParWL2[i] = aParWL1[i];
           aParWL1[i] = aPar;
         }
       }
 
-      if( IsOnPeriod(aParWL1[i] - aParLBC[i], aNewPar[i] - aParLBC[i], theArrPeriods[0]) ||
-          IsOnPeriod(aNewPar[i] - aParLBC[i], aParWL2[i] - aParLBC[i], theArrPeriods[0]))
+      if( IsOnPeriod(aParWL1[i] - aParLBC[i], aNewPar[i] - aParLBC[i], theArrPeriods[i]) ||
+          IsOnPeriod(aNewPar[i] - aParLBC[i], aParWL2[i] - aParLBC[i], theArrPeriods[i]))
       {
         return IntPatchWT_NotConnected;
       }