From 7581b642af890cfb2689b4cd9aa1b941cd1aebb4 Mon Sep 17 00:00:00 2001 From: nbv Date: Fri, 10 Mar 2017 15:56:19 +0300 Subject: [PATCH] 0028535: BOP Fuse reports "ErrorStatus : 11" on two attached faces The reason of exception has been eliminated. --- src/IntWalk/IntWalk_PWalking.cxx | 4 ++-- tests/bugs/modalg_6/bug28535 | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 tests/bugs/modalg_6/bug28535 diff --git a/src/IntWalk/IntWalk_PWalking.cxx b/src/IntWalk/IntWalk_PWalking.cxx index 41f40d7e46..a655f7706b 100644 --- a/src/IntWalk/IntWalk_PWalking.cxx +++ b/src/IntWalk/IntWalk_PWalking.cxx @@ -1826,8 +1826,8 @@ Standard_Boolean IntWalk_PWalking::ExtendLineInCommonZone(const IntImp_ConstIsop ChoixIso = myIntersectionOn2S.Perform(Param, Rsnld, theChoixIso); if(myIntersectionOn2S.IsEmpty()) { - bStop = !myIntersectionOn2S.IsTangent(); - bOutOfTangentZone = !myIntersectionOn2S.IsTangent(); + bStop = Standard_True;// !myIntersectionOn2S.IsTangent(); + bOutOfTangentZone = Standard_False; // !myIntersectionOn2S.IsTangent(); } else { Standard_Boolean bAddPoint = Standard_True; diff --git a/tests/bugs/modalg_6/bug28535 b/tests/bugs/modalg_6/bug28535 new file mode 100644 index 0000000000..77ccb4f408 --- /dev/null +++ b/tests/bugs/modalg_6/bug28535 @@ -0,0 +1,16 @@ +puts "========" +puts "OCC28535" +puts "========" +puts "" +########################################## +## BOP Fuse reports "ErrorStatus : 11" on two attached faces +########################################## + +restore [locate_data_file bug28535_Face_5.brep] f5 +restore [locate_data_file bug28535_Face_6.brep] f6 + +bfuse result f5 f6 + +checknbshapes result -face 2 -wire 2 -edge 7 + +checkview -display result -2d -path ${imagedir}/${test_image}.png