]> OCCT Git - occt.git/commitdiff
0026776: Bad result of section algorithm
authormkv <mkv@opencascade.com>
Fri, 11 Aug 2017 12:54:31 +0000 (15:54 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 17 Aug 2017 12:47:08 +0000 (15:47 +0300)
tests/bugs/modalg_7/bug26776 [new file with mode: 0644]

diff --git a/tests/bugs/modalg_7/bug26776 b/tests/bugs/modalg_7/bug26776
new file mode 100644 (file)
index 0000000..6cde934
--- /dev/null
@@ -0,0 +1,32 @@
+puts "========"
+puts "OCC26776"
+puts "========"
+puts ""
+##################################################
+# Bad result of section algorithm
+##################################################
+
+restore [locate_data_file bug26580-plate-2.brep] a2
+restore [locate_data_file bug26776_b2.brep] b2
+
+bsection result a2 b2
+
+checkshape result
+
+checknbshapes result -vertex 2 -edge 1
+
+regexp {nb alone Vertices : ([-0-9.+eE]+)} [checksection result] full nbv
+
+if { $nbv != 2 } { 
+  puts "Error : Bad result of section algorithm" 
+} else {
+  puts "OK: Good result of section algorithm" 
+}
+
+checkprops result -l 27.3439
+
+smallview
+don result
+fit
+
+checkview -screenshot -2d -path ${imagedir}/${test_image}.png