]> OCCT Git - occt-copy.git/commitdiff
BndBox CR29144_1
authornbv <nbv@opencascade.com>
Fri, 13 Oct 2017 12:28:19 +0000 (15:28 +0300)
committernbv <nbv@opencascade.com>
Fri, 13 Oct 2017 14:19:16 +0000 (17:19 +0300)
src/BOPAlgo/BOPAlgo_BuilderFace.cxx
src/BOPAlgo/BOPAlgo_BuilderSolid.cxx
src/BOPAlgo/BOPAlgo_Builder_3.cxx
src/BOPAlgo/BOPAlgo_PaveFiller_10.cxx
src/BOPAlgo/BOPAlgo_PaveFiller_6.cxx
src/BOPAlgo/BOPAlgo_PaveFiller_7.cxx
src/BOPDS/BOPDS_DS.cxx
src/IntTools/IntTools_Context.cxx

index 243abbf2c0012aa6b5fc5c2381b6dd204d591594..f44ddeb67c6f06df6466fc2c1d2faebbf5b8d732 100644 (file)
@@ -593,7 +593,7 @@ void BOPAlgo_BuilderFace::PerformAreas()
   // 5.2. Add unused holes to the original face
   if (aNbHoles != aNbInOutMap) {
     Bnd_Box aBoxF;
-    BRepBndLib::Add(myFace, aBoxF);
+    BRepBndLib::AddOptimal(myFace, aBoxF, Standard_True, Standard_True);
     if (aBoxF.IsOpenXmin() || aBoxF.IsOpenXmax() ||
         aBoxF.IsOpenYmin() || aBoxF.IsOpenYmax() ||
         aBoxF.IsOpenZmin() || aBoxF.IsOpenZmax()) {
index fa19419e773f4c7576d0f365d345b526a1be81cb..94c0bec8d834efeaf3aa05fb6f7d734017499a0c 100644 (file)
@@ -600,7 +600,7 @@ void BOPAlgo_BuilderSolid::PerformAreas()
     const TopoDS_Shape& aShell = aItLS.Value();
     aSB.SetShape(aShell);
     //
-    BRepBndLib::Add(aShell, aBox);
+    BRepBndLib::AddOptimal(aShell, aBox, Standard_True, Standard_True);
     bIsHole=Standard_False;
     //
     bIsGrowth=IsGrowthShell(aShell, aMHF);
@@ -834,7 +834,7 @@ void BOPAlgo_BuilderSolid::PerformInternalShapes()
     const BOPAlgo_FacePnt& aFP=aVFP(k);
     const TopoDS_Face& aF=aFP.Face();
     //
-    BRepBndLib::Add(aF, aBox);
+    BRepBndLib::AddOptimal(aF, aBox, Standard_True, Standard_True);
     aTreeFiller.Add(k, aBox);
   }
   //
index ca5c985ab283dc1295dd971957a550f2849bee87..c6a3bfcf3bd2bc77b7354b55a0f6420e2dc4f433 100644 (file)
@@ -577,7 +577,7 @@ void BOPAlgo_Builder::FillIn3DParts
           continue;
         }
         Bnd_Box aBox;
-        BRepBndLib::Add(aSx, aBox);
+        BRepBndLib::AddOptimal(aSx, aBox, Standard_True, Standard_True);
         aBox.SetGap(aBox.GetGap() + Precision::Confusion());
         //
         BOPAlgo_ShapeBox& aSB=aVSB.Append1();
index 37b683ba40be788e4cf2a7d7d15c85cac9e979f8..ce1c04bb05bf97e2729caa9e0af06555744d90f3 100644 (file)
@@ -97,7 +97,7 @@ void BOPAlgo_PaveFiller::UpdateEdgeTolerance (const Standard_Integer nE,
   const TopoDS_Edge& aE = *(TopoDS_Edge*)&myDS->Shape(nE);
   aBB.UpdateEdge(aE, aTol);
   Bnd_Box& aBoxE=aSIE.ChangeBox();
-  BRepBndLib::Add(aE, aBoxE);
+  BRepBndLib::AddOptimal(aE, aBoxE, Standard_True, Standard_True);
   aBoxE.SetGap(aBoxE.GetGap() + Precision::Confusion());
   //
   aIt.Initialize(aLI);
@@ -113,7 +113,7 @@ void BOPAlgo_PaveFiller::UpdateEdgeTolerance (const Standard_Integer nE,
       aBB.UpdateVertex(aV, aTol);
       BOPDS_ShapeInfo& aSIV = myDS->ChangeShapeInfo(nV);
       Bnd_Box& aBoxV = aSIV.ChangeBox();
-      BRepBndLib::Add(aV, aBoxV);
+      BRepBndLib::AddOptimal(aV, aBoxV, Standard_True, Standard_True);
       aBoxV.SetGap(aBoxV.GetGap() + Precision::Confusion());
     }
   }
@@ -141,7 +141,7 @@ Standard_Integer BOPAlgo_PaveFiller::UpdateVertex
       aBB.UpdateVertex(aVSD, aTolNew);
       BOPDS_ShapeInfo& aSIV = myDS->ChangeShapeInfo(nVNew);
       Bnd_Box& aBoxV = aSIV.ChangeBox();
-      BRepBndLib::Add(aVSD, aBoxV);
+      BRepBndLib::AddOptimal(aVSD, aBoxV, Standard_True, Standard_True);
       aBoxV.SetGap(aBoxV.GetGap() + Precision::Confusion());
     }
     return nVNew;
@@ -165,7 +165,7 @@ Standard_Integer BOPAlgo_PaveFiller::UpdateVertex
   // bounding box for the new vertex
   BOPDS_ShapeInfo& aSIDS = myDS->ChangeShapeInfo(nVNew);
   Bnd_Box& aBoxDS = aSIDS.ChangeBox();
-  BRepBndLib::Add(aVNew, aBoxDS);
+  BRepBndLib::AddOptimal(aVNew, aBoxDS, Standard_True, Standard_True);
   aBoxDS.SetGap(aBoxDS.GetGap() + Precision::Confusion());
   //
   // add vertex to SD map
index 37a16e22544d1b6baec8b85871c6490920813e67..c3fa855981245fd03dc42fb073109b8b2d738f1b 100644 (file)
@@ -630,7 +630,7 @@ void BOPAlgo_PaveFiller::MakeBlocks()
       BOPDS_ShapeInfo& aSIDS=myDS->ChangeShapeInfo(nV1);
       Bnd_Box& aBoxDS=aSIDS.ChangeBox();
       aBoxDS = Bnd_Box();
-      BRepBndLib::Add(aV, aBoxDS);
+      BRepBndLib::AddOptimal(aV, aBoxDS, Standard_True, Standard_True);
       aBoxDS.SetGap(aBoxDS.GetGap() + Precision::Confusion());
       //
       if (aDMVLV.IsBound(nV1))
@@ -1536,7 +1536,7 @@ void BOPAlgo_PaveFiller::PutBoundPaveOnCurve(const TopoDS_Face& aF1,
       //
       BOPDS_ShapeInfo& aSIDS=myDS->ChangeShapeInfo(nVn);
       Bnd_Box& aBoxDS=aSIDS.ChangeBox();
-      BRepBndLib::Add(aVn, aBoxDS);
+      BRepBndLib::AddOptimal(aVn, aBoxDS, Standard_True, Standard_True);
       aBoxDS.SetGap(aBoxDS.GetGap() + Precision::Confusion());
       //
       aLVB.Append(nVn);
@@ -2154,7 +2154,7 @@ void BOPAlgo_PaveFiller::PutPaveOnCurve
         //
         BOPDS_ShapeInfo& aSIDS=myDS->ChangeShapeInfo(nV);
         Bnd_Box& aBoxDS=aSIDS.ChangeBox();
-        BRepBndLib::Add(aV, aBoxDS);
+        BRepBndLib::AddOptimal(aV, aBoxDS, Standard_True, Standard_True);
         aBoxDS.SetGap(aBoxDS.GetGap() + Precision::Confusion());
       }
     }
index 1e91f5529ae7da1fc6d6f6b3b6b817bf554ec839..b510c9d6cee17a6b900f4e4af96d82bc89e7e86a 100644 (file)
@@ -142,7 +142,7 @@ class BOPAlgo_SplitEdge : public BOPAlgo_Algo  {
                                       myV1, myT1, 
                                       myV2, myT2, 
                                       myESp);
-    BRepBndLib::Add(myESp, myBox);
+    BRepBndLib::AddOptimal(myESp, myBox, Standard_True, Standard_True);
     myBox.SetGap(myBox.GetGap() + Precision::Confusion());
   }
   //
@@ -525,7 +525,7 @@ Standard_Integer BOPAlgo_PaveFiller::SplitEdge(const Standard_Integer nE,
   aSI.SetShape(aSp);
   //
   Bnd_Box& aBox=aSI.ChangeBox();
-  BRepBndLib::Add(aSp, aBox);
+  BRepBndLib::AddOptimal(aSp, aBox, Standard_True, Standard_True);
   aBox.SetGap(aBox.GetGap() + Precision::Confusion());
   //
   nSp=myDS->Append(aSI);
index 9ed03f53d1e5d9a0dd4b96220426b25d6bf5ddfb..28d69558ecc6094efd160da7edeb3cb7423f6492 100644 (file)
@@ -463,7 +463,7 @@ void BOPDS_DS::Init(const Standard_Real theFuzz)
       }
       //
       Bnd_Box& aBox=aSI.ChangeBox();
-      BRepBndLib::Add(aE, aBox);
+      BRepBndLib::AddOptimal(aE, aBox, Standard_True, Standard_True);
       //
       const BOPCol_ListOfInteger& aLV=aSI.SubShapes(); 
       aIt1.Initialize(aLV);
@@ -490,7 +490,7 @@ void BOPDS_DS::Init(const Standard_Real theFuzz)
       const TopoDS_Shape& aS=aSI.Shape();
       //
       Bnd_Box& aBox=aSI.ChangeBox();
-      BRepBndLib::Add(aS, aBox);
+      BRepBndLib::AddOptimal(aS, aBox, Standard_True, Standard_True);
       //
       BOPCol_ListOfInteger& aLW=aSI.ChangeSubShapes(); 
       aIt1.Initialize(aLW);
@@ -1786,7 +1786,7 @@ void BOPDS_DS::UpdateEdgeTolerance(const Standard_Integer nE,
   aBB.UpdateEdge(aE, aTol);
   BOPDS_ShapeInfo& aSIE=ChangeShapeInfo(nE);
   Bnd_Box& aBoxE=aSIE.ChangeBox();
-  BRepBndLib::Add(aE, aBoxE);
+  BRepBndLib::AddOptimal(aE, aBoxE, Standard_True, Standard_True);
   aBoxE.SetGap(aBoxE.GetGap() + aTolAdd);
   //
   const BOPCol_ListOfInteger& aLI = aSIE.SubShapes();
index 903a0e38f99c5cb8ccd28e7cdeee5b03c7c5e148..b7a53dd67b220e827c0f4fe84fc9a53cf33a04d0 100644 (file)
@@ -199,7 +199,7 @@ Bnd_Box& IntTools_Context::BndBox(const TopoDS_Shape& aS)
     new (pBox) Bnd_Box();
     //
     Bnd_Box &aBox=*pBox;
-    BRepBndLib::Add(aS, aBox);
+    BRepBndLib::AddOptimal(aS, aBox, Standard_True, Standard_True);
     //
     anAdr=(Standard_Address)pBox;
     myBndBoxDataMap.Bind(aS, anAdr);