-// 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>
Standard_Real& aScale)
{
Standard_Boolean bRet;
+ Standard_Real aV1, aV2, dV, aTr;
GeomAbs_SurfaceType aType;
BRepAdaptor_Surface aBAS;
//
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();
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;
}