]> OCCT Git - occt-copy.git/commitdiff
Test for 0024365: BRepAlgoAPI_Section wrong result, BRepAlgo_Section good result CR24365
authorapv <apv@opencascade.com>
Wed, 26 Jul 2017 09:09:52 +0000 (12:09 +0300)
committerapv <apv@opencascade.com>
Wed, 26 Jul 2017 09:09:52 +0000 (12:09 +0300)
tests/bugs/modalg_7/bug24365 [new file with mode: 0644]

diff --git a/tests/bugs/modalg_7/bug24365 b/tests/bugs/modalg_7/bug24365
new file mode 100644 (file)
index 0000000..844a2af
--- /dev/null
@@ -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