Salome HOME
Using "long double" instead i"nt"
authorabd <abd@opencascade.com>
Tue, 1 Aug 2006 11:07:32 +0000 (11:07 +0000)
committerabd <abd@opencascade.com>
Tue, 1 Aug 2006 11:07:32 +0000 (11:07 +0000)
src/Controls/SMESH_Controls.cxx

index c85948d2cf19ed0fef4c48fa2684ad38d7453174..1d887ed826add0c1fa327006c5ab4c2d7eeb42a6 100644 (file)
@@ -746,7 +746,7 @@ double Warping::GetValue( const TSequenceOfXYZ& P )
   if ( P.size() != 4 )
     return 0;
 
-  gp_XYZ G = ( P( 1 ) + P( 2 ) + P( 3 ) + P( 4 ) ) / 4;
+  gp_XYZ G = ( P( 1 ) + P( 2 ) + P( 3 ) + P( 4 ) ) / 4.;
 
   double A1 = ComputeA( P( 1 ), P( 2 ), P( 3 ), G );
   double A2 = ComputeA( P( 2 ), P( 3 ), P( 4 ), G );
@@ -777,7 +777,7 @@ double Warping::ComputeA( const gp_XYZ& thePnt1,
   N.Normalize();
 
   double H = ( thePnt2 - theG ).Dot( N );
-  return asin( fabs( H / L ) ) * 180 / PI;
+  return asin( fabs( H / L ) ) * 180. / PI;
 }
 
 double Warping::GetBadRate( double Value, int /*nbNodes*/ ) const