]> SALOME platform Git repositories - modules/geom.git/blobdiff - src/BlockFix/BlockFix_SphereSpaceModifier.cxx
Salome HOME
Merge V8_4_BR branch.
[modules/geom.git] / src / BlockFix / BlockFix_SphereSpaceModifier.cxx
index 4a984cd4544e384b293f6ab7142ef3c0cefbbdcf..ace1f9059d00ab033863d49512dbd3fa613a4a49 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2016  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
@@ -6,7 +6,7 @@
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -18,6 +18,7 @@
 // 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:        BlockFix.cxx
 // Created:     Tue Dec  7 11:59:05 2004
@@ -55,7 +56,6 @@
 #include <gp_Pnt.hxx>
 #include <gp_Sphere.hxx>
 
-IMPLEMENT_STANDARD_HANDLE(BlockFix_SphereSpaceModifier, BRepTools_Modification);
 IMPLEMENT_STANDARD_RTTIEXT(BlockFix_SphereSpaceModifier, BRepTools_Modification);
 
 //=======================================================================
@@ -113,7 +113,7 @@ static Standard_Boolean ModifySurface(const TopoDS_Face& aFace,
       Standard_Real anArea = Properties.Mass();
       Standard_Real AreaTol = Radius*Radius*1.e-6;
       if (anArea > HalfArea - AreaTol) //no chance to avoid singularity
-       return Standard_False;
+        return Standard_False;
       ///////////////////////////////////////////////
       gp_Ax3 ax3 = sp.Position();
       if(Abs(Vmax-Vmin) < PI2) {