From: jfa Date: Mon, 26 Dec 2011 14:18:17 +0000 (+0000) Subject: Porting to OCCT development version: Standard_PI -> M_PI X-Git-Tag: V6_5_0a1~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0b967839519f5ef3b34cb320c12158515c12b077;p=plugins%2Fnetgenplugin.git Porting to OCCT development version: Standard_PI -> M_PI --- diff --git a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx index 20a6a6b..b4b7ce3 100644 --- a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx +++ b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx @@ -18,7 +18,6 @@ // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// // NETGENPlugin : C++ implementation // File : NETGENPlugin_Mesher.cxx @@ -26,7 +25,7 @@ // Date : 31/03/2006 // Project : SALOME //============================================================================= -// + #include "NETGENPlugin_Mesher.hxx" #include "NETGENPlugin_Hypothesis_2D.hxx" #include "NETGENPlugin_SimpleHypothesis_3D.hxx" @@ -1355,9 +1354,9 @@ void NETGENPlugin_Mesher::addIntVerticesInSolids(const netgen::OCCGeometry& angle2ID.insert( make_pair( v2p1.Angle( v2p ), closeFace[j])); } // get node with angle of 60 degrees or greater - map< double, int >::iterator angle_id = angle2ID.lower_bound( 60*PI180 ); + map< double, int >::iterator angle_id = angle2ID.lower_bound( 60. * M_PI / 180. ); if ( angle_id == angle2ID.end() ) angle_id = --angle2ID.end(); - const double minAngle = 30 * PI180; + const double minAngle = 30. * M_PI / 180.; const double angle = angle_id->first; bool angleOK = ( angle > minAngle );