]> SALOME platform Git repositories - modules/geom.git/blobdiff - src/NMTTools/NMTTools_PaveFiller_7.cxx
Salome HOME
0021672: [CEA 565] Dump Study from script
[modules/geom.git] / src / NMTTools / NMTTools_PaveFiller_7.cxx
index 0960fee58b07db67b2d2a360dc0c8ae201cf14f3..a365d7a738c2832d18e120fe899542691b5abd77 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2011  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
 // 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:        NMTTools_PaveFiller_7.cxx
 // Author:      Peter KURNEV
 
-#include <NMTTools_PaveFiller.ixx>
-
-#include <Basics_OCCTVersion.hxx>
+#include <NMTTools_PaveFiller.hxx>
 
 #include <Bnd_HArray1OfBox.hxx>
 #include <Bnd_BoundSortBox.hxx>
 
 #include <TopExp_Explorer.hxx>
 #include <TopExp.hxx>
-
+//
 #include <IntTools_SequenceOfPntOn2Faces.hxx>
 #include <IntTools_PntOnFace.hxx>
 #include <IntTools_PntOn2Faces.hxx>
+#include <IntTools_Context.hxx>
 
 #include <BooleanOperations_AncestorsSeqAndSuccessorsSeq.hxx>
 
@@ -81,6 +81,7 @@
 #include <NMTDS_ShapesDataStructure.hxx>
 #include <NMTDS_InterfPool.hxx>
 
+#include <NMTTools_ListOfCommonBlock.hxx>
 #include <NMTTools_ListIteratorOfListOfCommonBlock.hxx>
 #include <NMTTools_MapOfPaveBlock.hxx>
 
@@ -214,7 +215,7 @@ void NMTTools_PaveFiller::UpdateCommonBlocks(const Standard_Integer)
     for (; aItLCB.More(); aItLCB.Next()) {
       NMTTools_CommonBlock aCBx;
       //
-      NMTTools_CommonBlock& aCB=aItLCB.Value();
+      NMTTools_CommonBlock& aCB=aItLCB.ChangeValue();
       const BOPTools_ListOfPaveBlock &aLPB=aCB.PaveBlocks();
       aItLPB.Initialize(aLPB);
       for (; aItLPB.More(); aItLPB.Next()) {
@@ -245,14 +246,14 @@ void NMTTools_PaveFiller::UpdateCommonBlocks(const Standard_Integer)
     //
     aItLCB.Initialize(aLCBx);
     for (; aItLCB.More(); aItLCB.Next()) {
-      NMTTools_CommonBlock& aCBx=aItLCB.Value();
+      NMTTools_CommonBlock& aCBx=aItLCB.ChangeValue();
       aLCB.Append(aCBx);
     }
     //modified by NIZNHY-PKV Thu Jan 19 09:03:30 2012t
     // 1
     aItLCB.Initialize(aLCB);
     for (; aItLCB.More(); aItLCB.Next()) {
-      NMTTools_CommonBlock& aCB=aItLCB.Value();
+      NMTTools_CommonBlock& aCB=aItLCB.ChangeValue();
       //
       BOPTools_PaveBlock aPBMax;
       aTolExMax=-1.;
@@ -295,11 +296,7 @@ void NMTTools_PaveFiller::UpdateCommonBlocks(const Standard_Integer)
         }
         //
         const TopoDS_Edge& aEx=*((TopoDS_Edge*)&myDS->Shape(nEx));
-#if OCC_VERSION_LARGE > 0x06050200
         GeomAPI_ProjectPointOnCurve& aPPCx=myContext->ProjPC(aEx);
-#else
-        GeomAPI_ProjectPointOnCurve& aPPCx=myContext.ProjPC(aEx);
-#endif
         //
         for (j=0; j<2; ++j) {
           aPPCx.Perform(aPMax[j]);
@@ -383,7 +380,7 @@ void NMTTools_PaveFiller::UpdateCommonBlocks()
     //
     aCBIt.Initialize(aLCB);
     for (; aCBIt.More(); aCBIt.Next()) {
-      NMTTools_CommonBlock& aCB=aCBIt.Value();
+      NMTTools_CommonBlock& aCB=aCBIt.ChangeValue();
       //
       // Among all PBs of aCB the first PB will be one
       // that have max tolerance value