X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FControls%2FSMESH_Controls.cxx;h=084f07d9abe07eb78fbe66a787a92a085a7642f5;hp=4aa92f1d286bdc826d53061b31d4f8753dbdec10;hb=14b3cb85a675104589ed821d4531cc32f8dcc224;hpb=72aa7f78b96283b517e08a290f95e3f465dd7dcb diff --git a/src/Controls/SMESH_Controls.cxx b/src/Controls/SMESH_Controls.cxx index 4aa92f1d2..084f07d9a 100644 --- a/src/Controls/SMESH_Controls.cxx +++ b/src/Controls/SMESH_Controls.cxx @@ -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() )