1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0031172: Unexpected result of BRepTools::OuterWire()

In BRepTools::OuterWire() compare of parameters was rewritten using Precision.
The test case bug31172 has been created
This commit is contained in:
aavtamon
2021-01-13 12:22:58 +03:00
committed by bugmaster
parent f4e7c30785
commit 6fab0b3428
2 changed files with 16 additions and 4 deletions

View File

@@ -616,10 +616,10 @@ TopoDS_Wire BRepTools::OuterWire(const TopoDS_Face& F)
while (expw.More()) {
const TopoDS_Wire& W = TopoDS::Wire(expw.Current());
BRepTools::UVBounds(F,W,umin, umax, vmin, vmax);
if ((umin <= UMin) &&
(umax >= UMax) &&
(vmin <= VMin) &&
(vmax >= VMax)) {
if (((umin - UMin) <= Precision::PConfusion()) &&
((umax - UMax) >= -Precision::PConfusion()) &&
((vmin - VMin) <= Precision::PConfusion()) &&
((vmax - VMax) >= -Precision::PConfusion())) {
Wres = W;
UMin = umin;
UMax = umax;