mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0025609: Clean up the duplicate classes in TKBO project
1. The package BOPCol has been fully removed: - *BOPCol_BaseAllocator* is replaced with *Handle(NCollection_BaseAllocator)*; - *BOPCol_BoxBndTree* is replaced with *BOPTools_BoxBndTree*; - *BOPCol_Box2DBndTree* is removed as unused; - *BOPCol_DataMapOfIntegerInteger* is replaced with *TColStd_DataMapOfIntegerInteger*; - *BOPCol_DataMapOfIntegerListOfInteger* is replaced with *TColStd_DataMapOfIntegerListOfInteger*; - *BOPCol_DataMapOfIntegerListOfShape* is replaced with *TopTools_DataMapOfIntegerListOfShape*; - *BOPCol_DataMapOfIntegerMapOfInteger.hxx* is removed as unused; - *BOPCol_DataMapOfIntegerReal* is replaced with *TColStd_DataMapOfIntegerReal*; - *BOPCol_DataMapOfIntegerShape* is replaced with *TopTools_DataMapOfIntegerShape*; - *BOPCol_DataMapOfShapeBox* is replaced with *TopTools_DataMapOfShapeBox*; - *BOPCol_DataMapOfShapeInteger* is replaced with *TopTools_DataMapOfShapeInteger*; - *BOPCol_DataMapOfShapeListOfShape* is replaced with *TopTools_DataMapOfShapeListOfShape*; - *BOPCol_DataMapOfShapeReal* is replaced with *TopTools_DataMapOfShapeReal*; - *BOPCol_DataMapOfShapeShape* is replaced with *TopTools_DataMapOfShapeShape*; - *BOPCol_DataMapOfTransientAddress* is removed as unused; - *BOPCol_IndexedDataMapOfIntegerListOfInteger* is removed as unused; - *BOPCol_IndexedDataMapOfShapeBox* is removed as unused; - *BOPCol_IndexedDataMapOfShapeInteger* is removed as unused; - *BOPCol_IndexedDataMapOfShapeListOfShape* is replaced with *TopTools_IndexedDataMapOfShapeListOfShape*; - *BOPCol_IndexedDataMapOfShapeReal* is removed as unused; - *BOPCol_IndexedDataMapOfShapeShape* is replaced with *TopTools_IndexedDataMapOfShapeShape*; - *BOPCol_IndexedMapOfInteger* is replaced with *TColStd_IndexedMapOfInteger*; - *BOPCol_IndexedMapOfOrientedShape* is replaced with *TopTools_IndexedMapOfOrientedShape*; - *BOPCol_IndexedMapOfShape* is replaced with *TopTools_IndexedMapOfShape*; - *BOPCol_ListOfInteger* is replaced with *TColStd_ListOfInteger*; - *BOPCol_ListOfListOfShape* is replaced with *TopTools_ListOfListOfShape*; - *BOPCol_ListOfShape* is replaced with *TopTools_ListOfShape*; - *BOPCol_MapOfInteger* is replaced with *TColStd_MapOfInteger*; - *BOPCol_MapOfOrientedShape* is replaced with *TopTools_MapOfOrientedShape*; - *BOPCol_MapOfShape* is replaced with *TopTools_MapOfShape*; - *BOPCol_PListOfInteger* is removed as unused; - *BOPCol_PInteger* is removed as unused - *BOPCol_SequenceOfPnt2d* is replaced with *TColgp_SequenceOfPnt2d*; - *BOPCol_SequenceOfReal* is replaced with *TColStd_SequenceOfReal*; - *BOPCol_SequenceOfShape* is replaced with *TopTools_SequenceOfShape*; - *BOPCol_Parallel* is replaced with *BOPTools_Parallel*; - *BOPCol_NCVector* is replaced with *NCollection_Vector*; 2. The class *BOPDS_PassKey* and containers for it have been removed as unused; 3. The unused containers from *IntTools* package have been removed: - *IntTools_DataMapOfShapeAddress* is removed as unused; - *IntTools_IndexedDataMapOfTransientAddress* is removed as unused; 4. The container *BiTgte_DataMapOfShapeBox* is replaced with *TopTools_DataMapOfShapeBox*; 5. The class *BOPTools* has been removed as duplicate of the class *TopExp*;
This commit is contained in:
@@ -16,8 +16,6 @@
|
||||
|
||||
#include <BOPAlgo_BOP.hxx>
|
||||
#include <BOPAlgo_PaveFiller.hxx>
|
||||
#include <BOPCol_DataMapOfShapeListOfShape.hxx>
|
||||
#include <BOPCol_ListOfShape.hxx>
|
||||
#include <BOPDS_DS.hxx>
|
||||
#include <BRep_Builder.hxx>
|
||||
#include <BRep_Tool.hxx>
|
||||
@@ -266,7 +264,7 @@ void BRepFill_TrimShellCorner::Perform()
|
||||
}
|
||||
|
||||
BOPAlgo_PaveFiller aPF;
|
||||
BOPCol_ListOfShape aLS;
|
||||
TopTools_ListOfShape aLS;
|
||||
aLS.Append(myShape1);
|
||||
aLS.Append(myShape2);
|
||||
aPF.SetArguments(aLS);
|
||||
@@ -279,7 +277,7 @@ void BRepFill_TrimShellCorner::Perform()
|
||||
const BOPDS_PDS& theDS = aPF.PDS();
|
||||
//
|
||||
BOPDS_VectorOfInterfFF& aFFs = theDS->InterfFF();
|
||||
Standard_Integer aNbFFs = aFFs.Extent();
|
||||
Standard_Integer aNbFFs = aFFs.Length();
|
||||
|
||||
if(!SplitUEdges(myUEdges, theDS, myHistMap)) {
|
||||
return;
|
||||
@@ -300,9 +298,9 @@ void BRepFill_TrimShellCorner::Perform()
|
||||
aFFi.Indices(nF1, nF2);
|
||||
//
|
||||
BOPDS_VectorOfPoint& aVP=aFFi.ChangePoints();
|
||||
aNbP=aVP.Extent();
|
||||
aNbP=aVP.Length();
|
||||
const BOPDS_VectorOfCurve& aVC=aFFi.Curves();
|
||||
aNbC=aVC.Extent();
|
||||
aNbC=aVC.Length();
|
||||
if (!aNbP && !aNbC) {
|
||||
if (!theDS->HasInterfSubShapes(nF1, nF2)) {
|
||||
continue;
|
||||
@@ -1070,7 +1068,7 @@ Standard_Boolean SplitUEdges(const Handle(TopTools_HArray2OfShape)& theUEdge
|
||||
Standard_Integer vindex1 = theDS->Index(V1);
|
||||
Standard_Integer vindex2 = theDS->Index(V2);
|
||||
Standard_Integer vvit = 0;
|
||||
Standard_Integer aNbVVs = aVVs.Extent();
|
||||
Standard_Integer aNbVVs = aVVs.Length();
|
||||
|
||||
for(vvit = 0; !bvertexfound && (vvit < aNbVVs); vvit++) {
|
||||
//const BOPTools_VVInterference& aVV = aVVs(vvit);
|
||||
@@ -1169,7 +1167,7 @@ Standard_Boolean FindCommonVertex(const BOPDS_PDS& theDS,
|
||||
Standard_Integer eeit = 0;
|
||||
|
||||
Standard_Integer aNbEEs;
|
||||
aNbEEs = aEEs.Extent();
|
||||
aNbEEs = aEEs.Length();
|
||||
for(eeit = 0; eeit < aNbEEs; ++eeit) {
|
||||
const BOPDS_InterfEE& aEE = aEEs(eeit);
|
||||
|
||||
@@ -2123,7 +2121,7 @@ Standard_Boolean FilterSectionEdges(const BOPDS_VectorOfCurve& theBCurves,
|
||||
|
||||
BRep_Builder aBB;
|
||||
aBB.MakeCompound(theResult);
|
||||
Standard_Integer aNbCurves = theBCurves.Extent();
|
||||
Standard_Integer aNbCurves = theBCurves.Length();
|
||||
Standard_Integer cit = 0;
|
||||
BOPDS_ListIteratorOfListOfPaveBlock aPBIt;
|
||||
|
||||
|
Reference in New Issue
Block a user