]> OCCT Git - occt-copy.git/commitdiff
0028718: Section result has a break
authornbv <nbv@opencascade.com>
Fri, 19 May 2017 13:38:18 +0000 (16:38 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 25 May 2017 08:48:27 +0000 (11:48 +0300)
tests/bugs/modalg_6/bug28718 [new file with mode: 0644]

diff --git a/tests/bugs/modalg_6/bug28718 b/tests/bugs/modalg_6/bug28718
new file mode 100644 (file)
index 0000000..a19b8f9
--- /dev/null
@@ -0,0 +1,34 @@
+puts "========"
+puts "OCC28718"
+puts "========"
+puts ""
+#################################################
+# Section result has a break
+#################################################
+
+restore [locate_data_file bug28718_bulk_1.brep] b1
+restore [locate_data_file bug28718_hull.brep] b2
+
+####
+
+explode b1 f
+explode b2 f
+axo
+don b2_61
+fit
+
+set log [bopcurves b1_1 b2_61 -2d]
+
+regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log} full Toler NbCurv
+checkreal TolReached $Toler 5.6917962071676512e-008 0.0 0.1
+
+nurbsconvert ff b2_61
+set log [bopcurves b1_1 ff -2d]
+regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log} full Toler NbCurv
+checkreal TolReached $Toler 6.2331348315760405e-008 0.0 0.1
+
+bsection result b1 b2
+
+checkprops result -l 19.1199
+
+checkview -display result -2d -path ${imagedir}/${test_image}.png