From 2967828dbf7ea7967c0e9ff5a91815eba60d04e0 Mon Sep 17 00:00:00 2001 From: nbv Date: Tue, 21 Mar 2017 18:30:03 +0300 Subject: [PATCH] 0028580: Misprint in IntPatch_WLineTool.cxx file Code correction. --- src/IntPatch/IntPatch_SpecialPoints.hxx | 2 +- src/IntPatch/IntPatch_WLineTool.cxx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/IntPatch/IntPatch_SpecialPoints.hxx b/src/IntPatch/IntPatch_SpecialPoints.hxx index cfd2f74c29..8a6ab95d66 100644 --- a/src/IntPatch/IntPatch_SpecialPoints.hxx +++ b/src/IntPatch/IntPatch_SpecialPoints.hxx @@ -109,7 +109,7 @@ public: //! theArrPeriods must be filled as follows: //! {, , //! , }. - //! If theVertex != 0 then its parameters will befilled as + //! If theVertex != 0 then its parameters will be filled as //! corresponding parameters of theNewPoint. //! //! ATTENTION!!! diff --git a/src/IntPatch/IntPatch_WLineTool.cxx b/src/IntPatch/IntPatch_WLineTool.cxx index 0f30e2ad92..5ac700ad08 100644 --- a/src/IntPatch/IntPatch_WLineTool.cxx +++ b/src/IntPatch/IntPatch_WLineTool.cxx @@ -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; }