]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PAL8596. Fix warping calculation
authoreap <eap@opencascade.com>
Thu, 14 Apr 2005 12:53:22 +0000 (12:53 +0000)
committereap <eap@opencascade.com>
Thu, 14 Apr 2005 12:53:22 +0000 (12:53 +0000)
src/Controls/SMESH_Controls.cxx

index ccae605458ed4b0b941cb390e3e7c57f3c98497f..9d95deb43b233d007a9fc23aaa653a42cb83940e 100644 (file)
@@ -629,8 +629,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() )