From: apn Date: Mon, 28 Apr 2014 11:10:50 +0000 (+0400) Subject: 0024496: Crash on BRepAlgoAPI_Section X-Git-Tag: V6_8_0_beta~362 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=242da3e5efa2ebab180b70680863ab60fb4c0fdd;p=occt-copy.git 0024496: Crash on BRepAlgoAPI_Section Added test case bugs/modalg_5/bug24496 --- diff --git a/tests/bugs/modalg_5/bug24496 b/tests/bugs/modalg_5/bug24496 new file mode 100644 index 0000000000..a86013b24d --- /dev/null +++ b/tests/bugs/modalg_5/bug24496 @@ -0,0 +1,21 @@ +puts "============" +puts "OCC24496" +puts "============" +puts "" +################################# +# Crash on BRepAlgoAPI_Section +################################# + +restore [locate_data_file bug24496_face1.brep] f1 +restore [locate_data_file bug24496_face2.brep] f2 + +bsection result f1 f2 + +if { [llength [explode result]] != 2 } { + puts "Error: wrong number of intersections. Should be result_1 and result_2" +} else { + puts "OK: bsection works properly" +} + +set length 11.7031 +set 2dviewer 1