Salome HOME
PAL8596. Fix warping calculation
authoreap <eap@opencascade.com>
Thu, 14 Apr 2005 12:55:31 +0000 (12:55 +0000)
committereap <eap@opencascade.com>
Thu, 14 Apr 2005 12:55:31 +0000 (12:55 +0000)
src/Controls/SMESH_Controls.cxx

index 4aa92f1..084f07d 100644 (file)
@@ -638,8 +638,8 @@ double Warping::ComputeA( const gp_XYZ& thePnt1,
   if ( L < Precision::Confusion())
     return 0.;
 
-  gp_XYZ GI = ( thePnt2 - thePnt1 ) / 2. - theG;
-  gp_XYZ GJ = ( thePnt3 - thePnt2 ) / 2. - theG;
+  gp_XYZ GI = ( thePnt2 + thePnt1 ) / 2. - theG;
+  gp_XYZ GJ = ( thePnt3 + thePnt2 ) / 2. - theG;
   gp_XYZ N  = GI.Crossed( GJ );
 
   if ( N.Modulus() < gp::Resolution() )