From: akaftasev Date: Thu, 6 May 2021 09:12:07 +0000 (+0300) Subject: Updating pave filler X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=6160fda350c843ced20305c76f960946a278f17b;p=occt-copy.git Updating pave filler --- diff --git a/src/BOPAlgo/BOPAlgo_PaveFiller_2.cxx b/src/BOPAlgo/BOPAlgo_PaveFiller_2.cxx index bffce71d0e..8416cc3374 100644 --- a/src/BOPAlgo/BOPAlgo_PaveFiller_2.cxx +++ b/src/BOPAlgo/BOPAlgo_PaveFiller_2.cxx @@ -237,7 +237,7 @@ void BOPAlgo_PaveFiller::IntersectVE // intersection of the same SD vertex with edge NCollection_DataMap 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); diff --git a/src/BOPAlgo/BOPAlgo_PaveFiller_3.cxx b/src/BOPAlgo/BOPAlgo_PaveFiller_3.cxx index 0fb6af6518..e9681f4849 100644 --- a/src/BOPAlgo/BOPAlgo_PaveFiller_3.cxx +++ b/src/BOPAlgo/BOPAlgo_PaveFiller_3.cxx @@ -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; diff --git a/src/BOPAlgo/BOPAlgo_PaveFiller_5.cxx b/src/BOPAlgo/BOPAlgo_PaveFiller_5.cxx index c27fa4f95b..03f3580828 100644 --- a/src/BOPAlgo/BOPAlgo_PaveFiller_5.cxx +++ b/src/BOPAlgo/BOPAlgo_PaveFiller_5.cxx @@ -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); diff --git a/src/BOPAlgo/BOPAlgo_PaveFiller_6.cxx b/src/BOPAlgo/BOPAlgo_PaveFiller_6.cxx index 0563dc5f9f..922b228f03 100644 --- a/src/BOPAlgo/BOPAlgo_PaveFiller_6.cxx +++ b/src/BOPAlgo/BOPAlgo_PaveFiller_6.cxx @@ -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; iIndices(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(); diff --git a/src/BOPAlgo/BOPAlgo_PaveFiller_7.cxx b/src/BOPAlgo/BOPAlgo_PaveFiller_7.cxx index a6afc3edf0..1e3934a668 100644 --- a/src/BOPAlgo/BOPAlgo_PaveFiller_7.cxx +++ b/src/BOPAlgo/BOPAlgo_PaveFiller_7.cxx @@ -731,10 +731,6 @@ void BOPAlgo_PaveFiller::MakePCurves(const Message_ProgressRange& theRange) BOPDS_VectorOfInterfFF& aFFs=myDS->InterfFF(); aNbFF=aFFs.Length(); for (i=0; i