0031407: [Regression to 7.3.0] Extrema does not process parallel circles correctly
[occt.git] / tests / bugs / modalg_7 / bug31407_3
diff --git a/tests/bugs/modalg_7/bug31407_3 b/tests/bugs/modalg_7/bug31407_3
new file mode 100644 (file)
index 0000000..dbe0e19
--- /dev/null
@@ -0,0 +1,20 @@
+puts "========"
+puts "0031407: Extrema does not process parallel circles correctly"
+puts "========"
+puts ""
+
+circle c1  0 0 0  0 0 1  5
+circle c2  0 0 0  0 0 1  10
+
+trim cc1 c1 0 2
+trim cc2 c2 2 4
+
+set res_extrema [extrema cc1 cc2]
+
+if { [regexp "Infinite number of extremas" $res_extrema] == 0} {
+  if {[llength $res_extrema] != 1} {
+    puts "Error : expected 1 extrema, but found [llength $res_extrema]"
+  }
+} else {
+  puts "Error : Infinite number of extremas is found"
+}