Salome HOME
PAL12607: Static objects in Geometry GUI libraries.
[modules/geom.git] / src / GEOMAlgo / BlockFix.cxx
index be4d48f62daa93dae76ed6d243cc1dc906d5d58b..eacbd40272b2a6f7a26726e8d068ce0533cf0354 100644 (file)
@@ -1,7 +1,25 @@
+// Copyright (C) 2005  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
-// Copyright:  Open CASCADE SA 2004
 
 
 #include <BlockFix.hxx>
@@ -60,8 +78,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 +110,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) {