Salome HOME
Fix for the bug IPAL22851: Sub-shapes spelling
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_VertexSolid.cxx
index bff0fb1e26f4c862ad4016dd0ae2a1d606b7b560..c22ffb11c215285f863a40ca64873976a066a82e 100644 (file)
@@ -1,28 +1,29 @@
-//  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
+// 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
+// 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:       GEOMAlgo_VertexSolid.cxx
-// Created:    Wed Jan 12 16:36:40 2005
-// Author:     Peter KURNEV
-//             <pkv@irinox>
+
+// File:        GEOMAlgo_VertexSolid.cxx
+// Created:     Wed Jan 12 16:36:40 2005
+// Author:      Peter KURNEV
+//              <pkv@irinox>
 //
 #include <GEOMAlgo_VertexSolid.ixx>
 
@@ -141,7 +142,6 @@ void GEOMAlgo_VertexSolid::Prepare()
   const TopoDS_Shape& aTool=aDS.Tool();
   //
   const TopoDS_Solid& aSolid=(myRank==1) ? TopoDS::Solid(aTool) : TopoDS::Solid(aObj);
-  const TopoDS_Shape& aSV   =(myRank==1)? aObj : aTool;
   //
   BRepClass3d_SolidClassifier& aSC=aCtx.SolidClassifier(aSolid);
   //
@@ -162,8 +162,8 @@ void GEOMAlgo_VertexSolid::Prepare()
     //
     aState=aDS.GetState(i);
     if (aState==BooleanOperations_ON ||
-       aState==BooleanOperations_IN ||
-       aState==BooleanOperations_OUT) {
+        aState==BooleanOperations_IN ||
+        aState==BooleanOperations_OUT) {
       continue;
     }
     //
@@ -173,10 +173,10 @@ void GEOMAlgo_VertexSolid::Prepare()
       BOPTools_VVInterference& aVV=aVVs(j);
       aVV.Indices(n1, n2);
       if (n1==i || n2==i) {
-       pDS->SetState (n1, BooleanOperations_ON);
-       pDS->SetState (n2, BooleanOperations_ON);
-       iFound=1;
-       break;
+        pDS->SetState (n1, BooleanOperations_ON);
+        pDS->SetState (n2, BooleanOperations_ON);
+        iFound=1;
+        break;
       } 
     }
     if (iFound) {