]> OCCT Git - occt.git/commitdiff
Test for 0023166: Intersection of plane and cone produces wrong result
authormkv <mkv@opencascade.com>
Fri, 14 Jul 2017 15:31:16 +0000 (18:31 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 20 Jul 2017 08:45:58 +0000 (11:45 +0300)
tests/bugs/modalg_7/bug23166 [new file with mode: 0644]

diff --git a/tests/bugs/modalg_7/bug23166 b/tests/bugs/modalg_7/bug23166
new file mode 100644 (file)
index 0000000..f6e698d
--- /dev/null
@@ -0,0 +1,32 @@
+puts "================"
+puts "OCC23166"
+puts "================"
+puts ""
+#######################################################################
+#  Intersection of plane and cone produces wrong result
+#######################################################################
+
+restore [locate_data_file bug23166_surface1_draw.draw] s1
+restore [locate_data_file bug23166_surface2_draw.draw] s2
+
+intersect result s1 s2
+
+set log [dump result_1]
+if { [regexp {Parameters} ${log}] } {
+  puts "Error: untrimmed first hyperbola"
+} else {
+  puts "OK: untrimmed first hyperbola"
+}
+
+set log [dump result_2]
+if { [regexp {Parameters} ${log}] } {
+  puts "Error: untrimmed second hyperbola"
+} else {
+  puts "OK: untrimmed second hyperbola"
+}
+
+smallview
+donly result*
+fit
+display s1 s2
+checkview -screenshot -2d -path ${imagedir}/${test_image}.png