]> SALOME platform Git repositories - modules/geom.git/blobdiff - src/GEOMAlgo/GEOMAlgo_WESCorrector.cxx
Salome HOME
0021672: [CEA 565] Dump Study from script
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_WESCorrector.cxx
index 0eb721f4fcc135447f08211c9ed7ae6fdb4fe7fc..83fea18f76edc7d7d8dd29e979d39673f7f96266 100755 (executable)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
 
 // File:        NMTAlgo_WESCorrector.cxx
 // Author:      Peter KURNEV
 
-#include <GEOMAlgo_WESCorrector.ixx>
+#include <GEOMAlgo_WESCorrector.hxx>
 
 #include <Geom_Surface.hxx>
 
@@ -403,6 +404,7 @@ Standard_Boolean IsToScale(const TopoDS_Face& aF,
                            Standard_Real& aScale)
 {
   Standard_Boolean bRet;
+  Standard_Real aV1, aV2, dV, aTr;
   GeomAbs_SurfaceType aType;
   BRepAdaptor_Surface aBAS;
   //
@@ -412,8 +414,6 @@ Standard_Boolean IsToScale(const TopoDS_Face& aF,
   aBAS.Initialize(aF);
   aType=aBAS.GetType();
   if (aType==GeomAbs_Cylinder) {
-    Standard_Real aV1, aV2, dV, dU, aTr, aC;
-    //
     aTr=1.e5;
     aV1=aBAS.FirstVParameter();
     aV2=aBAS.LastVParameter();
@@ -424,16 +424,6 @@ Standard_Boolean IsToScale(const TopoDS_Face& aF,
       aScale=1./aTr;
       return bRet;
     }
-    //modified by NIZNHY-PKV Fri Mar 30 10:54:34 2012f
-    dU=M_PI;
-    aC=dV/dU;
-    aTr=25.;
-    if(aC>aTr){
-      bRet=!bRet;
-      aScale=1./aC;
-      return bRet;
-    }
-    //modified by NIZNHY-PKV Fri Mar 30 10:54:35 2012t
   }
   return bRet;
 }