From 87ee26c34510f3c9f6dae6ec733eb816f88aef7c Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 14 Apr 2005 12:53:22 +0000 Subject: [PATCH] PAL8596. Fix warping calculation --- src/Controls/SMESH_Controls.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controls/SMESH_Controls.cxx b/src/Controls/SMESH_Controls.cxx index ccae60545..9d95deb43 100644 --- a/src/Controls/SMESH_Controls.cxx +++ b/src/Controls/SMESH_Controls.cxx @@ -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() ) -- 2.39.2