for (; aIt.More(); aIt.Next()) {
Handle(BOPDS_PaveBlock)& aPB=aIt.ChangeValue();
//
- const Handle(BOPDS_PaveBlock)& aPBR=aPB->RealPaveBlock();
+ const Handle(BOPDS_PaveBlock) aPBR=aPB->RealPaveBlock();
if (aMPBF.Contains(aPBR)) {
continue;
}
}
for (; aItLPB.More(); aItLPB.Next()) {
const Handle(BOPDS_PaveBlock)& aPBx=aItLPB.Value();
- const Handle(BOPDS_PaveBlock)& aPBRx=aPBx->RealPaveBlock();
+ const Handle(BOPDS_PaveBlock) aPBRx=aPBx->RealPaveBlock();
//
// update vertices of paves
aPave[0]=aPBx->Pave1();
{
Standard_Boolean bHasReference;
Standard_Integer aRef;
- BOPDS_ListOfPaveBlock* pLPB;
//
BOPDS_ShapeInfo& aSI=ChangeShapeInfo(theI);
bHasReference=aSI.HasReference();
}
//
aRef=aSI.Reference();
- const BOPDS_ListOfPaveBlock& aLPB=myPaveBlocksPool(aRef);
- pLPB=(BOPDS_ListOfPaveBlock*)&aLPB;
- return *pLPB;
+ return myPaveBlocksPool(aRef);
}
//=======================================================================
//function : InitPaveBlocks
aPB->AppendExtPave1(aPave);
}
//
- iRef=myPaveBlocksPool.Append()-1;
+ iRef = myPaveBlocksPool.Append() - 1;
BOPDS_ListOfPaveBlock &aLPB=myPaveBlocksPool(iRef);
//
aPB->Update(aLPB, Standard_False);
- //
aSI.SetReference(iRef);
}
//=======================================================================
else {
aItLPB.Initialize(aLPB);
for (; aItLPB.More(); aItLPB.Next()) {
- const Handle(BOPDS_PaveBlock)& aPB=aItLPB.Value()->RealPaveBlock();
+ const Handle(BOPDS_PaveBlock) aPB=aItLPB.Value()->RealPaveBlock();
nSp=aPB->Edge();
aMI.Add(nSp);
}
else {
aItLPB.Initialize(aLPB);
for (; aItLPB.More(); aItLPB.Next()) {
- const Handle(BOPDS_PaveBlock)& aPB=aItLPB.Value()->RealPaveBlock();
+ const Handle(BOPDS_PaveBlock) aPB=aItLPB.Value()->RealPaveBlock();
nSp=aPB->Edge();
if (aMI.Contains(nSp)) {
theLI.Append(nSp);
RealPaveBlock(me)
returns PaveBlock from BOPDS;
- ---C++: return const &
---Purpose:
--- Selector
--- Returns the real common block
myTS2 : Real from Standard is protected;
myShrunkBox : Box from Bnd is protected;
--dummies
- myPB : PaveBlock from BOPDS is protected;
myMFence : MapOfInteger from BOPCol is protected;
end PaveBlock;
//function : RealPaveBlock
//purpose :
//=======================================================================
- const Handle(BOPDS_PaveBlock)& BOPDS_PaveBlock::RealPaveBlock()const
+ Handle(BOPDS_PaveBlock) BOPDS_PaveBlock::RealPaveBlock()const
{
if (IsCommonBlock()) {
const Handle(BOPDS_PaveBlock)& aPB1=myCommonBlock->PaveBlock1();
return aPB1;
}
- //
- Handle_BOPDS_PaveBlock* pPB=(Handle_BOPDS_PaveBlock*)&myPB;
- *pPB=this;
- return myPB;
+ return this;
}
// ShrunkData
//=======================================================================