if (!myNonDestructive)
{
aPart -= 5;
+ // step for init
aSteps(0) = 5;
}
if (!myIsPrimary)
{
aSum -= aStep8;
- aSteps(8) = 0;
+ aStep8 = 0;
}
if (myGlue != BOPAlgo_GlueOff)
{
- aSteps(11) = 0;
aSum -= aStep8;
+ aStep11 = 0;
}
if (myAvoidBuildPCurve)
{
- aSteps(12) = 0;
aSum -= aStep12;
+ aStep12 = 0;
}
if (aSum == 0)
aSteps(0) = 95.;
return aSteps;
}
-
+ // step for PerformVV()
aSteps(1) = aPart * aStep1 / aSum;
+ // step for PerformVE()
aSteps(2) = aPart * aStep2 / aSum;
+ // step for PerformEE()
aSteps(3) = aPart * aStep3 / aSum;
+ // step for PerformVF()
aSteps(4) = aPart * aStep4 / aSum;
+ // step for PerformEF()
aSteps(5) = aPart * aStep5 / aSum;
+ // step for RepeatIntersection()
aSteps(6) = aPart * aStep6 / aSum;
+ // step for ForceInterfEE()
aSteps(7) = aPart * aStep7 / aSum;
+ // step for ForceInterfEF()
aSteps(8) = aPart * aStep8 / aSum;
+ // step for PerformFF()
aSteps(9) = aPart * aStep9 / aSum;
+ // step for MakeSplitEdges()
aSteps(10) = aPart * aStep10 / aSum;
+ // step for MakeBloks()
aSteps(11) = aPart * aStep11 / aSum;
+ // step for MakePCurves()
aSteps(12) = aPart * aStep12 / aSum;
+
return aSteps;
}
a += aSteps[i];
}
//
- Prepare(aPS.Next(aSteps[0])); // 2 - const = 3
+ Prepare(aPS.Next(aSteps[0]));
if (HasErrors()) {
return;
}
// 00
- PerformVV(aPS.Next(aSteps[1])); // 3 - myIterator->Initialize(TopAbs_VERTEX, TopAbs_VERTEX);
+ PerformVV(aPS.Next(aSteps[1]));
if (HasErrors()) {
return;
}
// 01
- PerformVE(aPS.Next(aSteps[2])); // 4 - myIterator->Initialize(TopAbs_VERTEX, TopAbs_EDGE);
+ PerformVE(aPS.Next(aSteps[2]));
if (HasErrors()) {
return;
}
//
UpdatePaveBlocksWithSDVertices();
// 11
- PerformEE(aPS.Next(aSteps[3])); // 5 - myIterator->Initialize(TopAbs_EDGE, TopAbs_EDGE);
+ PerformEE(aPS.Next(aSteps[3]));
if (HasErrors()) {
return;
}
UpdatePaveBlocksWithSDVertices();
// 02
- PerformVF(aPS.Next(aSteps[4])); // 6 - vertex-face
+ PerformVF(aPS.Next(aSteps[4]));
if (HasErrors()) {
return;
}
UpdatePaveBlocksWithSDVertices();
// 12
- PerformEF(aPS.Next(aSteps[5])); // 7 - edge-face
+ PerformEF(aPS.Next(aSteps[5]));
if (HasErrors()) {
return;
}
UpdateInterfsWithSDVertices();
// Repeat Intersection with increased vertices
- RepeatIntersection(aPS.Next(aSteps[6])); // 8 - vf+ve+vv
+ RepeatIntersection(aPS.Next(aSteps[6]));
if (HasErrors())
return;
// Force intersection of edges after increase
// of the tolerance values of their vertices
- ForceInterfEE(aPS.Next(aSteps[7])); // 9 - EE const = 2
+ ForceInterfEE(aPS.Next(aSteps[7]));
if (HasErrors())
{
return;
}
// Force Edge/Face intersection after increase
// of the tolerance values of their vertices
- ForceInterfEF(aPS.Next(aSteps[8])); // 10 - EF const = 3
+ ForceInterfEF(aPS.Next(aSteps[8]));
if (HasErrors())
{
return;
}
//
// 22
- PerformFF(aPS.Next(aSteps[9])); // 11 - FF
+ PerformFF(aPS.Next(aSteps[9]));
if (HasErrors()) {
return;
}
//
myDS->RefineFaceInfoIn();
//
- MakeSplitEdges(aPS.Next(aSteps[10])); // 12 - const = 2
+ MakeSplitEdges(aPS.Next(aSteps[10]));
if (HasErrors()) {
return;
}
//
UpdatePaveBlocksWithSDVertices();
//
- MakeBlocks(aPS.Next(aSteps[11])); // 13 - const = 2
+ MakeBlocks(aPS.Next(aSteps[11]));
if (HasErrors()) {
return;
}
//
RemoveMicroEdges();
//
- MakePCurves(aPS.Next(aSteps[12])); // 14 - const = 2
+ MakePCurves(aPS.Next(aSteps[12]));
if (HasErrors()) {
return;
}
:
BRepAlgoAPI_BooleanOperation(S1, S2, BOPAlgo_CUT)
{
- Message_ProgressScope aPS(theRange, "Cut", 1);
+ Message_ProgressScope aPS(theRange, "Performing CUT operation", 1);
Build(aPS.Next());
}
//=======================================================================
BRepAlgoAPI_BooleanOperation(S1, S2, aDSF,
(bFWD) ? BOPAlgo_CUT : BOPAlgo_CUT21)
{
- Message_ProgressScope aPS(theRange, "Cut", 1);
+ Message_ProgressScope aPS(theRange, "Performing CUT operation", 1);
Build(aPS.Next());
}
:
BRepAlgoAPI_BooleanOperation(S1, S2, BOPAlgo_FUSE)
{
- Message_ProgressScope aPS(theRange, "Fuse", 1);
+ Message_ProgressScope aPS(theRange, "Performing FUSE operation", 1);
Build(aPS.Next());
}
//=======================================================================
:
BRepAlgoAPI_BooleanOperation(S1, S2, aDSF, BOPAlgo_FUSE)
{
- Message_ProgressScope aPS(theRange, "Fuse", 1);
+ Message_ProgressScope aPS(theRange, "Performing FUSE operation", 1);
Build(aPS.Next());
}