mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-08 14:17:06 +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:
@@ -18,18 +18,17 @@
|
||||
#include <BOPAlgo_PaveFiller.hxx>
|
||||
#include <BOPAlgo_Tools.hxx>
|
||||
#include <BOPAlgo_Alerts.hxx>
|
||||
#include <BOPCol_DataMapOfShapeListOfShape.hxx>
|
||||
#include <BOPCol_ListOfShape.hxx>
|
||||
#include <BOPDS_DS.hxx>
|
||||
#include <BOPTools.hxx>
|
||||
#include <BOPTools_AlgoTools.hxx>
|
||||
#include <BRepPrimAPI_MakeBox.hxx>
|
||||
#include <TopExp.hxx>
|
||||
#include <TopExp_Explorer.hxx>
|
||||
#include <TopoDS_Solid.hxx>
|
||||
#include <TopTools_ListOfShape.hxx>
|
||||
|
||||
static
|
||||
void AddFace(const TopoDS_Shape& theF,
|
||||
BOPCol_ListOfShape& theLF);
|
||||
TopTools_ListOfShape& theLF);
|
||||
|
||||
//=======================================================================
|
||||
//function : CheckData
|
||||
@@ -69,8 +68,8 @@ void BOPAlgo_MakerVolume::Perform()
|
||||
//to create the compound of them and use it as one argument
|
||||
TopoDS_Compound anArgs;
|
||||
BRep_Builder aBB;
|
||||
BOPCol_ListIteratorOfListOfShape aIt;
|
||||
BOPCol_ListOfShape aLS;
|
||||
TopTools_ListIteratorOfListOfShape aIt;
|
||||
TopTools_ListOfShape aLS;
|
||||
//
|
||||
aBB.MakeCompound(anArgs);
|
||||
aIt.Initialize(myArguments);
|
||||
@@ -150,8 +149,8 @@ void BOPAlgo_MakerVolume::PerformInternal1
|
||||
return;
|
||||
}
|
||||
//
|
||||
BOPCol_MapOfShape aBoxFaces;
|
||||
BOPCol_ListOfShape aLSR;
|
||||
TopTools_MapOfShape aBoxFaces;
|
||||
TopTools_ListOfShape aLSR;
|
||||
//
|
||||
// 5. Create bounding box
|
||||
MakeBox(aBoxFaces);
|
||||
@@ -187,8 +186,8 @@ void BOPAlgo_MakerVolume::CollectFaces()
|
||||
UserBreak();
|
||||
//
|
||||
Standard_Integer i, aNbShapes;
|
||||
BOPCol_ListIteratorOfListOfShape aIt;
|
||||
BOPCol_MapOfShape aMFence;
|
||||
TopTools_ListIteratorOfListOfShape aIt;
|
||||
TopTools_MapOfShape aMFence;
|
||||
//
|
||||
aNbShapes = myDS->NbSourceShapes();
|
||||
for (i = 0; i < aNbShapes; ++i) {
|
||||
@@ -202,7 +201,7 @@ void BOPAlgo_MakerVolume::CollectFaces()
|
||||
//
|
||||
const TopoDS_Shape& aF = aSI.Shape();
|
||||
if (myImages.IsBound(aF)) {
|
||||
const BOPCol_ListOfShape& aLFIm = myImages.Find(aF);
|
||||
const TopTools_ListOfShape& aLFIm = myImages.Find(aF);
|
||||
aIt.Initialize(aLFIm);
|
||||
for (; aIt.More(); aIt.Next()) {
|
||||
const TopoDS_Shape& aFIm = aIt.Value();
|
||||
@@ -221,7 +220,7 @@ void BOPAlgo_MakerVolume::CollectFaces()
|
||||
//function : MakeBox
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
void BOPAlgo_MakerVolume::MakeBox(BOPCol_MapOfShape& theBoxFaces)
|
||||
void BOPAlgo_MakerVolume::MakeBox(TopTools_MapOfShape& theBoxFaces)
|
||||
{
|
||||
UserBreak();
|
||||
//
|
||||
@@ -248,7 +247,7 @@ void BOPAlgo_MakerVolume::MakeBox(BOPCol_MapOfShape& theBoxFaces)
|
||||
//function : BuildSolids
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
void BOPAlgo_MakerVolume::BuildSolids(BOPCol_ListOfShape& theLSR)
|
||||
void BOPAlgo_MakerVolume::BuildSolids(TopTools_ListOfShape& theLSR)
|
||||
{
|
||||
UserBreak();
|
||||
//
|
||||
@@ -272,12 +271,12 @@ void BOPAlgo_MakerVolume::BuildSolids(BOPCol_ListOfShape& theLSR)
|
||||
//function : TreatResult
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
void BOPAlgo_MakerVolume::RemoveBox(BOPCol_ListOfShape& theLSR,
|
||||
const BOPCol_MapOfShape& theBoxFaces)
|
||||
void BOPAlgo_MakerVolume::RemoveBox(TopTools_ListOfShape& theLSR,
|
||||
const TopTools_MapOfShape& theBoxFaces)
|
||||
{
|
||||
UserBreak();
|
||||
//
|
||||
BOPCol_ListIteratorOfListOfShape aIt;
|
||||
TopTools_ListIteratorOfListOfShape aIt;
|
||||
TopExp_Explorer aExp;
|
||||
Standard_Boolean bFound;
|
||||
//
|
||||
@@ -305,14 +304,14 @@ void BOPAlgo_MakerVolume::RemoveBox(BOPCol_ListOfShape& theLSR,
|
||||
//function : BuildShape
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
void BOPAlgo_MakerVolume::BuildShape(const BOPCol_ListOfShape& theLSR)
|
||||
void BOPAlgo_MakerVolume::BuildShape(const TopTools_ListOfShape& theLSR)
|
||||
{
|
||||
if (theLSR.Extent() == 1) {
|
||||
myShape = theLSR.First();
|
||||
}
|
||||
else {
|
||||
BRep_Builder aBB;
|
||||
BOPCol_ListIteratorOfListOfShape aIt;
|
||||
TopTools_ListIteratorOfListOfShape aIt;
|
||||
//
|
||||
aIt.Initialize(theLSR);
|
||||
for (; aIt.More(); aIt.Next()) {
|
||||
@@ -326,7 +325,7 @@ void BOPAlgo_MakerVolume::BuildShape(const BOPCol_ListOfShape& theLSR)
|
||||
//function : FillInternalShapes
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
void BOPAlgo_MakerVolume::FillInternalShapes(const BOPCol_ListOfShape& theLSR)
|
||||
void BOPAlgo_MakerVolume::FillInternalShapes(const TopTools_ListOfShape& theLSR)
|
||||
{
|
||||
if (myAvoidInternalShapes) {
|
||||
return;
|
||||
@@ -339,13 +338,13 @@ void BOPAlgo_MakerVolume::FillInternalShapes(const BOPCol_ListOfShape& theLSR)
|
||||
TopAbs_State aState;
|
||||
TopoDS_Iterator aItS;
|
||||
BRep_Builder aBB;
|
||||
BOPCol_MapOfShape aMFence;
|
||||
BOPCol_IndexedMapOfShape aMSS;
|
||||
BOPCol_ListOfShape aLVE, aLSC, aLSIn;
|
||||
BOPCol_ListIteratorOfListOfShape aIt, aIt1;
|
||||
TopTools_MapOfShape aMFence;
|
||||
TopTools_IndexedMapOfShape aMSS;
|
||||
TopTools_ListOfShape aLVE, aLSC, aLSIn;
|
||||
TopTools_ListIteratorOfListOfShape aIt, aIt1;
|
||||
//
|
||||
// 1. Collect shapes to process: vertices, edges, wires
|
||||
const BOPCol_ListOfShape& anArguments = myDS->Arguments();
|
||||
const TopTools_ListOfShape& anArguments = myDS->Arguments();
|
||||
aIt.Initialize(anArguments);
|
||||
for (; aIt.More(); aIt.Next()) {
|
||||
const TopoDS_Shape& aS = aIt.Value();
|
||||
@@ -373,15 +372,15 @@ void BOPAlgo_MakerVolume::FillInternalShapes(const BOPCol_ListOfShape& theLSR)
|
||||
aIt.Initialize(theLSR);
|
||||
for (; aIt.More(); aIt.Next()) {
|
||||
const TopoDS_Shape& aS = aIt.Value();
|
||||
BOPTools::MapShapes(aS, TopAbs_EDGE, aMSS);
|
||||
BOPTools::MapShapes(aS, TopAbs_VERTEX, aMSS);
|
||||
TopExp::MapShapes(aS, TopAbs_EDGE, aMSS);
|
||||
TopExp::MapShapes(aS, TopAbs_VERTEX, aMSS);
|
||||
}
|
||||
//
|
||||
aIt.Initialize(aLVE);
|
||||
for (; aIt.More(); aIt.Next()) {
|
||||
const TopoDS_Shape& aS = aIt.Value();
|
||||
if (myImages.IsBound(aS)) {
|
||||
const BOPCol_ListOfShape &aLSp = myImages.Find(aS);
|
||||
const TopTools_ListOfShape &aLSp = myImages.Find(aS);
|
||||
aIt1.Initialize(aLSp);
|
||||
for (; aIt1.More(); aIt1.Next()) {
|
||||
const TopoDS_Shape& aSp = aIt1.Value();
|
||||
@@ -429,7 +428,7 @@ void BOPAlgo_MakerVolume::FillInternalShapes(const BOPCol_ListOfShape& theLSR)
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
void AddFace(const TopoDS_Shape& theF,
|
||||
BOPCol_ListOfShape& theLF)
|
||||
TopTools_ListOfShape& theLF)
|
||||
{
|
||||
TopoDS_Shape aFF = theF;
|
||||
aFF.Orientation(TopAbs_FORWARD);
|
||||
|
Reference in New Issue
Block a user