From c7c9f5eefdba0f8c1a624a5157c98fba223e9b68 Mon Sep 17 00:00:00 2001 From: apv Date: Wed, 26 Jul 2017 12:09:52 +0300 Subject: [PATCH] Test for 0024365: BRepAlgoAPI_Section wrong result, BRepAlgo_Section good result --- tests/bugs/modalg_7/bug24365 | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/bugs/modalg_7/bug24365 diff --git a/tests/bugs/modalg_7/bug24365 b/tests/bugs/modalg_7/bug24365 new file mode 100644 index 0000000000..844a2af160 --- /dev/null +++ b/tests/bugs/modalg_7/bug24365 @@ -0,0 +1,24 @@ +puts "TODO OCC24365 ALL: ERROR: OCC24365 is reproduced." + +puts "========" +puts "OCC24365" +puts "========" +puts "" +################################################################## +# BRepAlgoAPI_Section wrong result, BRepAlgo_Section good result +################################################################## + +restore [locate_data_file bug24365_faceA.brep] a +restore [locate_data_file bug24365_faceB.brep] b + +bsection result a b + +set bug_info [lprops result] + +if {[lindex $bug_info 2] == 0} { + puts "ERROR: OCC24365 is reproduced. Section of two shapes is not built." +} + +smallview +fit +checkview -screenshot -2d -path ${imagedir}/${test_image}.png -- 2.39.5