// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
-#include <BOPAlgo_PaveFiller.ixx>
-#include <gp_Pnt.hxx>
-
-#include <TopAbs_State.hxx>
-
-#include <TopoDS_Vertex.hxx>
-#include <TopoDS_Solid.hxx>
+#include <BOPAlgo_PaveFiller.hxx>
+#include <BOPAlgo_SectionAttribute.hxx>
+#include <BOPDS_Curve.hxx>
+#include <BOPDS_DS.hxx>
+#include <BOPDS_Interf.hxx>
+#include <BOPDS_IteratorSI.hxx>
+#include <BOPDS_PaveBlock.hxx>
#include <BRep_Tool.hxx>
#include <BRepClass3d_SolidClassifier.hxx>
-
+#include <gp_Pnt.hxx>
#include <IntTools_Context.hxx>
-
-#include <BOPDS_DS.hxx>
-#include <BOPDS_IteratorSI.hxx>
-#include <BOPDS_Interf.hxx>
+#include <TopAbs_State.hxx>
+#include <TopoDS_Face.hxx>
+#include <TopoDS_Solid.hxx>
+#include <TopoDS_Vertex.hxx>
//=======================================================================
//function : PerformVZ
void BOPAlgo_PaveFiller::PerformVZ()
{
Standard_Boolean bJustAdd;
- Standard_Integer iSize, nV, nZ, i;
+ Standard_Integer iSize, nV, nZ;
Standard_Real aTol;
gp_Pnt aPV;
TopAbs_State aState;
}
//
BOPDS_VectorOfInterfVZ& aVZs=myDS->InterfVZ();
- aVZs.SetStartSize(iSize);
aVZs.SetIncrement(iSize);
- aVZs.Init();
//
for (; myIterator->More(); myIterator->Next()) {
myIterator->Value(nV, nZ, bJustAdd);
//
aState=aSC.State();
if (aState==TopAbs_IN) {
- i=aVZs.Append()-1;
- BOPDS_InterfVZ& aVZ=aVZs(i);
+ BOPDS_InterfVZ& aVZ=aVZs.Append1();
aVZ.SetIndices(nV, nZ);
//
myDS->AddInterf(nV, nZ);
//=======================================================================
void BOPAlgo_PaveFiller::PerformEZ()
{
- Standard_Boolean bJustAdd, bHasInterf;
- Standard_Integer iSize, nE, nZ, i;
+ Standard_Boolean bJustAdd, bHasInterf;
+ Standard_Integer iSize, nE, nZ;
//
myErrorStatus=0;
//
}
//
BOPDS_VectorOfInterfEZ& aEZs=myDS->InterfEZ();
- aEZs.SetStartSize(iSize);
aEZs.SetIncrement(iSize);
- aEZs.Init();
//
for (; myIterator->More(); myIterator->Next()) {
myIterator->Value(nE, nZ, bJustAdd);
continue;
}
//
- i=aEZs.Append()-1;
- BOPDS_InterfEZ& aEZ=aEZs(i);
+ BOPDS_InterfEZ& aEZ=aEZs.Append1();
aEZ.SetIndices(nE, nZ);
//
myDS->AddInterf(nE, nZ);
void BOPAlgo_PaveFiller::PerformFZ()
{
Standard_Boolean bJustAdd, bHasInterf;
- Standard_Integer iSize, nF, nZ, i;
+ Standard_Integer iSize, nF, nZ;
//
myErrorStatus=0;
//
}
//
BOPDS_VectorOfInterfFZ& aFZs=myDS->InterfFZ();
- aFZs.SetStartSize(iSize);
aFZs.SetIncrement(iSize);
- aFZs.Init();
//
for (; myIterator->More(); myIterator->Next()) {
myIterator->Value(nF, nZ, bJustAdd);
continue;
}
//
- i=aFZs.Append()-1;
- BOPDS_InterfFZ& aFZ=aFZs(i);
+ BOPDS_InterfFZ& aFZ=aFZs.Append1();
aFZ.SetIndices(nF, nZ);
//
myDS->AddInterf(nF, nZ);
void BOPAlgo_PaveFiller::PerformZZ()
{
Standard_Boolean bJustAdd, bHasInterf, bFlag;
- Standard_Integer iSize, nZ1, nZ, i;
+ Standard_Integer iSize, nZ1, nZ;
//
myErrorStatus=0;
//
}
//
BOPDS_VectorOfInterfZZ& aZZs=myDS->InterfZZ();
- aZZs.SetStartSize(iSize);
aZZs.SetIncrement(iSize);
- aZZs.Init();
//
bFlag=Standard_False;
//
continue;
}
//
- i=aZZs.Append()-1;
- BOPDS_InterfZZ& aZZ=aZZs(i);
+ BOPDS_InterfZZ& aZZ=aZZs.Append1();
aZZ.SetIndices(nZ1, nZ);
//
myDS->AddInterf(nZ1, nZ);