Salome HOME
Update copyright
[modules/geom.git] / src / GEOMAlgo / BlockFix.cxx
index be4d48f62daa93dae76ed6d243cc1dc906d5d58b..ef9ca5578bb410ff1b9d675358883d791768b5aa 100644 (file)
@@ -1,9 +1,29 @@
-// File:       BlockFix.cxx
-// Created:    Tue Dec  7 11:59:05 2004
-// Author:     Pavel DURANDIN
-// Copyright:  Open CASCADE SA 2004
-
-
+// Copyright (C) 2007-2011  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
+//
+// 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.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// 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
+// Author:      Pavel DURANDIN
+//
 #include <BlockFix.hxx>
 #include <TopoDS_Shape.hxx>
 #include <TopTools_DataMapOfShapeShape.hxx>
@@ -60,8 +80,8 @@ static void FixResult(const TopoDS_Shape& result,
     TopLoc_Location L;
     Handle(Geom_Surface) Surf = BRep_Tool::Surface(aFace,L);
     
-    if (Surf->IsKind(STANDARD_TYPE(Geom_SphericalSurface)) ||
-        Surf->IsKind(STANDARD_TYPE(Geom_CylindricalSurface))) {
+    ifSurf->IsKind(STANDARD_TYPE(Geom_SphericalSurface)) ||
+        Surf->IsKind(STANDARD_TYPE(Geom_CylindricalSurface)) ) {
     
       Standard_Integer nbWires = 0;
       for (TopExp_Explorer ex_w(aFace,TopAbs_WIRE); ex_w.More(); ex_w.Next()) {
@@ -92,7 +112,7 @@ static void FixResult(const TopoDS_Shape& result,
           }
         }
         
-        isDone |= sfw->FixLacking();
+        //isDone |= sfw->FixLacking(); // commented by skl 22.03.2005 (PAL8395)
         
         // remove neighbour seam edges 
         if(isDone) {