Salome HOME
Mantis issue 0020706: EDF 1263 GEOM: Suppress faces does notremove faces and adds...
[modules/geom.git] / src / NMTDS / NMTDS_ShapesDataStructure.cxx
index a9a0e7370c65e3b5b0201ec41e137b1cab3cd2b6..99659f45e909bbfa5095094970dc6a682d8526ef 100644 (file)
@@ -1,28 +1,29 @@
-// 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.
+//  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 //
-// 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
+//  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
 //
-// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//  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:        NMTDS_ShapesDataStructure.cxx
+// Created:     Mon Dec  1 10:21:04 2003
+// Author:      Peter KURNEV
+//              <pkv@irinox>
 //
-// File:       NMTDS_ShapesDataStructure.cxx
-// Created:    Mon Dec  1 10:21:04 2003
-// Author:     Peter KURNEV
-//             <pkv@irinox>
-
-
 #include <NMTDS_ShapesDataStructure.ixx>
 #include <TopoDS_Iterator.hxx>
 #include <TopoDS_Shape.hxx>
 
 static
   void ComputeBoxExS(const Standard_Integer aIx,
-                    const NMTDS_ShapesDataStructure* pDS,
-                    Bnd_Box& aBoxEx);
+                     const NMTDS_ShapesDataStructure* pDS,
+                     Bnd_Box& aBoxEx);
 static
   void GetAllSuccessorsS(const Standard_Integer nS,
-                        const NMTDS_ShapesDataStructure* myDS,
-                        TColStd_IndexedMapOfInteger& aMA);
+                         const NMTDS_ShapesDataStructure* myDS,
+                         TColStd_IndexedMapOfInteger& aMA);
 
 //===========================================================================
 //function : NMTDS_ShapesDataStructure::NMTDS_ShapesDataStructure
@@ -109,8 +110,8 @@ static
     for(j=1; j<=aNbSc; ++j) {
       aIndex=aAS1.GetSuccessor(j);
       if(aMFence.Add(aIndex)) {
-       BooleanOperations_AncestorsSeqAndSuccessorsSeq& aAS2=aMSA.ChangeFromIndex(aIndex);
-       aAS2.SetNewAncestor(iX);
+        BooleanOperations_AncestorsSeqAndSuccessorsSeq& aAS2=aMSA.ChangeFromIndex(aIndex);
+        aAS2.SetNewAncestor(iX);
       }
     }
   }
@@ -334,7 +335,7 @@ static
 //purpose  : 
 //===========================================================================
   Standard_Integer NMTDS_ShapesDataStructure::ShapeIndex(const TopoDS_Shape& aS,
-                                                        const Standard_Integer aRank)const
+                                                         const Standard_Integer aRank)const
 {
   Standard_Boolean bFound;
   Standard_Integer aIndex=0;
@@ -376,7 +377,7 @@ static
 //purpose  : 
 //=======================================================================
   void NMTDS_ShapesDataStructure::ComputeBoxEx (const Standard_Integer aIx,
-                                               Bnd_Box& aBoxEx)const
+                                                Bnd_Box& aBoxEx)const
 {
   ComputeBoxExS(aIx, this, aBoxEx);
 }
@@ -385,7 +386,7 @@ static
 //purpose  : 
 //=======================================================================
   void NMTDS_ShapesDataStructure::GetAllSuccessors(const Standard_Integer nS,
-                                                  TColStd_IndexedMapOfInteger& aMA)const
+                                                   TColStd_IndexedMapOfInteger& aMA)const
 {
   GetAllSuccessorsS(nS, this, aMA);
 }
@@ -394,8 +395,8 @@ static
 //purpose  : 
 //=======================================================================
 void GetAllSuccessorsS(const Standard_Integer nS,
-                      const NMTDS_ShapesDataStructure* myDS,
-                      TColStd_IndexedMapOfInteger& aMA)
+                       const NMTDS_ShapesDataStructure* myDS,
+                       TColStd_IndexedMapOfInteger& aMA)
 {
   TopAbs_ShapeEnum aT;
   Standard_Integer i, nSx, aNbSuccessors, *pSuccessors;
@@ -423,8 +424,8 @@ void GetAllSuccessorsS(const Standard_Integer nS,
 // purpose: 
 //=======================================================================
   void ComputeBoxExS(const Standard_Integer aIx,
-                    const NMTDS_ShapesDataStructure* pDS,
-                    Bnd_Box& aBoxEx)
+                     const NMTDS_ShapesDataStructure* pDS,
+                     Bnd_Box& aBoxEx)
 {
   Standard_Integer i, aNbS, iS;
   //