From b62b3e079f88cca261d78ce20134c2f0e3b95881 Mon Sep 17 00:00:00 2001 From: pkv Date: Thu, 26 Sep 2013 17:18:50 +0400 Subject: [PATCH] 0024190: Exception raised during topological operation. v0.0 I. New features: no new features II. Changes: II.1. class BOPAlgo_CheckerSI - method: void BOPAlgo_CheckerSI::Perform() The contents of the method is encompassed with "try/catch" block. III. Modified entities: packages: BOPAlgo Test cases for issue CR24190 --- src/BOPAlgo/BOPAlgo_CheckerSI.cxx | 21 ++++++++++++++++++++- tests/bugs/modalg_5/bug24190 | 11 +++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100755 tests/bugs/modalg_5/bug24190 diff --git a/src/BOPAlgo/BOPAlgo_CheckerSI.cxx b/src/BOPAlgo/BOPAlgo_CheckerSI.cxx index 00ea647db0..415e52c4e9 100644 --- a/src/BOPAlgo/BOPAlgo_CheckerSI.cxx +++ b/src/BOPAlgo/BOPAlgo_CheckerSI.cxx @@ -21,6 +21,9 @@ // #include +#include +#include + #include #include #include @@ -104,12 +107,28 @@ void BOPAlgo_CheckerSI::Init() //======================================================================= void BOPAlgo_CheckerSI::Perform() { + //modified by NIZNHY-PKV Thu Sep 19 08:14:52 2013f + try { + OCC_CATCH_SIGNALS + // + BOPAlgo_PaveFiller::Perform(); + if (myErrorStatus) { + return; + } + // + PostTreat(); + } + catch (Standard_Failure) { + } + /* BOPAlgo_PaveFiller::Perform(); if (myErrorStatus) { return; } // - PostTreat(); + PostTreat(); + */ + //modified by NIZNHY-PKV Thu Sep 19 08:14:56 2013t } //======================================================================= //function : PostTreat diff --git a/tests/bugs/modalg_5/bug24190 b/tests/bugs/modalg_5/bug24190 new file mode 100755 index 0000000000..e47d9aa709 --- /dev/null +++ b/tests/bugs/modalg_5/bug24190 @@ -0,0 +1,11 @@ +puts "================" +puts "OCC24190" +puts "================" +puts "" +####################################################################### +# Exception raised during topological operation. +####################################################################### + +restore [locate_data_file bug24190_itz.brep] b + +bopcheck b -- 2.20.1