]> OCCT Git - occt-copy.git/commitdiff
Updating pave filler
authorakaftasev <akaftasev@opencascade.com>
Thu, 6 May 2021 09:12:07 +0000 (12:12 +0300)
committerakaftasev <akaftasev@opencascade.com>
Thu, 6 May 2021 09:12:07 +0000 (12:12 +0300)
src/BOPAlgo/BOPAlgo_PaveFiller_2.cxx
src/BOPAlgo/BOPAlgo_PaveFiller_3.cxx
src/BOPAlgo/BOPAlgo_PaveFiller_5.cxx
src/BOPAlgo/BOPAlgo_PaveFiller_6.cxx
src/BOPAlgo/BOPAlgo_PaveFiller_7.cxx

index bffce71d0e73efc9fb907d10d5303050d15a6fd8..8416cc3374641292feb1244b6640b75a394bb661 100644 (file)
@@ -237,7 +237,7 @@ void BOPAlgo_PaveFiller::IntersectVE
   // intersection of the same SD vertex with edge
   NCollection_DataMap<BOPDS_Pair, TColStd_ListOfInteger, BOPDS_PairMapHasher> aDMVSD;
   //
-  Message_ProgressScope aPSOuter(theRange, NULL, 1);
+  Message_ProgressScope aPSOuter(theRange, "Intersecting vertices with edges", 1);
   for (i = 1; i <= aNbVE; ++i) {
     if (UserBreak(aPSOuter))
     {
@@ -290,7 +290,7 @@ void BOPAlgo_PaveFiller::IntersectVE
   //
   aNbVE = aVVE.Length();
 
-  Message_ProgressScope aPS(aPSOuter.Next(), "Intersect vertex-edge", aNbVE);
+  Message_ProgressScope aPS(aPSOuter.Next(), "Intersecting vertices with edges", aNbVE);
   for (i = 0; i < aVVE.Length(); i++)
   {
     BOPAlgo_VertexEdge& aVESolver = aVVE.ChangeValue(i);
index 0fb6af6518d2dcd21c40caeee2b3dfdce2c3bdd9..e9681f484960e7d71963f30cba86f3f296598a99 100644 (file)
@@ -608,9 +608,10 @@ void BOPAlgo_PaveFiller::PerformNewVertices
   BOPDS_VectorOfInterfEF& aEFs = myDS->InterfEF();
   //
     // 4. Compute Extra Paves and split Pave blocks by the Extra paves
-  Message_ProgressScope aPS(theRange, NULL, 1);
+  Message_ProgressScope aPS(theRange, NULL, 2);
   Standard_Integer i, aNb = aImages.Extent();
-  for (i = 1; i <= aNb; ++i) {
+  Message_ProgressScope aPS1(aPS.Next(), "Performing new vertices", aNb + aNbV);
+  for (i = 1; i <= aNb; ++i, aPS1.Next()) {
     if (UserBreak(aPS))
     {
       return;
@@ -646,7 +647,7 @@ void BOPAlgo_PaveFiller::PerformNewVertices
   //
   // 3. Map PaveBlock/ListOfVertices to add to this PaveBlock ->aMPBLI
   BOPDS_IndexedDataMapOfPaveBlockListOfInteger aMPBLI(100, theAllocator);
-  for (i = 1; i <= aNbV; ++i) {
+  for (i = 1; i <= aNbV; ++i, aPS1.Next()) {
     if (UserBreak(aPS))
     {
       return;
index c27fa4f95bd54a4f10da1a6d3f111cfcc6d3c651..03f3580828419c11a6d200b5adc4401d35645729 100644 (file)
@@ -184,7 +184,7 @@ void BOPAlgo_PaveFiller::PerformEF(const Message_ProgressRange& theRange)
   FillShrunkData(TopAbs_EDGE, TopAbs_FACE);
   //
   myIterator->Initialize(TopAbs_EDGE, TopAbs_FACE);
-  Message_ProgressScope aPSOuter(theRange, NULL, 100);
+  Message_ProgressScope aPSOuter(theRange, "Intersecting edges with faces", 100);
   Standard_Integer iSize = myIterator->ExpectedLength();
   if (!iSize) {
     return; 
@@ -1079,7 +1079,7 @@ void BOPAlgo_PaveFiller::ForceInterfEF(const BOPDS_IndexedMapOfPaveBlock& theMPB
   aPBMap.Clear();
   anAlloc->Reset();
 
-  Message_ProgressScope aPS(aPSOuter.Next(), "Force intersection edge-face", aNbEFs);
+  Message_ProgressScope aPS(aPSOuter.Next(), "Checking for coinciding edges and faces", aNbEFs);
   for (Standard_Integer i = 0; i < aNbEFs; i++)
   {
     BOPAlgo_EdgeFace& aEdgeFace = aVEdgeFace.ChangeValue(i);
index 0563dc5f9f72927c1624ba4a1bb07efb2ecded95..922b228f0376940699085ae0e6ce095f224dc860 100644 (file)
@@ -336,7 +336,7 @@ void BOPAlgo_PaveFiller::PerformFF(const Message_ProgressRange& theRange)
   }//for (; myIterator->More(); myIterator->Next()) {
   //
   Standard_Integer k, aNbFaceFace = aVFaceFace.Length();;
-  Message_ProgressScope aPS(aPSOuter.Next(), "Face-face perform", aNbFaceFace);
+  Message_ProgressScope aPS(aPSOuter.Next(), "Intersecting faces", aNbFaceFace);
   for (k = 0; k < aVFaceFace.Size(); k++)
   {
     BOPAlgo_FaceFace& aFaceFace = aVFaceFace.ChangeValue(k);
@@ -460,13 +460,14 @@ static void UpdateSavedTolerance(const BOPDS_PDS& theDS,
 //=======================================================================
 void BOPAlgo_PaveFiller::MakeBlocks(const Message_ProgressRange& theRange)
 {
-  Message_ProgressScope aPS(theRange, NULL, 1);
+  Message_ProgressScope aPSOuter(theRange, NULL, 2);
   if (myGlue != BOPAlgo_GlueOff) {
     return;
   }
   //
   BOPDS_VectorOfInterfFF& aFFs=myDS->InterfFF();
   Standard_Integer aNbFF = aFFs.Length();
+  Message_ProgressScope aPS(aPSOuter.Next(), "Making blocks", aNbFF);
   if (!aNbFF) {
     return;
   }
@@ -504,7 +505,7 @@ void BOPAlgo_PaveFiller::MakeBlocks(const Message_ProgressRange& theRange)
   // Map of PaveBlocks with the faces to which it has to be added
   BOPAlgo_DataMapOfPaveBlockListOfInteger aPBFacesMap;
   //
-  for (i=0; i<aNbFF; ++i) {
+  for (i=0; i<aNbFF; ++i, aPS.Next()) {
     if (UserBreak(aPS))
     {
       return;
@@ -542,10 +543,6 @@ void BOPAlgo_PaveFiller::MakeBlocks(const Message_ProgressRange& theRange)
     //
     // 1. Treat Points
     for (j=0; j<aNbP; ++j) {
-      if (UserBreak(aPS))
-      {
-        return;
-      }
       TopoDS_Vertex aV;
       BOPDS_CoupleOfPaveBlocks aCPB;
       //
@@ -568,10 +565,6 @@ void BOPAlgo_PaveFiller::MakeBlocks(const Message_ProgressRange& theRange)
     GetStickVertices(nF1, nF2, aMVStick, aMVEF, aMI);
     //
     for (j = 0; j < aNbC; ++j) {
-      if (UserBreak(aPS))
-      {
-        return;
-      }
       BOPDS_Curve& aNC = aVC.ChangeValue(j);
       // DEBt
       aNC.InitPaveBlock1();
@@ -591,10 +584,6 @@ void BOPAlgo_PaveFiller::MakeBlocks(const Message_ProgressRange& theRange)
     FilterPavesOnCurves(aVC, aMVTol);
 
     for (j = 0; j<aNbC; ++j) {
-      if (UserBreak(aPS))
-      {
-        return;
-      }
       BOPDS_Curve& aNC=aVC.ChangeValue(j);
       const IntTools_Curve& aIC=aNC.Curve();
       //
@@ -648,10 +637,6 @@ void BOPAlgo_PaveFiller::MakeBlocks(const Message_ProgressRange& theRange)
     //
     // 3. Make section edges
     for (j=0; j<aNbC; ++j) {
-      if (UserBreak(aPS))
-      {
-        return;
-      }
       BOPDS_Curve& aNC=aVC.ChangeValue(j);
       const IntTools_Curve& aIC=aNC.Curve();
       Standard_Real aTolR3D = Max(aNC.Tolerance(), aNC.TangentialTolerance());
@@ -664,10 +649,6 @@ void BOPAlgo_PaveFiller::MakeBlocks(const Message_ProgressRange& theRange)
       //
       aItLPB.Initialize(aLPB);
       for (; aItLPB.More(); aItLPB.Next()) {
-        if (UserBreak(aPS))
-        {
-          return;
-        }
         Handle(BOPDS_PaveBlock)& aPB=aItLPB.ChangeValue();
         aPB->Indices(nV1, nV2);
         aPB->Range  (aT1, aT2);
@@ -809,10 +790,6 @@ void BOPAlgo_PaveFiller::MakeBlocks(const Message_ProgressRange& theRange)
     //and forget about SD groups of such vertices
     aItMV.Initialize(aMVTol);
     for (; aItMV.More(); aItMV.Next()) {
-      if (UserBreak(aPS))
-      {
-        return;
-      }
       nV1 = aItMV.Key();
       Standard_Real aTol = aItMV.Value();
       //
@@ -854,7 +831,7 @@ void BOPAlgo_PaveFiller::MakeBlocks(const Message_ProgressRange& theRange)
   // Treat possible common zones by trying to put each section edge
   // into all faces, not participated in creation of that edge, as IN edge
 
-  PutSEInOtherFaces(aPS.Next());
+  PutSEInOtherFaces(aPSOuter.Next());
   //
   //-----------------------------------------------------scope t
   aMVStick.Clear();
index a6afc3edf01bd38afde189ccee92f965c76be809..1e3934a668b1431210119887278a1fd341131125 100644 (file)
@@ -731,10 +731,6 @@ void BOPAlgo_PaveFiller::MakePCurves(const Message_ProgressRange& theRange)
     BOPDS_VectorOfInterfFF& aFFs=myDS->InterfFF();
     aNbFF=aFFs.Length();
     for (i=0; i<aNbFF; ++i) {
-      if (UserBreak(aPSOuter))
-      {
-        return;
-      }
       const BOPDS_InterfFF& aFF=aFFs(i);
       const BOPDS_VectorOfCurve& aVNC = aFF.Curves();
       aNbC = aVNC.Length();
@@ -776,7 +772,7 @@ void BOPAlgo_PaveFiller::MakePCurves(const Message_ProgressRange& theRange)
     }// for (i=0; i<aNbFF; ++i) {
   }//if (bPCurveOnS1 || bPCurveOnS2 ) {
   //
-  Message_ProgressScope aPS(aPSOuter.Next(), "MakePCurves", aVMPC.Length());
+  Message_ProgressScope aPS(aPSOuter.Next(), "Projecting edges on faces", aVMPC.Length());
   for (i = 0; i < aVMPC.Length(); i++)
   {
     BOPAlgo_MPC& aMPC = aVMPC.ChangeValue(i);
@@ -914,7 +910,7 @@ void BOPAlgo_PaveFiller::Prepare(const Message_ProgressRange& theRange)
     }
   }
   //
-  Message_ProgressScope aPS(aPSOuter.Next(), "Prepare", aVBPC.Length());
+  Message_ProgressScope aPS(aPSOuter.Next(), "Building 2d curves on planar faces", aVBPC.Length());
   for (i = 0; i < aVBPC.Length(); i++)
   {
     BOPAlgo_BPC& aBPC = aVBPC.ChangeValue(i);