1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

Compare commits

...

1 Commits

Author SHA1 Message Date
jgv
762972e566 0031910: Modeling Algorithms - Wrong result of BOP Cut
Modify the method BOPAlgo_PaveFiller::PerformEF: the maximum distance between new and old vertex is decreased.
2021-05-28 18:23:06 +03:00

View File

@@ -431,6 +431,7 @@ void BOPAlgo_PaveFiller::PerformEF()
// Real intersection is present. // Real intersection is present.
// Update the existing vertex to cover the intersection point. // Update the existing vertex to cover the intersection point.
Standard_Boolean bIsInSphereOfOldVertex = Standard_False;
for (j = 0; j < 2; ++j) for (j = 0; j < 2; ++j)
{ {
if (bIsOnPave[j]) if (bIsOnPave[j])
@@ -444,13 +445,18 @@ void BOPAlgo_PaveFiller::PerformEF()
{ {
aMaxDist = Min(aMaxDist, 0.1); aMaxDist = Min(aMaxDist, 0.1);
} }
//jgv
aMaxDist = 1.e-5;
/////
if (aDistPP < aMaxDist) if (aDistPP < aMaxDist)
{ {
UpdateVertex(nV[j], aDistPP); UpdateVertex(nV[j], aDistPP);
myVertsToAvoidExtension.Add(nV[j]); myVertsToAvoidExtension.Add(nV[j]);
bIsInSphereOfOldVertex = Standard_True;
} }
} }
} }
if (bIsInSphereOfOldVertex)
continue; continue;
} }