]> OCCT Git - occt.git/commitdiff
0028373: Incomplete section between cylinder and plane
authornbv <nbv@opencascade.com>
Fri, 20 Jan 2017 08:15:23 +0000 (11:15 +0300)
committerapn <apn@opencascade.com>
Thu, 26 Jan 2017 09:53:35 +0000 (12:53 +0300)
Test case has been created.

tests/bugs/modalg_6/bug28373 [new file with mode: 0644]

diff --git a/tests/bugs/modalg_6/bug28373 b/tests/bugs/modalg_6/bug28373
new file mode 100644 (file)
index 0000000..a2f0852
--- /dev/null
@@ -0,0 +1,32 @@
+puts "========"
+puts "OCC28373"
+puts "========"
+puts ""
+#################################################
+# Incomplete section between cylinder and plane
+#################################################
+
+restore [locate_data_file bug28373_face.brep] f
+restore [locate_data_file bug28373_hole.brep] h
+
+bclearobjects
+bcleartools
+baddobjects f
+baddtools h
+bfillds
+bbop rs 4
+
+regexp {nb alone Vertices : ([-0-9.+eE]+)} [checksection rs] full nbv
+if { $nbv != 0 } { puts "Error : Section is incorrect" }
+
+bbop result 2
+
+checkshape result
+checkprops result -s 5.47202
+
+smallview
+don h
+fit
+don result
+
+checkview -screenshot -2d -path ${imagedir}/${test_image}.png