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:
@@ -21,6 +21,7 @@
|
||||
#include <Adaptor3d_HSurface.hxx>
|
||||
#include <Bnd_Box.hxx>
|
||||
#include <BndLib_Add3dCurve.hxx>
|
||||
#include <BOPTools_AlgoTools.hxx>
|
||||
#include <BRep_Builder.hxx>
|
||||
#include <BRep_CurveRepresentation.hxx>
|
||||
#include <BRep_GCurve.hxx>
|
||||
@@ -76,8 +77,6 @@
|
||||
#include <TopTools_DataMapIteratorOfDataMapOfShapeListOfShape.hxx>
|
||||
#include <TopTools_ListIteratorOfListOfShape.hxx>
|
||||
#include <TopTools_ListOfShape.hxx>
|
||||
#include <BOPCol_ListOfShape.hxx>
|
||||
#include <BOPTools_AlgoTools.hxx>
|
||||
|
||||
#include <stdio.h>
|
||||
#ifdef DRAW
|
||||
@@ -1702,7 +1701,7 @@ void BRepOffset_Inter2d::ConnexIntByIntInVert
|
||||
static void MakeChain(const TopoDS_Shape& theV,
|
||||
const TopTools_IndexedDataMapOfShapeListOfShape& theDMVV,
|
||||
TopTools_MapOfShape& theMDone,
|
||||
BOPCol_ListOfShape& theChain)
|
||||
TopTools_ListOfShape& theChain)
|
||||
{
|
||||
if (theMDone.Add(theV)) {
|
||||
theChain.Append(theV);
|
||||
@@ -1730,7 +1729,7 @@ void BRepOffset_Inter2d::FuseVertices(const TopTools_IndexedDataMapOfShapeListOf
|
||||
const TopoDS_Vertex& aV = TopoDS::Vertex(theDMVV.FindKey(i));
|
||||
//
|
||||
// find chain of vertices
|
||||
BOPCol_ListOfShape aLVChain;
|
||||
TopTools_ListOfShape aLVChain;
|
||||
MakeChain(aV, theDMVV, aMVDone, aLVChain);
|
||||
//
|
||||
if (aLVChain.Extent() < 2) {
|
||||
@@ -1743,7 +1742,7 @@ void BRepOffset_Inter2d::FuseVertices(const TopTools_IndexedDataMapOfShapeListOf
|
||||
//
|
||||
TopoDS_Vertex aVNewInt = TopoDS::Vertex(aVNew.Oriented(TopAbs_INTERNAL));
|
||||
//
|
||||
BOPCol_ListIteratorOfListOfShape aIt(aLVChain);
|
||||
TopTools_ListIteratorOfListOfShape aIt(aLVChain);
|
||||
for (; aIt.More(); aIt.Next()) {
|
||||
const TopoDS_Shape& aVOld = aIt.Value();
|
||||
// update the parameters on edges
|
||||
|
@@ -46,7 +46,7 @@
|
||||
#include <TopTools_MapOfShape.hxx>
|
||||
//
|
||||
#include <BRepBndLib.hxx>
|
||||
#include <BOPCol_BoxBndTree.hxx>
|
||||
#include <BOPTools_BoxBndTree.hxx>
|
||||
#include <NCollection_UBTreeFiller.hxx>
|
||||
//
|
||||
#include <BOPTools_AlgoTools.hxx>
|
||||
@@ -165,7 +165,7 @@ void BRepOffset_Inter3d::CompletInt(const TopTools_ListOfShape& SetOfFaces,
|
||||
//---------------------------------------------------------------
|
||||
|
||||
// Prepare tools for sorting the bounding boxes
|
||||
BOPCol_BoxBndTree aBBTree;
|
||||
BOPTools_BoxBndTree aBBTree;
|
||||
NCollection_UBTreeFiller <Standard_Integer, Bnd_Box> aTreeFiller(aBBTree);
|
||||
//
|
||||
NCollection_IndexedDataMap<TopoDS_Shape, Bnd_Box, TopTools_ShapeMapHasher> aMFaces;
|
||||
@@ -192,12 +192,12 @@ void BRepOffset_Inter3d::CompletInt(const TopTools_ListOfShape& SetOfFaces,
|
||||
const TopoDS_Face& aF1 = TopoDS::Face(aItL.Value());
|
||||
const Bnd_Box& aBoxF1 = aMFaces.FindFromKey(aF1);
|
||||
//
|
||||
BOPCol_BoxBndTreeSelector aSelector;
|
||||
BOPTools_BoxBndTreeSelector aSelector;
|
||||
aSelector.SetBox(aBoxF1);
|
||||
aBBTree.Select(aSelector);
|
||||
//
|
||||
const BOPCol_ListOfInteger& aLI = aSelector.Indices();
|
||||
BOPCol_ListIteratorOfListOfInteger aItLI(aLI);
|
||||
const TColStd_ListOfInteger& aLI = aSelector.Indices();
|
||||
TColStd_ListIteratorOfListOfInteger aItLI(aLI);
|
||||
for (; aItLI.More(); aItLI.Next()) {
|
||||
Standard_Integer i = aItLI.Value();
|
||||
const TopoDS_Face& aF2 = TopoDS::Face(aMFaces.FindKey(i));
|
||||
|
@@ -116,7 +116,6 @@
|
||||
//
|
||||
#include <BOPAlgo_MakerVolume.hxx>
|
||||
#include <BOPTools_AlgoTools.hxx>
|
||||
#include <BOPCol_ListOfShape.hxx>
|
||||
|
||||
#include <stdio.h>
|
||||
// POP for NT
|
||||
@@ -254,7 +253,7 @@ static
|
||||
TopTools_ListOfShape& theLSF);
|
||||
|
||||
static
|
||||
Standard_Boolean BuildShellsCompleteInter(const BOPCol_ListOfShape& theLF,
|
||||
Standard_Boolean BuildShellsCompleteInter(const TopTools_ListOfShape& theLF,
|
||||
BRepAlgo_Image& theImage,
|
||||
TopoDS_Shape& theShells);
|
||||
|
||||
@@ -2934,7 +2933,7 @@ void BRepOffset_MakeOffset::MakeShells ()
|
||||
#endif
|
||||
//
|
||||
// Prepare list of splits of the offset faces to make the shells
|
||||
BOPCol_ListOfShape aLSF;
|
||||
TopTools_ListOfShape aLSF;
|
||||
const TopTools_ListOfShape& R = myImageOffset.Roots();
|
||||
TopTools_ListIteratorOfListOfShape it(R);
|
||||
//
|
||||
@@ -2982,7 +2981,7 @@ void BRepOffset_MakeOffset::MakeShells ()
|
||||
//
|
||||
if (!bDone) {
|
||||
BRepTools_Quilt Glue;
|
||||
BOPCol_ListIteratorOfListOfShape aItLS(aLSF);
|
||||
TopTools_ListIteratorOfListOfShape aItLS(aLSF);
|
||||
for (; aItLS.More(); aItLS.Next()) {
|
||||
Glue.Add(aItLS.Value());
|
||||
}
|
||||
@@ -4080,7 +4079,7 @@ void GetEnlargedFaces(const TopoDS_Shape& theShape,
|
||||
// In case there will be more than just one solid, it will be
|
||||
// rebuilt using only outer faces.
|
||||
//=======================================================================
|
||||
Standard_Boolean BuildShellsCompleteInter(const BOPCol_ListOfShape& theLF,
|
||||
Standard_Boolean BuildShellsCompleteInter(const TopTools_ListOfShape& theLF,
|
||||
BRepAlgo_Image& theImage,
|
||||
TopoDS_Shape& theShells)
|
||||
{
|
||||
@@ -4155,7 +4154,7 @@ Standard_Boolean BuildShellsCompleteInter(const BOPCol_ListOfShape& theLF,
|
||||
}
|
||||
//
|
||||
// get faces attached to only one solid
|
||||
BOPCol_ListOfShape aLF(anAllocLoc);
|
||||
TopTools_ListOfShape aLF(anAllocLoc);
|
||||
for (i = 1; i <= aNb; ++i) {
|
||||
const TopTools_ListOfShape& aLS = aDMFS(i);
|
||||
if (aLS.Extent() == 1) {
|
||||
|
@@ -52,11 +52,10 @@
|
||||
#include <BOPAlgo_MakerVolume.hxx>
|
||||
#include <BOPAlgo_BuilderFace.hxx>
|
||||
|
||||
#include <BOPCol_ListOfShape.hxx>
|
||||
#include <BOPCol_DataMapOfShapeShape.hxx>
|
||||
#include <BOPCol_IndexedDataMapOfShapeListOfShape.hxx>
|
||||
#include <TopTools_ListOfShape.hxx>
|
||||
#include <TopTools_DataMapOfShapeShape.hxx>
|
||||
#include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
|
||||
|
||||
#include <BOPTools.hxx>
|
||||
#include <BOPTools_AlgoTools3D.hxx>
|
||||
#include <BOPTools_AlgoTools.hxx>
|
||||
#include <BOPTools_AlgoTools2D.hxx>
|
||||
@@ -483,7 +482,7 @@ static
|
||||
TopTools_DataMapOfShapeListOfShape& theMELF);
|
||||
|
||||
static
|
||||
void IntersectEdges(const BOPCol_ListOfShape& theLA,
|
||||
void IntersectEdges(const TopTools_ListOfShape& theLA,
|
||||
const TopTools_ListOfShape& theLE,
|
||||
const TopTools_MapOfShape& theMVBounds,
|
||||
const TopTools_MapOfShape& theVertsToAvoid,
|
||||
@@ -1173,7 +1172,7 @@ void IntersectTrimmedEdges(const TopTools_ListOfShape& theLF,
|
||||
}
|
||||
//
|
||||
// get edges to intersect from descendants of the offset faces
|
||||
BOPCol_ListOfShape aLS;
|
||||
TopTools_ListOfShape aLS;
|
||||
//
|
||||
TopTools_ListIteratorOfListOfShape aItLF(theLF);
|
||||
for (; aItLF.More(); aItLF.Next()) {
|
||||
@@ -1209,7 +1208,7 @@ void IntersectTrimmedEdges(const TopTools_ListOfShape& theLF,
|
||||
//
|
||||
TopTools_ListOfShape aLA;
|
||||
// fill map with edges images
|
||||
BOPCol_ListIteratorOfListOfShape aIt(aLS);
|
||||
TopTools_ListIteratorOfListOfShape aIt(aLS);
|
||||
for (; aIt.More(); aIt.Next()) {
|
||||
const TopoDS_Shape& aE = aIt.Value();
|
||||
const TopTools_ListOfShape& aLEIm = aGFE.Modified(aE);
|
||||
@@ -1351,7 +1350,7 @@ void BuildSplitsOfFace(const TopoDS_Face& theFace,
|
||||
theLFImages.Clear();
|
||||
//
|
||||
// take edges to split the face
|
||||
BOPCol_ListOfShape aLE;
|
||||
TopTools_ListOfShape aLE;
|
||||
TopExp_Explorer aExp(theEdges, TopAbs_EDGE);
|
||||
for (; aExp.More(); aExp.Next()) {
|
||||
TopoDS_Edge aE = TopoDS::Edge(aExp.Current());
|
||||
@@ -1374,8 +1373,8 @@ void BuildSplitsOfFace(const TopoDS_Face& theFace,
|
||||
aBF.SetShapes(aLE);
|
||||
aBF.Perform();
|
||||
//
|
||||
const BOPCol_ListOfShape& aLFSp = aBF.Areas();
|
||||
BOPCol_ListIteratorOfListOfShape aItLF(aLFSp);
|
||||
const TopTools_ListOfShape& aLFSp = aBF.Areas();
|
||||
TopTools_ListIteratorOfListOfShape aItLF(aLFSp);
|
||||
for (; aItLF.More(); aItLF.Next()) {
|
||||
TopoDS_Shape& aFSp = aItLF.ChangeValue();
|
||||
aFSp.Orientation(anOr);
|
||||
@@ -2077,7 +2076,7 @@ void FindFacesInsideHoleWires(const TopoDS_Face& theFOrigin,
|
||||
}
|
||||
//
|
||||
// build new planar face using these edges
|
||||
BOPCol_ListOfShape aLE;
|
||||
TopTools_ListOfShape aLE;
|
||||
Standard_Integer i, aNbE = aMEImWire.Extent();
|
||||
for (i = 1; i <= aNbE; ++i) {
|
||||
aLE.Append(aMEImWire(i).Oriented(TopAbs_FORWARD));
|
||||
@@ -2089,7 +2088,7 @@ void FindFacesInsideHoleWires(const TopoDS_Face& theFOrigin,
|
||||
aBF.SetShapes(aLE);
|
||||
aBF.Perform();
|
||||
//
|
||||
const BOPCol_ListOfShape& aLFNew = aBF.Areas();
|
||||
const TopTools_ListOfShape& aLFNew = aBF.Areas();
|
||||
if (aLFNew.IsEmpty()) {
|
||||
continue;
|
||||
}
|
||||
@@ -2827,7 +2826,7 @@ void RemoveInsideFaces(TopTools_IndexedDataMapOfShapeListOfShape& theFImages,
|
||||
TopTools_IndexedMapOfShape& theMEInside,
|
||||
TopoDS_Shape& theSolids)
|
||||
{
|
||||
BOPCol_ListOfShape aLS;
|
||||
TopTools_ListOfShape aLS;
|
||||
TopTools_MapOfShape aMFence;
|
||||
TopTools_IndexedMapOfShape aMFInv;
|
||||
TopTools_ListIteratorOfListOfShape aItLF;
|
||||
@@ -3116,11 +3115,11 @@ void ShapesConnections(const TopTools_IndexedDataMapOfShapeListOfShape& theInvFa
|
||||
const BOPDS_PDS& pDS = theBuilder.PDS();
|
||||
// analyze all Face/Face intersections
|
||||
const BOPDS_VectorOfInterfFF& aFFs = pDS->InterfFF();
|
||||
Standard_Integer iInt, aNbFF = aFFs.Extent();
|
||||
Standard_Integer iInt, aNbFF = aFFs.Length();
|
||||
for (iInt = 0; iInt < aNbFF; ++iInt) {
|
||||
const BOPDS_InterfFF& aFF = aFFs(iInt);
|
||||
const BOPDS_VectorOfCurve& aVNC = aFF.Curves();
|
||||
Standard_Integer aNbC = aVNC.Extent();
|
||||
Standard_Integer aNbC = aVNC.Length();
|
||||
if (!aNbC) {
|
||||
continue;
|
||||
}
|
||||
@@ -3260,7 +3259,7 @@ void RemoveHangingParts(const BOPAlgo_MakerVolume& theMV,
|
||||
aBB.MakeCompound(aCFHangs);
|
||||
|
||||
// Tool for getting the splits of faces
|
||||
const BOPCol_DataMapOfShapeListOfShape& aMVIms = theMV.Images();
|
||||
const TopTools_DataMapOfShapeListOfShape& aMVIms = theMV.Images();
|
||||
|
||||
TopTools_ListIteratorOfListOfShape aItLArgs(theMV.Arguments());
|
||||
for (; aItLArgs.More(); aItLArgs.Next())
|
||||
@@ -3269,7 +3268,7 @@ void RemoveHangingParts(const BOPAlgo_MakerVolume& theMV,
|
||||
for (; anExpF.More(); anExpF.Next())
|
||||
{
|
||||
const TopoDS_Shape& aF = anExpF.Current();
|
||||
const BOPCol_ListOfShape* pLFIm = aMVIms.Seek(aF);
|
||||
const TopTools_ListOfShape* pLFIm = aMVIms.Seek(aF);
|
||||
if (pLFIm)
|
||||
{
|
||||
TopTools_ListIteratorOfListOfShape aItLFIm(*pLFIm);
|
||||
@@ -3289,7 +3288,7 @@ void RemoveHangingParts(const BOPAlgo_MakerVolume& theMV,
|
||||
}
|
||||
|
||||
// Make connexity blocks of all hanging parts and check that they are isolated
|
||||
BOPCol_ListOfShape aLCBHangs;
|
||||
TopTools_ListOfShape aLCBHangs;
|
||||
BOPTools_AlgoTools::MakeConnexityBlocks(aCFHangs, TopAbs_EDGE, TopAbs_FACE, aLCBHangs);
|
||||
if (aLCBHangs.IsEmpty())
|
||||
return;
|
||||
@@ -3312,10 +3311,10 @@ void RemoveHangingParts(const BOPAlgo_MakerVolume& theMV,
|
||||
Standard_Integer i, aNbE = theInvEdges.Extent();
|
||||
for (i = 1; i <= aNbE; ++i) {
|
||||
const TopoDS_Shape& aEInv = theInvEdges(i);
|
||||
const BOPCol_ListOfShape *pLEIm = aMVIms.Seek(aEInv);
|
||||
const TopTools_ListOfShape *pLEIm = aMVIms.Seek(aEInv);
|
||||
if (pLEIm)
|
||||
{
|
||||
BOPCol_ListIteratorOfListOfShape aItLEIm(*pLEIm);
|
||||
TopTools_ListIteratorOfListOfShape aItLEIm(*pLEIm);
|
||||
for (; aItLEIm.More(); aItLEIm.Next())
|
||||
aMEInv.Add(aItLEIm.Value());
|
||||
}
|
||||
@@ -3324,9 +3323,9 @@ void RemoveHangingParts(const BOPAlgo_MakerVolume& theMV,
|
||||
}
|
||||
|
||||
// Tool for getting the origins of the splits
|
||||
const BOPCol_DataMapOfShapeListOfShape& aMVOrs = theMV.Origins();
|
||||
const TopTools_DataMapOfShapeListOfShape& aMVOrs = theMV.Origins();
|
||||
|
||||
BOPCol_ListIteratorOfListOfShape aItLCBH(aLCBHangs);
|
||||
TopTools_ListIteratorOfListOfShape aItLCBH(aLCBHangs);
|
||||
for (; aItLCBH.More(); aItLCBH.Next())
|
||||
{
|
||||
const TopoDS_Shape& aCBH = aItLCBH.Value();
|
||||
@@ -3381,7 +3380,7 @@ void RemoveHangingParts(const BOPAlgo_MakerVolume& theMV,
|
||||
}
|
||||
|
||||
// Check block to be isolated
|
||||
const BOPCol_ListOfShape* pLFOr = aMVOrs.Seek(aF);
|
||||
const TopTools_ListOfShape* pLFOr = aMVOrs.Seek(aF);
|
||||
if (pLFOr)
|
||||
{
|
||||
TopTools_ListIteratorOfListOfShape aItLFOr(*pLFOr);
|
||||
@@ -5031,7 +5030,7 @@ void IntersectAndTrimEdges(const TopTools_IndexedDataMapOfShapeListOfShape& theF
|
||||
return;
|
||||
}
|
||||
//
|
||||
BOPCol_ListOfShape aLArgs;
|
||||
TopTools_ListOfShape aLArgs;
|
||||
TopTools_MapOfShape aMFence;
|
||||
TopTools_ListIteratorOfListOfShape aIt, aIt1;
|
||||
TopExp_Explorer aExp;
|
||||
@@ -5437,7 +5436,7 @@ void UpdateValidEdges(const TopTools_IndexedDataMapOfShapeListOfShape& theFImage
|
||||
continue;
|
||||
|
||||
// Get the splits of new edges to intersect
|
||||
BOPCol_ListOfShape aLSplits;
|
||||
TopTools_ListOfShape aLSplits;
|
||||
|
||||
TopTools_ListIteratorOfListOfShape aItLE(aBlockLENew);
|
||||
for (; aItLE.More(); aItLE.Next())
|
||||
@@ -5477,7 +5476,7 @@ void UpdateValidEdges(const TopTools_IndexedDataMapOfShapeListOfShape& theFImage
|
||||
TopTools_MapOfShape aMEVal;
|
||||
|
||||
// Blocks of valid edges on the first stage
|
||||
BOPCol_ListOfShape aLValBlocks;
|
||||
TopTools_ListOfShape aLValBlocks;
|
||||
|
||||
// Context for caching the classification tools
|
||||
Handle(IntTools_Context) aCtx = new IntTools_Context;
|
||||
@@ -5827,7 +5826,7 @@ void TrimNewIntersectionEdges(const TopTools_ListOfShape& theLE,
|
||||
//function : IntersectEdges
|
||||
//purpose : Intersecting the trimmed edges to avoid self-intersections
|
||||
//=======================================================================
|
||||
void IntersectEdges(const BOPCol_ListOfShape& theLA,
|
||||
void IntersectEdges(const TopTools_ListOfShape& theLA,
|
||||
const TopTools_ListOfShape& theLE,
|
||||
const TopTools_MapOfShape& theMVBounds,
|
||||
const TopTools_MapOfShape& theVertsToAvoid,
|
||||
@@ -5847,7 +5846,7 @@ void IntersectEdges(const BOPCol_ListOfShape& theLA,
|
||||
TopoDS_Compound aSp;
|
||||
BRep_Builder aBB;
|
||||
aBB.MakeCompound(aSp);
|
||||
BOPCol_ListIteratorOfListOfShape anIt(theLA);
|
||||
TopTools_ListIteratorOfListOfShape anIt(theLA);
|
||||
for (; anIt.More(); anIt.Next()) {
|
||||
const TopoDS_Shape& aE = anIt.Value();
|
||||
aBB.Add(aSp, aE);
|
||||
@@ -6093,7 +6092,7 @@ void GetInvalidEdgesByBounds(const TopoDS_Shape& theSplits,
|
||||
//
|
||||
// check edge/edge intersections
|
||||
const BOPDS_VectorOfInterfEE& aEEs = pDS->InterfEE();
|
||||
Standard_Integer i, aNb = aEEs.Extent();
|
||||
Standard_Integer i, aNb = aEEs.Length();
|
||||
for (i = 0; i < aNb; ++i) {
|
||||
const BOPDS_InterfEE& aEE = aEEs(i);
|
||||
//
|
||||
@@ -6158,7 +6157,7 @@ void GetInvalidEdgesByBounds(const TopoDS_Shape& theSplits,
|
||||
TopTools_IndexedMapOfShape aMSSec;
|
||||
TopExp::MapShapes(aSecR, aMSSec);
|
||||
//
|
||||
const BOPCol_DataMapOfShapeListOfShape& anIm = aSec.Images();
|
||||
const TopTools_DataMapOfShapeListOfShape& anIm = aSec.Images();
|
||||
for (TopExp_Explorer aExp(theSplits, TopAbs_EDGE); aExp.More(); aExp.Next())
|
||||
{
|
||||
const TopoDS_Shape& aE = aExp.Current();
|
||||
@@ -6167,13 +6166,13 @@ void GetInvalidEdgesByBounds(const TopoDS_Shape& theSplits,
|
||||
continue;
|
||||
}
|
||||
//
|
||||
const BOPCol_ListOfShape* pLEIm = anIm.Seek(aE);
|
||||
const TopTools_ListOfShape* pLEIm = anIm.Seek(aE);
|
||||
if (!pLEIm) {
|
||||
// no splits, i.e. completely coincides with some edge from boundary
|
||||
continue;
|
||||
}
|
||||
//
|
||||
BOPCol_ListIteratorOfListOfShape aItLEIm(*pLEIm);
|
||||
TopTools_ListIteratorOfListOfShape aItLEIm(*pLEIm);
|
||||
for (; aItLEIm.More(); aItLEIm.Next()) {
|
||||
const TopoDS_Shape& aEIm = aItLEIm.Value();
|
||||
if (!aMSSec.Contains(aEIm)) {
|
||||
|
@@ -831,7 +831,7 @@ static Standard_Boolean IsAutonomVertex(const TopoDS_Shape& aVertex,
|
||||
//check if vertex with index "index" is not created in VV or EE or EF interference
|
||||
//VV
|
||||
BOPDS_VectorOfInterfVV& aVVs=pDS->InterfVV();
|
||||
aNbVVs = aVVs.Extent();
|
||||
aNbVVs = aVVs.Length();
|
||||
for(aInt = 0; aInt < aNbVVs; aInt++) {
|
||||
const BOPDS_InterfVV& aVV = aVVs(aInt);
|
||||
if (aVV.HasIndexNew()) {
|
||||
@@ -842,7 +842,7 @@ static Standard_Boolean IsAutonomVertex(const TopoDS_Shape& aVertex,
|
||||
}
|
||||
//EE
|
||||
BOPDS_VectorOfInterfEE& aEEs=pDS->InterfEE();
|
||||
aNbEEs = aEEs.Extent();
|
||||
aNbEEs = aEEs.Length();
|
||||
for(aInt = 0; aInt < aNbEEs; aInt++) {
|
||||
const BOPDS_InterfEE& aEE = aEEs(aInt);
|
||||
IntTools_CommonPrt aCP = aEE.CommonPart();
|
||||
@@ -854,7 +854,7 @@ static Standard_Boolean IsAutonomVertex(const TopoDS_Shape& aVertex,
|
||||
}
|
||||
//EF
|
||||
BOPDS_VectorOfInterfEF& aEFs=pDS->InterfEF();
|
||||
aNbEFs = aEFs.Extent();
|
||||
aNbEFs = aEFs.Length();
|
||||
for(aInt = 0; aInt < aNbEFs; aInt++) {
|
||||
const BOPDS_InterfEF& aEF = aEFs(aInt);
|
||||
IntTools_CommonPrt aCP = aEF.CommonPart();
|
||||
@@ -1338,7 +1338,7 @@ static Standard_Boolean CheckIntersFF(const BOPDS_PDS& pDS,
|
||||
return Standard_True;
|
||||
|
||||
BOPDS_VectorOfInterfFF& aFFs = pDS->InterfFF();
|
||||
Standard_Integer aNb = aFFs.Extent();
|
||||
Standard_Integer aNb = aFFs.Length();
|
||||
Standard_Integer i, j, nbe = 0;
|
||||
|
||||
TopTools_SequenceOfShape Edges;
|
||||
@@ -1347,7 +1347,7 @@ static Standard_Boolean CheckIntersFF(const BOPDS_PDS& pDS,
|
||||
{
|
||||
BOPDS_InterfFF& aFFi=aFFs(i);
|
||||
const BOPDS_VectorOfCurve& aBCurves=aFFi.Curves();
|
||||
Standard_Integer aNbCurves = aBCurves.Extent();
|
||||
Standard_Integer aNbCurves = aBCurves.Length();
|
||||
|
||||
for (j = 0; j < aNbCurves; ++j)
|
||||
{
|
||||
@@ -1618,7 +1618,7 @@ void BRepOffset_Tool::Inter3D(const TopoDS_Face& F1,
|
||||
BRepLib::BuildCurves3d(cpF2);
|
||||
|
||||
BOPAlgo_PaveFiller aPF1, aPF2;
|
||||
BOPCol_ListOfShape aLS;
|
||||
TopTools_ListOfShape aLS;
|
||||
aLS.Append(cpF1);
|
||||
aLS.Append(cpF2);
|
||||
aPF1.SetArguments(aLS);
|
||||
@@ -1646,7 +1646,7 @@ void BRepOffset_Tool::Inter3D(const TopoDS_Face& F1,
|
||||
|
||||
const BOPDS_PDS& pDS = pPF->PDS();
|
||||
BOPDS_VectorOfInterfFF& aFFs=pDS->InterfFF();
|
||||
Standard_Integer aNb = aFFs.Extent();
|
||||
Standard_Integer aNb = aFFs.Length();
|
||||
Standard_Integer i = 0, j = 0, k;
|
||||
// Store Result
|
||||
L1.Clear(); L2.Clear();
|
||||
@@ -1658,7 +1658,7 @@ void BRepOffset_Tool::Inter3D(const TopoDS_Face& F1,
|
||||
BOPDS_InterfFF& aFFi=aFFs(i);
|
||||
const BOPDS_VectorOfCurve& aBCurves=aFFi.Curves();
|
||||
|
||||
Standard_Integer aNbCurves = aBCurves.Extent();
|
||||
Standard_Integer aNbCurves = aBCurves.Length();
|
||||
|
||||
for (j = 0; j < aNbCurves; j++) {
|
||||
const BOPDS_Curve& aBC=aBCurves(j);
|
||||
|
Reference in New Issue
Block a user