Salome HOME
Mantis issue 0020894: EDF 1421 GEOM: Partition Bug with big geometrical objects....
[modules/geom.git] / src / NMTTools / NMTTools_PaveFiller_9.cxx
index e0b2a3fc70674692a0e1f78f048471a3db60eabe..d40a8575041d085586b76bb029153920304bb7e7 100644 (file)
@@ -1,4 +1,4 @@
-//  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
+//  Copyright (C) 2007-2010  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
 //
 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
-// File:       NMTTools_PaveFiller_9.cxx
-// Created:    Fri Dec 19 11:15:53 2003
-// Author:     Peter KURNEV
-//             <pkv@irinox>
+
+// File:        NMTTools_PaveFiller_9.cxx
+// Created:     Fri Dec 19 11:15:53 2003
+// Author:      Peter KURNEV
+//              <pkv@irinox>
 //
 #include <NMTTools_PaveFiller.ixx>
 
@@ -58,7 +59,7 @@
 // purpose: 
 //=======================================================================
   void NMTTools_PaveFiller::PrepareFace(const Standard_Integer nF, 
-                                       TopoDS_Face& newFace)
+                                        TopoDS_Face& newFace)
 {
   Standard_Boolean bToReverse, bIsDegenerated;
   Standard_Integer iRankF, nE, nSp, aNbPB;
       const BOPTools_ListOfPaveBlock& aLPB=mySplitShapesPool(myDS->RefEdge(nE));
       aNbPB=aLPB.Extent();
       if (!aNbPB) {
-       aBB.Add(newWire, aE);
-       continue;
+        aBB.Add(newWire, aE);
+        continue;
       }
       //
       aItPB.Initialize(aLPB);
       for (; aItPB.More(); aItPB.Next()) {
-       const BOPTools_PaveBlock& aPB=aItPB.Value();
-       const BOPTools_PaveBlock& aPBR=RealPaveBlock(aPB);
-       nSp=aPBR.Edge();
-       //
-       aSp=TopoDS::Edge(myDS->Shape(nSp));
-       if (!bIsDegenerated) {
-         bToReverse=BOPTools_Tools3D::IsSplitToReverse1(aSp, aE, myContext);
-         if (bToReverse) {
-           aSp.Reverse();
-         }
-       }
-       else {
-        aSp.Orientation(anOrE);
-       }
-       aBB.Add(newWire, aSp);
+        const BOPTools_PaveBlock& aPB=aItPB.Value();
+        const BOPTools_PaveBlock& aPBR=RealPaveBlock(aPB);
+        nSp=aPBR.Edge();
+        //
+        aSp=TopoDS::Edge(myDS->Shape(nSp));
+        if (!bIsDegenerated) {
+          bToReverse=BOPTools_Tools3D::IsSplitToReverse1(aSp, aE, myContext);
+          if (bToReverse) {
+            aSp.Reverse();
+          }
+        }
+        else {
+         aSp.Orientation(anOrE);
+        }
+        aBB.Add(newWire, aSp);
       }
     }
     aBB.Add(newFace, newWire);