]> SALOME platform Git repositories - modules/geom.git/blobdiff - src/GEOMAlgo/BlockFix_CheckTool.cxx
Salome HOME
0021672: [CEA 565] Dump Study from script
[modules/geom.git] / src / GEOMAlgo / BlockFix_CheckTool.cxx
index 51532d02ca5bcd359a452d74a262971907b72f3f..674ef69ddb6e820bb8ac6b9e13a8c2c19566da34 100644 (file)
@@ -1,28 +1,29 @@
-//  Copyright (C) 2007-2008  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
+// 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 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.
+// 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
+// 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
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+
 //  File:      BlockFix_CheckTool.cxx
 //  Created:   17.12.04 11:15:25
 //  Author:    Sergey KUUL
-
+//
 #include <BlockFix_CheckTool.ixx>
 
 //#include <BlockFix_UnionEdges.hxx>
@@ -56,7 +57,7 @@ BlockFix_CheckTool::BlockFix_CheckTool( )
 
 //=======================================================================
 //function : SetShape
-//purpose  : 
+//purpose  :
 //=======================================================================
 
 void BlockFix_CheckTool::SetShape(const TopoDS_Shape& aShape)
@@ -69,10 +70,10 @@ void BlockFix_CheckTool::SetShape(const TopoDS_Shape& aShape)
 
 //=======================================================================
 //function : Perform
-//purpose  : 
+//purpose  :
 //=======================================================================
 
-void BlockFix_CheckTool::Perform() 
+void BlockFix_CheckTool::Perform()
 {
   myNbSolids=0;
   myNbBlocks=0;
@@ -208,7 +209,7 @@ void BlockFix_CheckTool::Perform()
       }
     }
 
-    if (IsBlock) 
+    if (IsBlock)
       myNbBlocks++;
     else {
       if (MayBeUF) {
@@ -231,7 +232,7 @@ void BlockFix_CheckTool::Perform()
 
 //=======================================================================
 //function : NbPossibleBlocks
-//purpose  : 
+//purpose  :
 //=======================================================================
 
 Standard_Integer BlockFix_CheckTool::NbPossibleBlocks() const
@@ -242,13 +243,13 @@ Standard_Integer BlockFix_CheckTool::NbPossibleBlocks() const
 
 //=======================================================================
 //function : PossibleBlock
-//purpose  : 
+//purpose  :
 //=======================================================================
 
 TopoDS_Shape BlockFix_CheckTool::PossibleBlock(const Standard_Integer num) const
 {
   TopoDS_Shape res;
-  if( num>0 && num<=myPossibleBlocks.Length() ) 
+  if( num>0 && num<=myPossibleBlocks.Length() )
     res = myPossibleBlocks.Value(num);
   return res;
 }
@@ -256,7 +257,7 @@ TopoDS_Shape BlockFix_CheckTool::PossibleBlock(const Standard_Integer num) const
 
 //=======================================================================
 //function : DumpCheckResult
-//purpose  : 
+//purpose  :
 //=======================================================================
 
 void BlockFix_CheckTool::DumpCheckResult(Standard_OStream& S) const